Template:Item Navbox v2: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m removed a conversation
m Gammaton32 moved page Template:Infobox ShopItems to Template:Item Navbox v2: better name
 
(5 intermediate revisions by 2 users not shown)
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>
{{#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);}}
{{#ifeq:{{{weapon items|}}}|true|
{{#ifeq:{{{weapon items|}}}|true|
{{Navbox
{{Navbox
|name      = Items
|name      = Items
|title      = [[File:Weapon Icon.png|30px|link={{#invoke:Lang|get_string|CitadelCategoryWeapon|fallback_str=en}}]] <b>{{#invoke:Dictionary|translate|Weapon Item}}</b>
|title      = {{ItemType|Weapon|color=true}}
|state      =  
|state      =  
|titlestyle = background-color:#ffefd7;
|titlestyle = background-color:#ffefd7;
Line 39: Line 15:
{{Navbox
{{Navbox
|name      = Items
|name      = Items
|title      = [[File:Vitality Icon.png|30px|link={{#invoke:Lang|get_string|CitadelCategoryArmor|fallback_str=en}}]] <b>{{#invoke:Dictionary|translate|Armor Item}}</b>
|title      = {{ItemType|Armor|color=true}}
|state      =  
|state      =  
|titlestyle = background-color:#ffefd7;
|titlestyle = background-color:#ffefd7;
Line 51: Line 27:
{{Navbox
{{Navbox
|name      = Items
|name      = Items
|title      = [[File:Spirit icon.png|30px|link={{#invoke:Lang|get_string|CitadelCategoryTech|fallback_str=en}}]] <b>{{#invoke:Dictionary|translate|Tech Item}}</b>
|title      = {{ItemType|Tech|color=true}}
|state      =  
|state      =  
|titlestyle = background-color:#ffefd7;
|titlestyle = background-color:#ffefd7;
Line 60: Line 36:
|group1    =  
|group1    =  
|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>
}}|}}<noinclude>{{Documentation}}</noinclude>
 
{{Infobox ShopItems|weapon items = true|armor items = true|tech items = true}}

Latest revision as of 18:03, 22 May 2026

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

[edit source]
{{Infobox ShopItems|weapon items = true|armor items = true|tech items = true}}

Template parameters

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