Template:Infobox header/doc

From Modded Wiki
Revision as of 20:55, 24 April 2024 by minecraft>MarkusRost (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is the documentation page. It should be transcluded into Template:Infobox header. See Template:Documentation for more information.

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