Editing Template:Item Navbox v2

Jump to navigation Jump to search
Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
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
<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      = {{ItemType|Weapon|color=true}}
|title      = [[File:Weapon Icon.png|30px|link={{#invoke:Lang|get_string|CitadelCategoryWeapon|fallback_str=en}}]] <b>{{#invoke:Dictionary|translate|Weapon Item}}</b>
|state      =  
|state      =  
|titlestyle = background-color:#ffefd7;
|titlestyle = background-color:#ffefd7;
Line 11: Line 35:
|above =  
|above =  
|group1    =  
|group1    =  
|list1      = {{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_cards}}
|list1      = {{Navbox subgroup
|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
|name      = Items
|name      = Items
|title      = {{ItemType|Armor|color=true}}
|title      = [[File:Vitality Icon.png|30px|link={{#invoke:Lang|get_string|CitadelCategoryArmor|fallback_str=en}}]] <b>{{#invoke:Dictionary|translate|Armor Item}}</b>
|state      =  
|state      =  
|titlestyle = background-color:#ffefd7;
|titlestyle = background-color:#ffefd7;
Line 23: Line 57:
|above =  
|above =  
|group1    =  
|group1    =  
|list1      = {{#invoke:ItemData/nav|write_item_slot_subgroup|Armor|get_item_nav_cards}}
|list1      = {{Navbox subgroup
|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
|name      = Items
|name      = Items
|title      = {{ItemType|Tech|color=true}}
|title      = [[File:Spirit icon.png|30px|link={{#invoke:Lang|get_string|CitadelCategoryTech|fallback_str=en}}]] <b>{{#invoke:Dictionary|translate|Tech Item}}</b>
|state      =  
|state      =  
|titlestyle = background-color:#ffefd7;
|titlestyle = background-color:#ffefd7;
Line 35: Line 79:
|above =  
|above =  
|group1    =  
|group1    =  
|list1      = {{#invoke:ItemData/nav|write_item_slot_subgroup|Tech|get_item_nav_cards}}
|list1      = {{Navbox subgroup
}}|}}<noinclude>{{Documentation}}</noinclude>
|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>
 
{{Infobox ShopItems|weapon items = true|armor items = true|tech items = true}}
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template