Difference between revisions of "Template:Infobox/row"

From Yugipedia
Jump to: navigation, search
({{{data}}} should be at the start of a line)
m (Protected "Template:Infobox/row": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude><pre></noinclude>{{#if:{{{header|}}}
 
<noinclude><pre></noinclude>{{#if:{{{header|}}}
  |<tr><th colspan="2" class="{{{class|}}}" style="text-align:center; {{{headerstyle|}}}">{{{header}}}</th></tr>
+
  |<tr><th colspan="2" class="{{{class|}}}" style="text-align:center; {{{headerstyle|}}}">{{{header}}}
 +
</th></tr>
 
  |{{#if:{{{data|}}}
 
  |{{#if:{{{data|}}}
 
   |<tr class="{{{rowclass|}}}">{{#if:{{{label|}}}
 
   |<tr class="{{{rowclass|}}}">{{#if:{{{label|}}}
   |<th scope="row" style="text-align:left; {{{labelstyle|}}}">{{{label}}}</th>
+
   |<th scope="row" style="text-align:left; {{{labelstyle|}}}">{{{label}}}
 +
</th>
 
     <td class="{{{class|}}}" style="{{{datastyle|}}}">
 
     <td class="{{{class|}}}" style="{{{datastyle|}}}">
{{{data}}}</td>
+
{{{data}}}
   |<td colspan="2" class="{{{class|}}}" style="text-align:center; {{{datastyle|}}}">{{{data}}}</td>
+
</td>
 +
   |<td colspan="2" class="{{{class|}}}" style="text-align:center; {{{datastyle|}}}">{{{data}}}
 +
</td>
 
   }}</tr>
 
   }}</tr>
 
  }}
 
  }}
 
}}<noinclude></pre></noinclude>
 
}}<noinclude></pre></noinclude>

Latest revision as of 18:20, 3 June 2019

</noinclude>{{#if:{{{header|}}}
 |<tr><th colspan="2" class="{{{class|}}}" style="text-align:center; {{{headerstyle|}}}">{{{header}}}
</th></tr>
 |{{#if:{{{data|}}}
  |<tr class="{{{rowclass|}}}">{{#if:{{{label|}}}
   |<th scope="row" style="text-align:left; {{{labelstyle|}}}">{{{label}}}
</th>
    <td class="{{{class|}}}" style="{{{datastyle|}}}">
{{{data}}}
</td>
   |<td colspan="2" class="{{{class|}}}" style="text-align:center; {{{datastyle|}}}">{{{data}}}
</td>
  }}</tr>
 }}
}}<noinclude>