Template:Item Navbox v2: Difference between revisions

Removed manual attribute assignment for Spirit items
m Gammaton32 moved page Template:Infobox ShopItems to Template:Item Navbox v2: better name
 
(10 intermediate revisions by 4 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      = {{ItemType|Weapon|color=true}}
|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      = {{ItemType|Armor|color=true}}
|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}}
                  {{ItemBox|item_name = Extra Health}}
                  {{ItemBox|item_name = Extra Regen}}
                  {{ItemBox|item_name = Extra Stamina}}
                  {{ItemBox|item_name = Melee Lifesteal}}
                  {{ItemBox|item_name = Sprint Boots}}
                  {{ItemBox|item_name = Healing Rite}}
    |group2    = {{Souls|1,250+}}
    |list2      = {{ItemBox|item_name = Bullet Armor}}
                  {{ItemBox|item_name = Bullet Lifesteal}}
                  {{ItemBox|item_name = Combat Barrier}}
                  {{ItemBox|item_name = Debuff Reducer}}
                  {{ItemBox|item_name = Enchanter's Barrier}}
                  {{ItemBox|item_name = Enduring Speed}}
                  {{ItemBox|item_name = Healbane}}
                  {{ItemBox|item_name = Healing Booster}}
                  {{ItemBox|item_name = Reactive Barrier}}
                  {{ItemBox|item_name = Spirit Armor}}
                  {{ItemBox|item_name = Spirit Lifesteal}}
                  {{ItemBox|item_name = Divine Barrier}}
                  {{ItemBox|item_name = Health Nova}}
                  {{ItemBox|item_name = Restorative Locket}}
                  {{ItemBox|item_name = Return Fire}}
    |group3    = {{Souls|3,000+}}
    |list3      = {{ItemBox|item_name = Fortitude}}
                  {{ItemBox|item_name = Improved Bullet Armor}}
                  {{ItemBox|item_name = Improved Spirit Armor}}
                  {{ItemBox|item_name = Lifestrike}}
                  {{ItemBox|item_name = Superior Stamina}}
                  {{ItemBox|item_name = Veil Walker}}
                  {{ItemBox|item_name = Debuff Remover}}
                  {{ItemBox|item_name = Majestic Leap}}
                  {{ItemBox|item_name = Metal Skin}}
                  {{ItemBox|item_name = Rescue Beam}}
    |group4    = {{Souls|6,300+}}
    |list4      = {{ItemBox|item_name = Inhibitor}}
                  {{ItemBox|item_name = Leech}}
                  {{ItemBox|item_name = Soul Rebirth}}
                  {{ItemBox|item_name = Colossus}}
                  {{ItemBox|item_name = Phantom Strike}}
                  {{ItemBox|item_name = Shadow Weave}}
                  {{ItemBox|item_name = Unstoppable}}
    }}
}}|}}{{#ifeq:{{{spirit items|}}}|true|
{{Navbox
{{Navbox
|name      = Items
|name      = Items
|title      = [[File:Spirit icon.png|30px|link=Spirit]] <b>Spirit Items</b>
|title      = {{ItemType|Tech|color=true}}
|state      =  
|state      =  
|titlestyle = background-color:#ffefd7;
|titlestyle = background-color:#ffefd7;
Line 153: 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}}
                  {{ItemBox|item_name = Extra Charge}}
                  {{ItemBox|item_name = Extra Spirit}}
                  {{ItemBox|item_name = Mystic Burst}}
                  {{ItemBox|item_name = Mystic Reach}}
                  {{ItemBox|item_name = Spirit Strike}}
                  {{ItemBox|item_name = Infuser}}
    |group2    = {{Souls|1,250+}}
    |list2      = {{ItemBox|item_name = Bullet Resist Shredder}}
                  {{ItemBox|item_name = Duration Extender}}
                  {{ItemBox|item_name = Improved Cooldown}}
                  {{ItemBox|item_name = Mystic Vulnerability}}
                  {{ItemBox|item_name = Quicksilver Reload}}
                  {{ItemBox|item_name = Suppressor}}
                  {{ItemBox|item_name = Cold Front}}
                  {{ItemBox|item_name = Decay}}
                  {{ItemBox|item_name = Slowing Hex}}
                  {{ItemBox|item_name = Withering Whip}}
    |group3    = {{Souls|3,000+}}
    |list3      = {{ItemBox|item_name = Improved Burst}}
                  {{ItemBox|item_name = Improved Reach}}
                  {{ItemBox|item_name = Improved Spirit}}
                  {{ItemBox|item_name = Mystic Slow}}
                  {{ItemBox|item_name = Rapid Recharge}}
                  {{ItemBox|item_name = Superior Cooldown}}
                  {{ItemBox|item_name = Superior Duration}}
                  {{ItemBox|item_name = Surge of Power}}
                  {{ItemBox|item_name = Torment Pulse}}
                  {{ItemBox|item_name = Ethereal Shift}}
                  {{ItemBox|item_name = Knockdown}}
                  {{ItemBox|item_name = Silence Glyph}}
    |group4    = {{Souls|6,300+}}
    |list4      = {{ItemBox|item_name = Boundless Spirit}}
                  {{ItemBox|item_name = Diviner's Kevlar}}
                  {{ItemBox|item_name = Escalating Exposure}}
                  {{ItemBox|item_name = Mystic Reverb}}
                  {{ItemBox|item_name = Curse}}
                  {{ItemBox|item_name = Echo Shard}}
                  {{ItemBox|item_name = Magic Carpet}}
                  {{ItemBox|item_name = Refresher}}
    }}
}}|}}</onlyinclude>
 
{{Infobox ShopItems|weapon items = true|vitality items = true|spirit items = true}}