Jump to content

Template:Infobox ShopItems: Difference between revisions

From Deadlock Wiki
Sur (talk | contribs)
m removed a conversation
add docs
Line 1: Line 1:
Similar to [[Template:Item Navbox]], but calls [[Template:ItemBox]] instead of [[Template:ItemIcon]] for each item's formatting.
<templatedata>
{
"params": {
"weapon items": {
"description": "Choose whether or not to show Weapon items.",
"type": "boolean",
"default": "false"
},
"armor items": {
"description": "Choose whether or not to show Armor (Vitality) Items",
"type": "boolean",
"default": "false"
},
"tech items": {
"description": "Choose whether or not to show Tech (Spirit) Items.",
"type": "boolean",
"default": "false"
}
}
}
</templatedata>
<onlyinclude>
<onlyinclude>
{{#vardefine:souls_style|font-size: 12px; text-shadow: 1px 1px rgba(0, 0, 0, 0.3);}}
{{#vardefine:souls_style|font-size: 12px; text-shadow: 1px 1px rgba(0, 0, 0, 0.3);}}
Line 61: Line 38:
|list1      = {{#invoke:ItemData/nav|write_item_slot_subgroup|Tech|get_item_nav_cards}}
|list1      = {{#invoke:ItemData/nav|write_item_slot_subgroup|Tech|get_item_nav_cards}}
}}|}}</onlyinclude>
}}|}}</onlyinclude>
 
<noinclude>{{Documentation}}</noinclude>
{{Infobox ShopItems|weapon items = true|armor items = true|tech items = true}}
{{Infobox ShopItems|weapon items = true|armor items = true|tech items = true}}

Revision as of 04:20, 3 November 2024


Template documentation [view] [edit] [history] [purge]

Similar to Template:Item Navbox, but calls Template:ItemBox instead of Template:ItemIcon for each item's formatting.

Examples

{{Infobox ShopItems|weapon items = true|armor items = true|tech items = true}}


Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
weapon itemsweapon items

Choose whether or not to show Weapon items.

Default
false
Booleanoptional
armor itemsarmor items

Choose whether or not to show Armor (Vitality) Items

Default
false
Booleanoptional
tech itemstech items

Choose whether or not to show Tech (Spirit) Items.

Default
false
Booleanoptional