Template:Infobox header: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>! colspan="2" class="infobox-header {{{class|infobox-title}}}" style=" | <includeonly>! colspan="2" class="infobox-header {{{class|infobox-title}}}" {{#if: {{{style|}}} | style="{{{style}}}" }} | | ||
{{{1|{{{header|}}}}}} | {{{1|{{{header|}}}}}} | ||
<code class="history-json">{"header": "{{JsonEscape|{{{1|{{{header|}}}}}}}}"}</code> | <code class="history-json">{"header": "{{JsonEscape|{{{1|{{{header|}}}}}}}}"}</code> |
Revision as of 20:50, 24 April 2024
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 |
Infobox header
{ "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": "(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=ItemSprite stone-pickaxe.png: Sprite image for stone-pickaxe in Minecraft linking to Stone Pickaxe|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 |
Infobox header
{ "title": "Infobox header", "rows": [], "invimages": [], "images": [] } | ||||||||||||||||||
{{#invoke: Infobox | infobox |
Infobox header
{ "title": "Infobox header", "rows": [ { "field": "Field", "label": "Label" }, { "field": "Field", "label": "Label" }, { "field": "Field", "label": "Label" }, { "field": "Field", "label": "Label" }, { "field": "Field", "label": "Label" }, { "field": "Field", "label": "Label" } ], "invimages": [], "images": [] } |
es:Plantilla:Infobox header pt:Predefinição:Cabeçalho de infobox ru:Шаблон:Заголовок карточки
ru:Шаблон:Заголовок карточки/док pt:Predefinição:Cabeçalho de infobox/doc