Difference between revisions of "Template:CardTable2/row"

From Yugipedia
Jump to: navigation, search
(hopefully fix weird markup generation on cells which contain lists (hopefully without causing any breakage))
m (Protected "Template:CardTable2/row": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(No difference)

Revision as of 01:36, 13 June 2019

</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>