Template:Infobox/row: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Rows of Wikipedia-style infoboxes.
 
Line padding.
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if:{{{header|}}}
{{#if:{{{header|}}}
  |<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header|}}}</th></tr>
  |<tr valign="top"><th colspan="2" class="{{{class|}}}" style="text-align:center; padding-bottom: 5px; {{{headerstyle|}}}">{{{header}}}</th></tr>
  |{{#if:{{{data|}}}{{#ifeq:{{{name|}}}|{{#titleparts:{{PAGENAME}}|1}}|example}}
  |{{#if:{{{data|}}}
  |<tr>{{#if:{{{label|}}}
  |<tr class="{{{rowclass|}}}" valign="top">{{#if:{{{label|}}}
   |<th style="{{{labelstyle|}}}">{{{label|}}}</th>
   |<th scope="row" style="text-align:left; padding-bottom: 0.5em; {{{labelstyle|}}}">{{{label}}}</th>
     <td class="{{{class|}}}" style="{{{datastyle|}}}">
     <td class="{{{class|}}}" style="padding-bottom: 0.5em; {{{datastyle|}}}">
   |<td colspan="2" class="{{{class|}}}" style="text-align:center; {{{datastyle|}}}">
   |<td colspan="2" class="{{{class|}}}" style="text-align:center; padding-bottom: 0.5em; {{{datastyle|}}}">
   }}{{{data|}}}</td></tr>
   }}
{{{data}}}</td></tr>
  }}
  }}
}}
}}

Latest revision as of 08:22, 17 August 2012