Template:Item Navbox: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Add small horizontal padding for sublists |
Moved item type to be above each list to claim back horizontal space |
||
| Line 1: | Line 1: | ||
{{#vardefine: souls_style|font-size: 12px; text-shadow: 1px 1px rgba(0, 0, 0, 0.3);}} | |||
{{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; text-shadow: | |title = [[Items|<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>]] | |||
|state = | |state = | ||
|titlestyle = border-radius: 8px; background-image: linear-gradient(#c1a671, #d0bb95); font-family: 'PT Serif', 'Palatino','FreeSerif','Liberation Serif', serif; | |titlestyle = border-radius: 8px; background-image: linear-gradient(#c1a671, #d0bb95); font-family: 'PT Serif', 'Palatino','FreeSerif','Liberation Serif', serif; | ||
| Line 8: | Line 10: | ||
|aboveclass = hlist | |aboveclass = hlist | ||
|above = | |above = | ||
|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> | |||
{{Navbox subgroup | {{Navbox subgroup | ||
|groupstyle = background-color:#c97a03;width:10%; | |groupstyle = background-color:#c97a03;width:10%;min-width:70px;border-radius: 8px 0 0 8px | ||
|grouppadding = 5px | |||
|listpadding = 0 0.25rem | |listpadding = 0 0.25rem | ||
|group1 = {{Souls|500|Shadow= | |group1 = {{Souls|500|Shadow={{#var:souls_style}}}} | ||
|list1 = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|500|1250}} | |list1 = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|500|1250}} | ||
|group2 = {{Souls|1,250|Shadow= | |group2 = {{Souls|1,250|Shadow={{#var:souls_style}}}} | ||
|list2 = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|1250|3000}} | |list2 = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|1250|3000}} | ||
|group3 = {{Souls|3,000+|Shadow= | |group3 = {{Souls|3,000+|Shadow={{#var:souls_style}}}} | ||
|list3 = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|3000|6200}} | |list3 = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|3000|6200}} | ||
|group4 = {{Souls|6,200+|Shadow= | |group4 = {{Souls|6,200+|Shadow={{#var:souls_style}}}} | ||
|list4 = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|6200|10000}} | |list4 = {{#invoke:ItemData/nav|get_item_nav_cards|Weapon|6200|10000}} | ||
}} | }} | ||
|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> | |||
{{Navbox subgroup | {{Navbox subgroup | ||
|groupstyle = background-color:#659818;width:10%; | |groupstyle = background-color:#659818;width:10%;min-width:70px;border-radius: 8px 0 0 8px | ||
|grouppadding = 5px | |||
|listpadding = 0 0.25rem | |listpadding = 0 0.25rem | ||
|group1 = {{Souls|500|Shadow= | |group1 = {{Souls|500|Shadow={{#var:souls_style}}}} | ||
|list1 = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|500|1250}} | |list1 = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|500|1250}} | ||
|group2 = {{Souls|1,250|Shadow= | |group2 = {{Souls|1,250|Shadow={{#var:souls_style}}}} | ||
|list2 = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|1250|3000}} | |list2 = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|1250|3000}} | ||
|group3 = {{Souls|3,000+|Shadow= | |group3 = {{Souls|3,000+|Shadow={{#var:souls_style}}}} | ||
|list3 = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|3000|6200}} | |list3 = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|3000|6200}} | ||
|group4 = {{Souls|6,200+|Shadow= | |group4 = {{Souls|6,200+|Shadow={{#var:souls_style}}}} | ||
|list4 = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|6200|10000}} | |list4 = {{#invoke:ItemData/nav|get_item_nav_cards|Armor|6200|10000}} | ||
}} | }} | ||
|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> | |||
{{Navbox subgroup | {{Navbox subgroup | ||
|groupstyle = background-color:#8b56b4;width:10%; | |groupstyle = background-color:#8b56b4;width:10%;min-width:70px;border-radius: 8px 0 0 8px | ||
|grouppadding = 5px | |||
|listpadding = 0 0.25rem | |listpadding = 0 0.25rem | ||
|group1 = {{Souls|500|Shadow= | |group1 = {{Souls|500|Shadow={{#var:souls_style}}}} | ||
|list1 = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|500|1250}} | |list1 = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|500|1250}} | ||
|group2 = {{Souls|1,250|Shadow= | |group2 = {{Souls|1,250|Shadow={{#var:souls_style}}}} | ||
|list2 = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|1250|3000}} | |list2 = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|1250|3000}} | ||
|group3 = {{Souls|3,000+|Shadow= | |group3 = {{Souls|3,000+|Shadow={{#var:souls_style}}}} | ||
|list3 = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|3000|6200}} | |list3 = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|3000|6200}} | ||
|group4 = {{Souls|6,200+|Shadow= | |group4 = {{Souls|6,200+|Shadow={{#var:souls_style}}}} | ||
|list4 = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|6200|10000}} | |list4 = {{#invoke:ItemData/nav|get_item_nav_cards|Tech|6200|10000}} | ||
}} | }} | ||
}}<!--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 19:31, 25 October 2024
| ||||||||||||||||||||||||||||||||||||||||||||
This template is for the Items navigation box which lists all items in the game. You may be looking for the item icon template.
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.
| ||||||||||||||||||||||||||||||||||||||||||||