Template:Infobox centered row/doc: Difference between revisions
Jump to navigation
Jump to search
imported>Korra II A Royal m (2 revisiones importadas) |
imported>Korra II A Royal m (Text replacement - "Infobox templates" to "Infobox Templates") |
||
Line 1: | Line 1: | ||
{{Doc/start}} | {{Doc/start}} | ||
Displays a centered row with colspan 2 in an [[:Category:Infobox | Displays a centered row with colspan 2 in an [[:Category:Infobox Templates|Infobox]]. | ||
==Usage== | ==Usage== | ||
<pre>{{infobox centered row|value|test-value|else-value}}</pre> | <pre>{{infobox centered row|value|test-value|else-value}}</pre> |
Revision as of 00:35, November 15, 2022
Displays a centered row with colspan 2 in an Infobox.
Usage
{{infobox centered row|value|test-value|else-value}}
Note these are all unnamed parameters when using the template
value
is displayed as the value and can be formatted (e.g. 1000, "huge", {{ItemLink|Wall}}, etc.)- If
test-value
(optional) is given, the row is only displayed if it is not empty - If
else-value
(optional) is given andtest-value
is empty, the row is displayed and shows Else-value as its value
Example
{{Infobox centered row|''{{{description}}}''|{{{description|}}|Not available}}}
Displays the italicized text of description
, but only if it is not an empty string, otherwise it use the text "Not available".