m (Protected "Template:Infobox section" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>|- {{#if:{{{class|}}}|class="{{{class|}}}"}} |
<includeonly>|- {{#if:{{{class|}}}|class="{{{class|}}}"}} |
||
+ | {{#if: {{{2|{{{1|}}}}}}{{{3|}}} | |
||
− | ! colspan="2" class="infobox-section" | {{{1|}}}</includeonly><noinclude>[[Category:Infobox part templates]]</noinclude> |
+ | {{!}} colspan="2" class="infobox-section" {{!}} {{#if: {{{2|{{{1|}}}}}} | {{{1|}}} | {{{3|}}} }} }}</includeonly><noinclude>{{Doc}}[[Category:Infobox part templates]]</noinclude> |
Latest revision as of 01:35, 17 May 2019
Creates a section divider in an infobox
Usage
{{Infobox section|title|test-value|else-value}}
Note these are all unnamed parameters when using the template
title
is the text to be shown in the section.- If
test-value
(optional) is given, the section will only show if this value is not empty. - If
else-value
(optional) is given andTest-value
is empty, the section is displayed and shows Else-value as its value
Example
{{Infobox section|Crafting|{{{ingredient1|}}}|Statistics}}
Will create a crafting section heading, but only if the ingredient1
parameter is given and not empty, otherwise the heading uses the text "Statistics".
The above documentation is transcluded from Template:Infobox section/doc. (edit | history)