Template:Infobox item: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{| class="infobox | <includeonly>{{#if:{{{header|}}} | ||
|<tr class="infobox-header {{{class|}}}"><th colspan="2">{{{header}}}</th></tr> | |||
|{{#if:{{{data|}}} | |||
|<tr class="infobox-row {{{class|}}}">{{#if:{{{label|}}} | |||
|<th class="infobox-label">{{{label}}}</th><td class="infobox-data">{{{data}}}</td> | |||
|<td colspan="2" class="infobox-data">{{{data}}}</td> | |||
| {{{ | }}</tr> | ||
|- | }} | ||
}}</includeonly><noinclude> | |||
Renders one infobox row. If `header` is set, renders a full-width section header row. | |||
Else if `data` is set, renders a label+data row (or full-width data-only row if no label). | |||
Empty rows (no header, no data) render nothing. | |||
</noinclude><noinclude> | |||
|- | |||
|- | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||