Template:Infobox ShopItems: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Saag (talk | contribs)
Removed manual attribute assignment for weapon items
Sylphoid (talk | contribs)
finally fix the links
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Custom template containing 3 navboxes. Simply set which ones you want to true when creating (Someone please let me know if this is bad for optimisation :) )
{{#vardefine:souls_style|font-size: 12px; text-shadow: 1px 1px rgba(0, 0, 0, 0.3);}}
<templatedata>
{
"params": {
"weapon items": {
"description": "Choose whether or not to show Weapon items.",
"type": "boolean",
"default": "false"
},
"vitality items": {
"description": "Choose whether or not to show Vitality Items",
"type": "boolean",
"default": "false"
},
"spirit items": {
"description": "Choose whether or not to show Spirit Items.",
"type": "boolean",
"default": "false"
}
}
}
</templatedata>
 
<onlyinclude>
{{#ifeq:{{{weapon items|}}}|true|
{{#ifeq:{{{weapon items|}}}|true|
{{Navbox
{{Navbox
|name      = Items
|name      = Items
|title      = [[File:Weapon Icon.png|30px|link=Weapon]] <b>Weapon Items</b>
|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 34: Line 11:
|above =  
|above =  
|group1    =  
|group1    =  
|list1      =  
|list1      = {{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_cards}}
{{Navbox subgroup
}}|}}{{#ifeq:{{{armor items|}}}|true|
|groupstyle = background-color:#79511f;width:10%;
|group1    = {{Souls|500}}
|list1      = {{ItemBox|item_name = Basic Magazine}}
                  {{ItemBox|item_name = Close Quarters}}
                  {{ItemBox|item_name = Headshot Booster}}
                  {{ItemBox|item_name = High-Velocity Mag}}
                  {{ItemBox|item_name = Hollow Point Ward}}
                  {{ItemBox|item_name = Monster Rounds}}
                  {{ItemBox|item_name = Rapid Rounds}}
                  {{ItemBox|item_name = Restorative Shot}}
    |group2    = {{Souls|1,250+}}
    |list2      =
                  {{ItemBox|item_name = Active Reload}}
                  {{ItemBox|item_name = Berserker}}
                  {{ItemBox|item_name = Kinetic Dash}}
                  {{ItemBox|item_name = Long Range}}
                  {{ItemBox|item_name = Melee Charge}}
                  {{ItemBox|item_name = Mystic Shot}}
                  {{ItemBox|item_name = Slowing Bullets}}
                  {{ItemBox|item_name = Soul Shredder Bullets}}
                  {{ItemBox|item_name = Swift Striker}}
                  {{ItemBox|item_name = Fleetfoot}}
    |group3    = {{Souls|3,000+}}
    |list3      = {{ItemBox|item_name = Burst Fire}}
                  {{ItemBox|item_name = Escalating Resilience}}
                  {{ItemBox|item_name = Headhunter}}
                  {{ItemBox|item_name = Hunter's Aura}}
                  {{ItemBox|item_name = Intensifying Magazine}}
                  {{ItemBox|item_name = Point Blank}}
                  {{ItemBox|item_name = Pristine Emblem}}
                  {{ItemBox|item_name = Sharpshooter}}
                  {{ItemBox|item_name = Tesla Bullets}}
                  {{ItemBox|item_name = Titanic Magazine}}
                  {{ItemBox|item_name = Toxic Bullets}}
                  {{ItemBox|item_name = Alchemical Fire}}
                  {{ItemBox|item_name = Heroic Aura}}
                  {{ItemBox|item_name = Warp Stone}}
    |group4    = {{Souls|6,300+}}
    |list4      = {{ItemBox|item_name = Crippling Headshot}}
                  {{ItemBox|item_name = Frenzy}}
                  {{ItemBox|item_name = Glass Cannon}}
                  {{ItemBox|item_name = Lucky Shot}}
                  {{ItemBox|item_name = Ricochet}}
                  {{ItemBox|item_name = Siphon Bullets}}
                  {{ItemBox|item_name = Spiritual Overflow}}
                  {{ItemBox|item_name = Silencer}}
                  {{ItemBox|item_name = Vampiric Burst}}
    }}
}}|}}{{#ifeq:{{{vitality items|}}}|true|
{{Navbox
{{Navbox
|name      = Items
|name      = Items
|title      = [[File:Vitality Icon.png|30px|link=Vitality]] <b>Vitality Items</b>
|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 95: Line 23:
|above =  
|above =  
|group1    =  
|group1    =  
|list1      =  
|list1      = {{#invoke:ItemData/nav|write_item_slot_subgroup|Armor|get_item_nav_cards}}
{{Navbox subgroup
}}|}}{{#ifeq:{{{tech items|}}}|true|
|groupstyle = background-color:#557e15;width:10%;
|group1    = {{Souls|500}}
|list1      = {{ItemBox|item_name = Enduring Spirit|item_type = Vitality||item_price = 500}} {{ItemBox|item_name = Extra Health|item_type = Vitality||item_price = 500}} {{ItemBox|item_name = Extra Regen|item_type = Vitality||item_price = 500}} {{ItemBox|item_name = Extra Stamina|item_type = Vitality||item_price = 500|componentOf = Superior Stamina}} {{ItemBox|item_name = Melee Lifesteal|item_type = Vitality||item_price = 500}} {{ItemBox|item_name = Sprint Boots|item_type = Vitality||item_price = 500}} {{ItemBox|item_name = Healing Rite|item_type = Vitality||item_price = 500}}
    |group2    = {{Souls|1,250+}}
    |list2      = {{ItemBox|item_name = Bullet Armor|item_type = Vitality||item_price = 1250}} {{ItemBox|item_name = Bullet Lifesteal (item)|item_type = Vitality||item_price = 1250|display_name = Bullet Lifesteal}} {{ItemBox|item_name = Combat Barrier|item_type = Vitality||item_price = 1250}} {{ItemBox|item_name = Debuff Reducer|item_type = Vitality||item_price = 1250}} {{ItemBox|item_name = Enchanter's Barrier|item_type = Vitality||item_price = 1250}} {{ItemBox|item_name = Enduring Speed|item_type = Vitality||item_price = 1750}} {{ItemBox|item_name = Healbane|item_type = Vitality||item_price = 1250}} {{ItemBox|item_name = Healing Booster|item_type = Vitality||item_price = 1250}} {{ItemBox|item_name = Reactive Barrier|item_type = Vitality||item_price = 1250}} {{ItemBox|item_name = Spirit Armor|item_type = Vitality||item_price = 1250}} {{ItemBox|item_name = Spirit Lifesteal (item)|item_type = Vitality||item_price = 1250|display_name = Spirit Lifesteal}} {{ItemBox|item_name = Divine Barrier|item_type = Vitality||item_price = 1250}} {{ItemBox|item_name = Health Nova|item_type = Vitality||item_price = 1250}} {{ItemBox|item_name = Restorative Locket|item_type = Vitality||item_price = 1250}} {{ItemBox|item_name = Return Fire|item_type = Vitality||item_price = 1250}}
    |group3    = {{Souls|3,000+}}
    |list3      = {{ItemBox|item_name = Fortitude|item_type = Vitality|item_price = 3000}} {{ItemBox|item_name = Improved Bullet Armor|item_type = Vitality|item_price = 4250}} {{ItemBox|item_name = Improved Spirit Armor|item_type = Vitality|item_price = 4250}} {{ItemBox|item_name = Lifestrike|item_type = Vitality|item_price = 3500}} {{ItemBox|item_name = Superior Stamina|item_type = Vitality|item_price = 3500}} {{ItemBox|item_name = Veil Walker|item_type = Vitality|item_price = 3000}} {{ItemBox|item_name = Debuff Remover|item_type = Vitality|item_price = 4250}} {{ItemBox|item_name = Majestic Leap|item_type = Vitality|item_price = 3000}} {{ItemBox|item_name = Metal Skin|item_type = Vitality|item_price = 3000}} {{ItemBox|item_name = Rescue Beam|item_type = Vitality|item_price = 3000}}
    |group4    = {{Souls|6,300+}}
    |list4      = {{ItemBox|item_name = Inhibitor|item_type = Vitality|item_price = 6300}} {{ItemBox|item_name = Leech|item_type = Vitality|item_price = 6300}} {{ItemBox|item_name = Soul Rebirth|item_type = Vitality|item_price = 6300}} {{ItemBox|item_name = Colossus|item_type = Vitality|item_price = 6300}} {{ItemBox|item_name = Phantom Strike|item_type = Vitality|item_price = 6300}} {{ItemBox|item_name = Shadow Weave|item_type = Vitality|item_price = 6300}} {{ItemBox|item_name = Unstoppable|item_type = Vitality|item_price = 6300}}
    }}
}}|}}{{#ifeq:{{{spirit items|}}}|true|
{{Navbox
{{Navbox
|name      = Items
|name      = Items
|title      = [[File:Spirit icon.png|30px|link=Spirit]] <b>Spirit Items</b>
|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 118: Line 35:
|above =  
|above =  
|group1    =  
|group1    =  
|list1      =  
|list1      = {{#invoke:ItemData/nav|write_item_slot_subgroup|Tech|get_item_nav_cards}}
{{Navbox subgroup
}}|}}<noinclude>{{Documentation}}</noinclude>
|groupstyle = background-color:#604078;width:10%;
|group1    = {{Souls|500}}
|list1      = {{ItemBox|item_name = Ammo Scavenger|item_type = Spirit|item_price = 500}} {{ItemBox|item_name = Extra Charge|item_type = Spirit|item_price = 500}} {{ItemBox|item_name = Extra Spirit|item_type = Spirit|item_price = 500}} {{ItemBox|item_name = Mystic Burst|item_type = Spirit|item_price = 500}} {{ItemBox|item_name = Mystic Reach|item_type = Spirit|item_price = 500}} {{ItemBox|item_name = Spirit Strike|item_type = Spirit|item_price = 500}} {{ItemBox|item_name = Infuser|item_type = Spirit|item_price = 500}}
    |group2    = {{Souls|1,250+}}
    |list2      = {{ItemBox|item_name = Bullet Resist Shredder|item_type = Spirit|item_price = 1250}} {{ItemBox|item_name = Duration Extender|item_type = Spirit|item_price = 1250}} {{ItemBox|item_name = Improved Cooldown|item_type = Spirit|item_price = 1250}} {{ItemBox|item_name = Mystic Vulnerability|item_type = Spirit|item_price = 1250}} {{ItemBox|item_name = Quicksilver Reload|item_type = Spirit|item_price = 1250}} {{ItemBox|item_name = Suppressor|item_type = Spirit|item_price = 1250}} {{ItemBox|item_name = Cold Front|item_type = Spirit|item_price = 1250}} {{ItemBox|item_name = Decay|item_type = Spirit|item_price = 1250}} {{ItemBox|item_name = Slowing Hex|item_type = Spirit|item_price = 1250}} {{ItemBox|item_name = Withering Whip|item_type = Spirit|item_price = 1250}}
    |group3    = {{Souls|3,000+}}
    |list3      = {{ItemBox|item_name = Improved Burst|item_type = Spirit|item_price = 3500}} {{ItemBox|item_name = Improved Reach|item_type = Spirit|item_price = 3000}} {{ItemBox|item_name = Improved Spirit|item_type = Spirit|item_price = 3500}} {{ItemBox|item_name = Mystic Slow|item_type = Spirit|item_price = 4250}} {{ItemBox|item_name = Rapid Recharge|item_type = Spirit|item_price = 3500}} {{ItemBox|item_name = Superior Cooldown|item_type = Spirit|item_price = 4250}} {{ItemBox|item_name = Superior Duration|item_type = Spirit|item_price = 4250}} {{ItemBox|item_name = Surge of Power|item_type = Spirit|item_price = 3000}} {{ItemBox|item_name = Torment Pulse|item_type = Spirit|item_price = 3000}} {{ItemBox|item_name = Ethereal Shift|item_type = Spirit|item_price = 3000}} {{ItemBox|item_name = Knockdown|item_type = Spirit|item_price = 3000}} {{ItemBox|item_name = Silence Glyph|item_type = Spirit|item_price = 3000}}
    |group4    = {{Souls|6,300+}}
    |list4      = {{ItemBox|item_name = Boundless Spirit|item_type = Spirit|item_price = 9800}} {{ItemBox|item_name = Diviner's Kevlar|item_type = Spirit|item_price = 6300}} {{ItemBox|item_name = Escalating Exposure|item_type = Spirit|item_price = 7550}} {{ItemBox|item_name = Mystic Reverb|item_type = Spirit|item_price = 6300}} {{ItemBox|item_name = Curse|item_type = Spirit|item_price = 6300}} {{ItemBox|item_name = Echo Shard|item_type = Spirit|item_price = 6300}} {{ItemBox|item_name = Magic Carpet|item_type = Spirit|item_price = 6300}} {{ItemBox|item_name = Refresher|item_type = Spirit|item_price = 6300}}
    }}
}}|}}</onlyinclude>
 
{{Infobox ShopItems|weapon items = true|vitality items = true|spirit items = true}}

Latest revision as of 04:56, 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[edit source]

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