Template:CardTable2/row

From Yugipedia
< Template:CardTable2
Revision as of 22:03, 22 September 2018 by Dinoguy1000 (talk | contribs) (hopefully fix weird markup generation on cells which contain lists (hopefully without causing any breakage))
Jump to: navigation, search
</noinclude>{{ #switch: {{{check|¬}}}
  | = {{{checkfail|}}}<!-- defined, empty - row should not be displayed since {{{data}}} won't have anything meaningful -->
  | #default = {{ #if: {{{data|}}}
    | <nowiki/>
<tr {{ #if: {{{rowid|}}} | id="{{{rowid}}}" }} class="cardtablerow {{{rowclass|}}}" {{ #if: {{{rowstyle|}}} | style="{{{rowstyle}}};" }}>{{ #if: {{{header|}}}
      | <th {{ #if: {{{headerid|}}} | id="{{{headerid}}}" }} class="cardtablerowheader {{{headerclass|}}}" {{ #if: {{{headerstyle|}}} | style="{{{headerstyle}}};" }} scope="row">{{{header}}}</th><!--
     --><td {{ #if: {{{dataid|}}} | id="{{{dataid}}}" }} class="cardtablerowdata {{{dataclass|}}}" {{ #if: {{{datastyle|}}} | style="{{{datastyle}}};" }}>
      | <td {{ #if: {{{dataid|}}} | id="{{{dataid}}}" }} class="cardtablespanrow {{{dataclass|}}}" {{ #if: {{{datastyle|}}} | style="{{{datastyle}}};" }} colspan="2">{{ #if: {{{header2|}}} | '''{{{header2}}}'''<br /> }}
    }}
{{{data}}}
</td></tr>
    | {{{checkfail|}}}
  }}
}}<noinclude>