Template:Item Navbox v2: Difference between revisions

Sur (talk | contribs)
m removed an uncommented comment
Sur (talk | contribs)
m soul groups now dynamic using write_item_slot_subgroup
Line 1: Line 1:
Similar to [[Template:Item Navbox]], but calls [[Template:ItemBox]] instead of [[Template:ItemIcon]] for each item's formatting. Simply set which ones you want to true when creating
Similar to [[Template:Item Navbox]], but calls [[Template:ItemBox]] instead of [[Template:ItemIcon]] for each item's formatting. Simply set which ones you want to true when creating (Someone please let me know if this is bad for optimisation :) ) -Sur: Don't worry, your method is actually very efficient ;)
<templatedata>
<templatedata>
{
{
Line 35: Line 35:
|above =  
|above =  
|group1    =  
|group1    =  
|list1      = {{Navbox subgroup
|list1      = {{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_cards}}
|groupstyle = background-color:#79511f;width:10%;
|group1    = {{Souls|500|Shadow={{#var:souls_style}}}}
|list1      = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|500|1250}}
    |group2    = {{Souls|1,250+|Shadow={{#var:souls_style}}}}
    |list2      = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|1250|3000}}
    |group3    = {{Souls|3,000+|Shadow={{#var:souls_style}}}}
    |list3      = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|3000|6200}}
    |group4    = {{Souls|6,200+|Shadow={{#var:souls_style}}}}
    |list4      = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|6200|10000}}
}}
}}|}}{{#ifeq:{{{armor items|}}}|true|
}}|}}{{#ifeq:{{{armor items|}}}|true|
{{Navbox
{{Navbox
Line 57: Line 47:
|above =  
|above =  
|group1    =  
|group1    =  
|list1      = {{Navbox subgroup
|list1      = {{#invoke:ItemData/nav|write_item_slot_subgroup|Armor|get_item_nav_cards}}
|groupstyle = background-color:#79511f;width:10%;
|group1    = {{Souls|500|Shadow={{#var:souls_style}}}}
|list1      = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|500|1250}}
    |group2    = {{Souls|1,250+|Shadow={{#var:souls_style}}}}
    |list2      = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|1250|3000}}
    |group3    = {{Souls|3,000+|Shadow={{#var:souls_style}}}}
    |list3      = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|3000|6200}}
    |group4    = {{Souls|6,200+|Shadow={{#var:souls_style}}}}
    |list4      = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|6200|10000}}
}}
}}|}}{{#ifeq:{{{tech items|}}}|true|
}}|}}{{#ifeq:{{{tech items|}}}|true|
{{Navbox
{{Navbox
Line 79: Line 59:
|above =  
|above =  
|group1    =  
|group1    =  
|list1      = {{Navbox subgroup
|list1      = {{#invoke:ItemData/nav|write_item_slot_subgroup|Tech|get_item_nav_cards}}
|groupstyle = background-color:#79511f;width:10%;
|group1    = {{Souls|500|Shadow={{#var:souls_style}}}}
|list1      = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|500|1250}}
    |group2    = {{Souls|1,250+|Shadow={{#var:souls_style}}}}
    |list2      = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|1250|3000}}
    |group3    = {{Souls|3,000+|Shadow={{#var:souls_style}}}}
    |list3      = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|3000|6200}}
    |group4    = {{Souls|6,200+|Shadow={{#var:souls_style}}}}
    |list4      = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|6200|10000}}
}}
}}|}}</onlyinclude>
}}|}}</onlyinclude>


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