Difference between revisions of "Template:CardTable2/row"

From Yugipedia
Jump to: navigation, search
(Push this onto a new line, so we can use lists as {{{data}}})
(these parameters were never used, and the CSS is in MediaWiki:Cardtable.css now)
Line 6: Line 6:
 
     | <tr id="{{{rowid|}}}" class="cardtablerow {{{rowclass|}}}" style="{{{rowstyle|}}};">{{
 
     | <tr id="{{{rowid|}}}" class="cardtablerow {{{rowclass|}}}" style="{{{rowstyle|}}};">{{
 
       #if: {{{header|}}}
 
       #if: {{{header|}}}
       | <th id="{{{headerid|}}}" class="cardtablerowheader {{{headerclass|}}}" style="text-align: {{{htalign|left}}}; {{{headerstyle|}}};" scope="row">{{{header}}}</th>
+
       | <th id="{{{headerid|}}}" class="cardtablerowheader {{{headerclass|}}}" style="{{{headerstyle|}}};" scope="row">{{{header}}}</th>
 
         <td id="{{{dataid|}}}" class="cardtablerowdata {{{dataclass|}}}" style="{{{datastyle|}}};">
 
         <td id="{{{dataid|}}}" class="cardtablerowdata {{{dataclass|}}}" style="{{{datastyle|}}};">
       | <td id="{{{dataid|}}}" class="cardtablespanrow {{{dataclass|}}}" style="text-align: {{{dtalign|center}}}; {{{datastyle|}}};" colspan="2">{{
+
       | <td id="{{{dataid|}}}" class="cardtablespanrow {{{dataclass|}}}" style="{{{datastyle|}}};" colspan="2">{{
 
         #if: {{{header2|}}}
 
         #if: {{{header2|}}}
 
         | '''{{{header2}}}'''<br />
 
         | '''{{{header2}}}'''<br />

Revision as of 22:45, 29 August 2012

</noinclude>{{
  #switch: {{{check|¬}}}
  | = {{{checkfail|}}}<!-- defined, empty - row should not be displayed since {{{data}}} won't have anything meaningful -->
  | #default = {{
    #if: {{{data|}}}
    | <tr id="{{{rowid|}}}" class="cardtablerow {{{rowclass|}}}" style="{{{rowstyle|}}};">{{
      #if: {{{header|}}}
      | <th id="{{{headerid|}}}" class="cardtablerowheader {{{headerclass|}}}" style="{{{headerstyle|}}};" scope="row">{{{header}}}</th>
        <td id="{{{dataid|}}}" class="cardtablerowdata {{{dataclass|}}}" style="{{{datastyle|}}};">
      | <td id="{{{dataid|}}}" class="cardtablespanrow {{{dataclass|}}}" style="{{{datastyle|}}};" colspan="2">{{
        #if: {{{header2|}}}
        | '''{{{header2}}}'''<br />
      }}
    }}
{{{data|}}}</td></tr>
    | {{{checkfail|}}}
  }}
}}<noinclude>