VOOZH about

URL: https://minecraft.wiki/w/Template:Infobox_header

⇱ Template:Infobox header – Minecraft Wiki


Template:Infobox header

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]

This is a skeleton for infobox header, for use in {{infobox}}.

{{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

[edit source]
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}}}}
}}

Infobox header
Description 5 gold ingots
Ingedients

Data and Tools

Block entity data
  • [NBT Compound / JSON Object] Block entity data
    • [NBT List / JSON Array] Items: List of items in this container.
      • [NBT Compound / JSON Object]: An item, including the slot tag.
    • [Int] TransferCooldown: Time until the next transfer in game ticks, naturally between 1 and 8 or 0 if there is no transfer.
Tool 👁 Image
Stone Pickaxe
{
 "title": "Infobox header",
 "rows": [
 {
 "field": "5 (link to gold ingot article, displayed as gold ingots)",
 "label": "Description"
 },
 {
 "field": "\n* 5 (link to iron ingot article, displayed as iron ingots)\n* 1 (link to chest article, displayed as chest)",
 "label": "Ingedients"
 },
 {
 "field": "",
 "label": "Data and Tools"
 },
 {
 "field": "(values exceeds 1000 characters...)",
 "label": "Block entity data"
 },
 {
 "field": "<span class=\"nowrap\"><span class=\"sprite-file\" style=\"\">(link to File:ItemSprite stone-pickaxe.png article, displayed as 16x16px|link=Stone Pickaxe|alt=|class=pixel-image|)</span>(link to Stone Pickaxe article, displayed as <span class=\"sprite-text\">Stone Pickaxe</span>)</span>",
 "label": "Tool"
 }
 ],
 "invimages": [],
 "images": []
}

{{#invoke: Infobox | infobox
|rows={{infobox header|Fancy text |class=mcwiki-header mcwiki-header-grass}}
}}

Infobox header

Status

{
 "title": "Infobox header",
 "rows": [
 {
 "field": "",
 "label": "Status"
 }
 ],
 "invimages": [],
 "images": []
}

{{#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}}
}}

Infobox header
Label Field

Header

Label Field
Label Field

Header

Label Field
Label Field

Header

Label Field
{
 "title": "Infobox header",
 "rows": [
 {
 "field": "Field",
 "label": "Label"
 },
 {
 "field": "",
 "label": "Header"
 },
 {
 "field": "Field",
 "label": "Label"
 },
 {
 "field": "Field",
 "label": "Label"
 },
 {
 "field": "",
 "label": "Header"
 },
 {
 "field": "Field",
 "label": "Label"
 },
 {
 "field": "Field",
 "label": "Label"
 },
 {
 "field": "",
 "label": "Header"
 },
 {
 "field": "Field",
 "label": "Label"
 }
 ],
 "invimages": [],
 "images": []
}
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Infobox header/doc.
Retrieved from "https://minecraft.wiki/w/Template:Infobox_header?oldid=2538784"

Navigation menu