Difference between revisions of "Template:CardTable2/row"

From Yugipedia
Jump to: navigation, search
(set scope="row" on <th> for accessibility)
(add some classes for styling)
Line 4: Line 4:
 
   | #default = {{
 
   | #default = {{
 
     #if: {{{data|}}}
 
     #if: {{{data|}}}
     | <tr id="{{{rowid|}}}" class="{{{rowclass|}}}" style="{{{rowstyle|}}};">{{
+
     | <tr id="{{{rowid|}}}" class="cardtablerow {{{rowclass|}}}" style="{{{rowstyle|}}};">{{
 
       #if: {{{header|}}}
 
       #if: {{{header|}}}
       | <th id="{{{headerid|}}}" class="{{{headerclass|}}}" style="text-align: {{{htalign|left}}}; {{{headerstyle|}}};" scope="row">{{{header}}}</th>
+
       | <th id="{{{headerid|}}}" class="cardtablerowheader {{{headerclass|}}}" style="text-align: {{{htalign|left}}}; {{{headerstyle|}}};" scope="row">{{{header}}}</th>
         <td id="{{{dataid|}}}" class="{{{dataclass|}}}" style="{{{datastyle|}}};">
+
         <td id="{{{dataid|}}}" class="cardtablerowdata {{{dataclass|}}}" style="{{{datastyle|}}};">
       | <td id="{{{dataid|}}}" class="{{{dataclass|}}}" style="text-align: {{{dtalign|center}}}; {{{datastyle|}}};" colspan="2">{{
+
       | <td id="{{{dataid|}}}" class="coltablespanrow {{{dataclass|}}}" style="text-align: {{{dtalign|center}}}; {{{datastyle|}}};" colspan="2">{{
 
         #if: {{{header2|}}}
 
         #if: {{{header2|}}}
 
         | '''{{{header2}}}'''<br />
 
         | '''{{{header2}}}'''<br />

Revision as of 00:15, 2 December 2010

</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="text-align: {{{htalign|left}}}; {{{headerstyle|}}};" scope="row">{{{header}}}</th>
        <td id="{{{dataid|}}}" class="cardtablerowdata {{{dataclass|}}}" style="{{{datastyle|}}};">
      | <td id="{{{dataid|}}}" class="coltablespanrow {{{dataclass|}}}" style="text-align: {{{dtalign|center}}}; {{{datastyle|}}};" colspan="2">{{
        #if: {{{header2|}}}
        | '''{{{header2}}}'''<br />
      }}
    }}{{{data|}}}</td></tr>
    | {{{checkfail|}}}
  }}
}}<noinclude>