Difference between revisions of "Template:Infobox/row"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(simplify)
(allow example)
Line 1: Line 1:
 
{{#if:{{{header|}}}
 
{{#if:{{{header|}}}
 
  |<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header|}}}</th></tr>
 
  |<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header|}}}</th></tr>
  |{{#if:{{{data|}}}
+
  |{{#if:{{{data|}}}{{#switch:{{#titleparts:{{PAGENAME}}|1}}
   <tr>{{#if:{{{label|}}}
+
  |Infobox
 +
  |{{{name|}}}=example
 +
  }}
 +
   |<tr>{{#if:{{{label|}}}
 
   |<th style="{{{labelstyle|}}}">{{{label|}}}</th>
 
   |<th style="{{{labelstyle|}}}">{{{label|}}}</th>
 
     <td class="{{{class|}}}" style="{{{datastyle|}}}">
 
     <td class="{{{class|}}}" style="{{{datastyle|}}}">

Revision as of 12:19, 1 June 2009

<tr><td colspan="2" class="" style="text-align:center; "></td></tr>