Template:Infobox ShopItems: Difference between revisions
Jump to navigation
Jump to search
m now uses item data via Module:ItemData/nav; changed weapon/vitality/spirit to their unlocalized names; localized front-displaying weapon/vitality/spirit |
finally fix the links |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#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: | |title = [[File:Weapon Icon.png|30px|link={{#invoke:Dictionary|translate|Weapon Item|lang_code_override=en}}]] <b>{{#invoke:Dictionary|translate|Weapon Item}}</b> | ||
|state = | |state = | ||
|titlestyle = background-color:#ffefd7; | |titlestyle = background-color:#ffefd7; | ||
Line 35: | Line 11: | ||
|above = | |above = | ||
|group1 = | |group1 = | ||
|list1 = {{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_cards}} | |||
}} | |||
}}|}}{{#ifeq:{{{armor items|}}}|true| | }}|}}{{#ifeq:{{{armor items|}}}|true| | ||
{{Navbox | {{Navbox | ||
|name = Items | |name = Items | ||
|title = [[File:Vitality Icon.png|30px|link={{#invoke: | |title = [[File:Vitality Icon.png|30px|link={{#invoke:Dictionary|translate|Armor Item|lang_code_override=en}}]] <b>{{#invoke:Dictionary|translate|Armor Item}}</b> | ||
|state = | |state = | ||
|titlestyle = background-color:#ffefd7; | |titlestyle = background-color:#ffefd7; | ||
Line 57: | Line 23: | ||
|above = | |above = | ||
|group1 = | |group1 = | ||
|list1 = {{#invoke:ItemData/nav|write_item_slot_subgroup|Armor|get_item_nav_cards}} | |||
}} | |||
}}|}}{{#ifeq:{{{tech items|}}}|true| | }}|}}{{#ifeq:{{{tech items|}}}|true| | ||
{{Navbox | {{Navbox | ||
|name = Items | |name = Items | ||
|title = [[File:Spirit icon.png|30px|link={{#invoke: | |title = [[File:Spirit icon.png|30px|link={{#invoke:Dictionary|translate|Tech Item|lang_code_override=en}}]] <b>{{#invoke:Dictionary|translate|Tech Item}}</b> | ||
|state = | |state = | ||
|titlestyle = background-color:#ffefd7; | |titlestyle = background-color:#ffefd7; | ||
Line 79: | Line 35: | ||
|above = | |above = | ||
|group1 = | |group1 = | ||
|list1 = {{#invoke:ItemData/nav|write_item_slot_subgroup|Tech|get_item_nav_cards}} | |||
}}|}}<noinclude>{{Documentation}}</noinclude> | |||
Latest revision as of 04:56, 3 November 2024
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}}
|
|
|
Parameter | Description | Type | Status | |
---|---|---|---|---|
weapon items | weapon items | Choose whether or not to show Weapon items.
| Boolean | optional |
armor items | armor items | Choose whether or not to show Armor (Vitality) Items
| Boolean | optional |
tech items | tech items | Choose whether or not to show Tech (Spirit) Items.
| Boolean | optional |