Template:Infobox row/doc
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 |
doc
{
"invimages": [],
"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": "<div class=\"treeview\">\n* (link to :Template:Nbt/sprite article, displayed as :Template:Nbt/sprite) Block entity data\n** (link to :Template:Nbt/sprite article, displayed as :Template:Nbt/sprite)<span class=\"nowrap\" style=\"font-weight: bold;\"> Items</span>: List of items in this container.\n*** (link to :Template:Nbt/sprite article, displayed as :Template:Nbt/sprite): An item, including the slot tag.\n** (link to :Template:Nbt/sprite article, displayed as :Template:Nbt/sprite)<span class=\"nowrap\" style=\"font-weight: bold;\"> TransferCooldown</span>: Time until the next transfer in (link to game tick article, displayed as game ticks), naturally between 1 and 8 or 0 if there is no transfer.\n</div>",
"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"
}
],
"title": "doc",
"images": []
}
| ||||||||
|
{{#invoke: Infobox | infobox |
doc
{
"invimages": [],
"rows": [
{
"field": "Fancy text",
"label": "Status"
}
],
"title": "doc",
"images": []
}
|