Template:Infobox row: Difference between revisions
From NSPedia
Created page with "<includeonly> {{#if:{{{data|}}}| <tr> <th style=" text-align:left; vertical-align:top; padding:4px 8px; font-weight:bold; "> {{{label|}}} </th> <td style=" vertical-align:top; padding:4px 8px; "> {{{data}}} </td> </tr> }} </includeonly> <noinclude> == Infobox row == Creates one label/value row inside an infobox. === Usage === <pre> {{Infobox row | label = Born | data = 1 January 1900 }} </pre> The label can contain any text. For example: <pre> {{Infobox row | la..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if:{{{data|}}}| | ||
{{#if:{{{data|}}}| | |||
<tr> | <tr> | ||
<th style=" | <th style=" | ||
| Line 7: | Line 6: | ||
padding:4px 8px; | padding:4px 8px; | ||
font-weight:bold; | font-weight:bold; | ||
width:40%; | |||
"> | "> | ||
{{{label|}}} | {{{label|}}} | ||
</th> | </th> | ||
<td style=" | <td style=" | ||
vertical-align:top; | vertical-align:top; | ||
padding:4px 8px; | padding:4px 8px; | ||
width:60%; | |||
"> | "> | ||
{{{data}}} | {{{data}}} | ||
</td> | </td> | ||
</tr> | </tr> | ||
}} | }}</includeonly><noinclude> | ||
</includeonly> | == Infobox row == | ||
Creates a row inside an infobox. | |||
If the data field is empty, the entire row is automatically hidden. | |||
=== Usage === | === Usage === | ||
| Line 37: | Line 35: | ||
The label can contain any text. | The label can contain any text. | ||
<pre> | <pre> | ||
{{Infobox row | {{Infobox row | ||
| label = Vice | | label = Vice President | ||
| data = | | data = John Smith | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Infobox templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 03:10, 6 September 2026
Infobox row
Creates a row inside an infobox.
If the data field is empty, the entire row is automatically hidden.
Usage
{{Infobox row
| label = Born
| data = 1 January 1900
}}
The label can contain any text.
{{Infobox row
| label = Vice President
| data = John Smith
}}
