Difference between revisions of "Template:Infobox/row"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(allow example)
(simplify)
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|}}}{{#switch:{{#titleparts:{{PAGENAME}}|1}}
+
  |{{#if:{{{data|}}}{{#ifeq:{{{name|}}}|{{#titleparts:{{PAGENAME}}|1}}|example}}
  |Infobox
 
  |{{{name|}}}=example
 
  }}
 
 
   |<tr>{{#if:{{{label|}}}
 
   |<tr>{{#if:{{{label|}}}
 
   |<th style="{{{labelstyle|}}}">{{{label|}}}</th>
 
   |<th style="{{{labelstyle|}}}">{{{label|}}}</th>

Revision as of 12:19, 1 June 2009