VOOZH about

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

⇱ Template:Infobox row – Minecraft Wiki


Template:Infobox row

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

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

Usage

{{infobox row
| label
| data
}}

Alternatively, you can use the named parameter |label= as a substitute for |1=, and |field= as a substitute for |2=.

The parameter |class= can be added to add a class to the contents of the row.

Examples

Wikitext source code Visual result

{{#invoke: Infobox | infobox
|rows =
{{infobox row|Description|5 [[gold ingot]]s}}
{{infobox row|Ingredients|
* 5 [[iron ingot]]s
* 1 [[chest]]
}}
{{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 row
Description 5 gold ingots
Ingredients
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 row",
 "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": "Ingredients"
 },
 {
 "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 row|Status|Fancy text |class=mcwiki-header mcwiki-header-grass}}
}}

Infobox row
Status Fancy text
{
 "title": "Infobox row",
 "rows": [
 {
 "field": "Fancy text",
 "label": "Status"
 }
 ],
 "invimages": [],
 "images": []
}
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Infobox row/doc.
Retrieved from "https://minecraft.wiki/w/Template:Infobox_row?oldid=3485799"

Navigation menu