Template:Infobox header/doc: Difference between revisions
Created page with "{{documentation header}} This is a skeleton for infobox header, for use in <code><nowiki>{{infobox}}</nowiki></code>. == Usage == <pre>{{infobox header| header }}</pre> Alternatively, you can use the named parameter {{p|header}} as a substitute for {{p|1}}. The parameter {{p|class}} can be added to overwrite the <code>infobox-title</code> class of the header. The parameter {{p|style}} can be added to add inline styles to the header. == Examples == {| class="wikitable..." |
m 6 revisions imported |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 6: | Line 6: | ||
Alternatively, you can use the named parameter {{p|header}} as a substitute for {{p|1}}. | Alternatively, you can use the named parameter {{p|header}} as a substitute for {{p|1}}. | ||
The parameter {{p|collapsible}} can be set to make the following [[Template:Infobox row|infobox rows]] collapsible. The parameter {{p|collapsed}} can be set to make the following rows collapsed by default. | |||
The parameter {{p|class}} can be added to overwrite the <code>infobox-title</code> class of the header. The parameter {{p|style}} can be added to add inline styles to the header. | The parameter {{p|class}} can be added to overwrite the <code>infobox-title</code> class of the header. The parameter {{p|style}} can be added to add inline styles to the header. | ||
Line 61: | Line 63: | ||
| {{#invoke: Infobox | infobox | | {{#invoke: Infobox | infobox | ||
|rows={{infobox header|Status|Fancy text |class=mcwiki-header mcwiki-header-grass}} | |rows={{infobox header|Status|Fancy text |class=mcwiki-header mcwiki-header-grass}} | ||
}} | |||
|- | |||
|style="font-family:monospace;"| | |||
<nowiki>{{#invoke: Infobox | infobox</nowiki><br> | |||
<nowiki>|rows={{infobox row|Label|Field}}</nowiki><br> | |||
<nowiki>{{infobox header|Header|collapsible=1}}</nowiki><br> | |||
<nowiki>{{infobox row|Label|Field}}</nowiki><br> | |||
<nowiki>{{infobox row|Label|Field}}</nowiki><br> | |||
<nowiki>{{infobox header|Header|collapsible=1|collapsed=1}}</nowiki><br> | |||
<nowiki>{{infobox row|Label|Field}}</nowiki><br> | |||
<nowiki>{{infobox row|Label|Field}}</nowiki><br> | |||
<nowiki>{{infobox header|Header}}</nowiki><br> | |||
<nowiki>{{infobox row|Label|Field}}</nowiki><br> | |||
<nowiki>}}</nowiki> | |||
| {{#invoke: Infobox | infobox | |||
|rows={{infobox row|Label|Field}} | |||
{{infobox header|Header|collapsible=1|collapsed=1}} | |||
{{infobox row|Label|Field}} | |||
{{infobox row|Label|Field}} | |||
{{infobox header|Header|collapsible=1}} | |||
{{infobox row|Label|Field}} | |||
{{infobox row|Label|Field}} | |||
{{infobox header|Header}} | |||
{{infobox row|Label|Field}} | |||
}} | }} | ||
|} | |} | ||
Line 67: | Line 94: | ||
<includeonly> | <includeonly> | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
[[es:Plantilla:Infobox header]] | |||
[[pt:Predefinição:Cabeçalho de infobox]] | |||
[[ru:Шаблон:Заголовок карточки]] | |||
</includeonly> | </includeonly> | ||
<!-- doc categories/interwikis --> | <!-- doc categories/interwikis --> | ||
[[ru:Шаблон:Заголовок карточки/док]] | |||
[[pt:Predefinição:Cabeçalho de infobox/doc]] | |||
<noinclude> | <noinclude> | ||
</noinclude> | </noinclude> |
Latest revision as of 12:26, 4 July 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": "", "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=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": [ { "field": "", "label": "Status" } ], "invimages": [], "images": [] } | ||||||||||||||||||
{{#invoke: Infobox | infobox |
Infobox header
{ "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": [] } |
ru:Шаблон:Заголовок карточки/док
pt:Predefinição:Cabeçalho de infobox/doc