This is a skeleton for infobox header, for use in {{infobox}}
.
Usage
{{infobox header| header }}
Alternatively, you can use the named parameter |header=
as a substitute for |1=
.
The parameter |collapsible=
can be set to make the following infobox rows collapsible. The parameter |collapsed=
can be set to make the following rows collapsed by default.
The parameter |class=
can be added to overwrite the infobox-title
class of the header. The parameter |style=
can be added to add inline styles to the header.
Examples
Wikitext source code |
Visual result
|
{{#invoke: Infobox | infobox
|rows =
{{infobox row|Description|5 [[gold ingot]]s}}
{{infobox row|Ingedients|
* 5 [[iron ingot]]s
* 1 [[chest]]
}}
{{infobox header|Data and Tools}}
{{infobox row|Block entity data|
<div class{{=}}"treeview">
* {{nbt|compound}} Block entity data
** {{nbt|list|Items}}: List of items in this container.
*** {{nbt|compound}}: An item, including the slot tag.
** {{nbt|int|TransferCooldown}}: Time until the next transfer in [[game tick]]s, naturally between 1 and 8 or 0 if there is no transfer.
</div>
}}
{{infobox row|Tool|{{ItemLink|Stone Pickaxe}}}}
}}
|
Lua error: mw.text.jsonDecode: Syntax error.
|
{{#invoke: Infobox | infobox
|rows={{infobox header|Fancy text |class=mcwiki-header mcwiki-header-grass}}
}}
|
Lua error: mw.text.jsonDecode: Syntax error.
|
{{#invoke: Infobox | infobox
|rows={{infobox row|Label|Field}}
{{infobox header|Header|collapsible=1}}
{{infobox row|Label|Field}}
{{infobox row|Label|Field}}
{{infobox header|Header|collapsible=1|collapsed=1}}
{{infobox row|Label|Field}}
{{infobox row|Label|Field}}
{{infobox header|Header}}
{{infobox row|Label|Field}}
}}
|
Lua error: mw.text.jsonDecode: Syntax error.
|