Template:Item Navbox: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
Sur (talk | contribs)
m soul groupings now dynamic using write_item_slot_subgroup
Sur (talk | contribs)
m Weapon, Armor, Vitality texts now localized
Line 1: Line 1:
{{Navbox
{{Navbox
|name      = Items
|name      = Items
|title      = [[Items|<span style="color:#FFF5E8; font-weight:bold; font-family: 'Retail Demo', 'PT Serif','Palatino','Georgia',serif; font-size: 18px;
|title      = [[Item|<span style="color:#FFF5E8; font-weight:bold; font-family: 'Retail Demo', 'PT Serif','Palatino','Georgia',serif; font-size: 18px;
text-shadow: 1px 1px rgba(0,0,0,0.3); ">Items</span>]]
text-shadow: 1px 1px rgba(0,0,0,0.3); ">Items</span>]]
|state      =  
|state      =  
Line 11: Line 11:
|group1    =
|group1    =
|list1      =  
|list1      =  
<div style="text-align: center; width: 100%; margin: 5px 0 5px 0; background-image: linear-gradient(#c1a671, #d0bb95); border-radius: 8px;">[[Weapon|<span style="color:#FFF5E8; font-family:'Retail Demo','FreeSerif','Liberation Serif',serif; font-weight:bold; text-shadow: 1px 1px rgba(0,0,0,0.3);">Weapon</span>]]</div>
<div style="text-align: center; width: 100%; margin: 5px 0 5px 0; background-image: linear-gradient(#c1a671, #d0bb95); border-radius: 8px;">[[{{#invoke:Lang|get_string|CitadelCategoryWeapon|lang_code_override=en|fallback_str=en}}|<span style="color:#FFF5E8; font-family:'Retail Demo','FreeSerif','Liberation Serif',serif; font-weight:bold; text-shadow: 1px 1px rgba(0,0,0,0.3);">{{#invoke:Lang|get_string|CitadelCategoryWeapon|fallback_str=en}}</span>]]</div>
{{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_bulletpoints}}
{{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_bulletpoints}}
|group2    =  
|group2    =  
|list2      =  
|list2      =  
<div style="text-align: center; width: 100%; margin: 5px 0 5px 0; background-image: linear-gradient(#c1a671, #d0bb95); border-radius: 8px;">[[Vitality|<span style="color:#FFF5E8; font-family:'Retail Demo','FreeSerif','Liberation Serif',serif; font-weight:bold; text-shadow: 1px 1px rgba(0,0,0,0.3);">Vitality</span>]]</div>
<div style="text-align: center; width: 100%; margin: 5px 0 5px 0; background-image: linear-gradient(#c1a671, #d0bb95); border-radius: 8px;">[[{{#invoke:Lang|get_string|CitadelCategoryArmor|lang_code_override=en|fallback_str=en}}|<span style="color:#FFF5E8; font-family:'Retail Demo','FreeSerif','Liberation Serif',serif; font-weight:bold; text-shadow: 1px 1px rgba(0,0,0,0.3);">{{#invoke:Lang|get_string|CitadelCategoryArmor|fallback_str=en}}</span>]]</div>
{{#invoke:ItemData/nav|write_item_slot_subgroup|Armor|get_item_nav_bulletpoints}}
{{#invoke:ItemData/nav|write_item_slot_subgroup|Armor|get_item_nav_bulletpoints}}
|group3    =  
|group3    =  
|list3      =  
|list3      =  
<div style="text-align: center; width: 100%; margin: 5px 0 5px 0; background-image: linear-gradient(#c1a671, #d0bb95); border-radius: 8px;">[[Spirit|<span style="color:#FFF5E8; font-family:'Retail Demo','FreeSerif','Liberation Serif',serif; font-weight:bold; text-shadow: 1px 1px rgba(0,0,0,0.3);">Spirit</span>]]</div>
<div style="text-align: center; width: 100%; margin: 5px 0 5px 0; background-image: linear-gradient(#c1a671, #d0bb95); border-radius: 8px;">[[{{#invoke:Lang|get_string|CitadelCategoryTech|lang_code_override=en|fallback_str=en}}|<span style="color:#FFF5E8; font-family:'Retail Demo','FreeSerif','Liberation Serif',serif; font-weight:bold; text-shadow: 1px 1px rgba(0,0,0,0.3);">{{#invoke:Lang|get_string|CitadelCategoryTech|fallback_str=en}}</span>]]</div>
{{#invoke:ItemData/nav|write_item_slot_subgroup|Tech|get_item_nav_bulletpoints}}
{{#invoke:ItemData/nav|write_item_slot_subgroup|Tech|get_item_nav_bulletpoints}}
}}<!--Do not have this template automatically transclude [[Category:Items]]! Instead {{Infobox item}} should do that.--><noinclude>{{Documentation}}</noinclude>
}}<!--Do not have this template automatically transclude [[Category:Items]]! Instead {{Infobox item}} should do that.--><noinclude>{{Documentation}}</noinclude>

Revision as of 23:24, 1 November 2024

Template documentation [view] [edit] [history] [purge]
This template is for the Items navigation box which lists all items in the game. You may be looking for the item icon template.
CSS3 logo.svg
This template uses CSS found at Item Navbox/styles.css.

Similar to Template:Infobox ShopItems, but calls Template:ItemIcon instead of Template:ItemBox for each item's formatting. Street Brawl items are automatically listed in a separate row at the bottom of each category.