Template:Infobox header: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
No edit summary
m 7 revisions imported
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>! colspan="2" class="{{{class|infobox-title}}}" style="font-size: 100%; {{{style|}}}" |
<includeonly>|- class="collapsible-rows {{#if: {{{collapsible|}}} | collapsible {{#if:{{{collapsed|}}}|collapsed}} }}"
! 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">{"label": "{{JsonEscape|{{{1|{{{header|}}}}}}}}", "field": ""}</code>
|-</includeonly><noinclude>
|-</includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->
</noinclude>
</noinclude>

Latest revision as of 12:25, 4 July 2024

[view] [edit] [history] [refresh]Documentation

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
|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
  • Block entity data
    •  Items: List of items in this container.
      • : An item, including the slot tag.
    •  TransferCooldown: Time until the next transfer in game ticks, naturally between 1 and 8 or 0 if there is no transfer.
Tool

ItemSprite stone-pickaxe.png: Sprite image for stone-pickaxe in Minecraft linking to Stone PickaxeStone Pickaxe

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

Infobox header

Status

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

Label

Field

Label

Field

Header

Label

Field

Label

Field

Header

Label

Field

es:Plantilla:Infobox header pt:Predefinição:Cabeçalho de infobox ru:Шаблон:Заголовок карточки

ru:Шаблон:Заголовок карточки/док pt:Predefinição:Cabeçalho de infobox/doc

[view] [edit] [history] [refresh]The above documentation is transcluded from Template:Infobox header/doc.