Editing
Module
:
ItemData/nav/doc
Give feedback
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.
Anti-spam check. Do
not
fill this in!
=Overview= Functions for creating navigation boxes/lists for items, grouped by a slot/category and souls. Supports filtering for Street Brawl items. =Functions= ==get_item_nav_bulletpoints== Gets a list of items that are each sent to the [[Template:ItemIcon]] template, separated by bullet points. Filters down to a slot/specific category, and within a range of souls. Can optionally filter for Street Brawl items. ===Parameters=== * '''slot''' - Slot/category that the items should be, should be Weapon, Armor, or Tech * '''min_souls''' - Minimum souls that the items should have * '''max_souls''' - Maximum souls that the items should have ('''Note:''' the command does not include items ''equal to'' this value, so in order to include them it should be written as <code>cost + 1</code>) * '''debug_mode''' - (OPTIONAL) - if set to 'true', the wikitext is unprocessed, allowing for it to be read more clearly. Also used for showcasing the documentation examples more clearly. * '''filter''' - (OPTIONAL) - Filters items based on Street Brawl status. Options: <code>exclude_street_brawl</code> (show only regular items), <code>street_brawl_only</code> (show only Street Brawl items), or unset (show all) ===Examples=== With debug_mode on (for illustration purposes) <code><nowiki>{{#invoke:ItemData/nav|get_item_nav_bulletpoints|Armor|1250|3000|debug_mode=true}}</nowiki></code> {{#invoke:ItemData/nav|get_item_nav_bulletpoints|Armor|1250|3000|debug_mode=true}} With debug_mode off <code><nowiki>{{#invoke:ItemData/nav|get_item_nav_bulletpoints|Armor|1250|3000}}</nowiki></code> {{#invoke:ItemData/nav|get_item_nav_bulletpoints|Armor|1250|3000}} To include the 3000 items <code><nowiki>{{#invoke:ItemData/nav|get_item_nav_bulletpoints|Armor|1250|3001}}</nowiki></code> {{#invoke:ItemData/nav|get_item_nav_bulletpoints|Armor|1250|3001}} ==get_item_nav_cards== Gets a list of items that are each sent to the [[Template:ItemBox]] template, separated by space. Filters down to a specific slot/category, and within a range of souls. Can optionally filter for Street Brawl items. ===Parameters=== Same as get_item_nav_bulletpoints ===Examples=== With debug_mode on (for illustration purposes) <code><nowiki>{{#invoke:ItemData/nav|get_item_nav_bulletpoints|Armor|1250|3000|debug_mode=true}}</nowiki></code> {{#invoke:ItemData/nav|get_item_nav_cards|Armor|1250|3000|debug_mode=true}} With debug_mode off <code><nowiki>{{#invoke:ItemData/nav|get_item_nav_bulletpoints|Armor|1250|3000}}</nowiki></code> {{#invoke:ItemData/nav|get_item_nav_cards|Armor|1250|3000}} ==write_item_slot_subgroup== Writes a sub group for the navbox on [[Template:Item Navbox]] and [[Template:Infobox ShopItems]]. The sub group contains all items in each price range from "ItemPricePerTier" in [[Data:GenericData.json]]. Street Brawl items are automatically separated into their own row at the end. ===Parameters=== * '''slot''' - Slot/category to create the subgroup for, ie Weapon, Armor, or Tech * '''type''' - The subfunction to call that determines the list formatting style. Options are 'get_item_nav_bulletpoints' or 'get_item_nav_cards' * '''debug_mode''' - (OPTIONAL) - if set to 'true', the wikitext is unprocessed, allowing for it to be read more clearly. Also used for showcasing the documentation examples more clearly. * '''street_brawl_label''' - (OPTIONAL) - Custom label text for the Street Brawl row. Defaults to "Street Brawl" ===Examples=== With debug_mode on (for illustration purposes) <code><nowiki>{{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_bulletpoints|debug_mode=true}}</nowiki></code> {{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_bulletpoints|debug_mode=true}} With debug_mode off <code><nowiki>{{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_bulletpoints}}</nowiki></code> {{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_bulletpoints}} Recall that it creates subgroup parameters for the mentioned templates. ==generate_active_items_table== Creates table of localized released active items. Used in [[Template:Active Items]] ===Example=== <pre>{{#invoke:ItemData/nav|generate_active_items_table}}</pre> {{#invoke:ItemData/nav|generate_active_items_table}}
Summary:
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
Pages included on this page:
Template:Icon/Brown
(
edit
)
Template:Icon/Green
(
edit
)
Template:Icon/NoColor
(
edit
)
Template:Icon/Purple
(
edit
)
Template:Icon/White
(
edit
)
Template:If lang
(
view source
) (⧼restriction-level-bot+⧽)
Template:ItemBox
(
edit
)
Template:ItemBox/styles.css
(
edit
)
Template:ItemIcon
(
edit
)
Template:ItemType
(
edit
)
Template:Legendary
(
edit
)
Template:MissingValveTranslationTooltip
(
edit
)
Template:Navbox
(
edit
)
Template:Navbox subgroup
(
edit
)
Template:Souls
(
edit
)
Template:Ss
(
edit
)
Template:Ss/styles.css
(
edit
)
Template:Tooltip
(
edit
)
Module:Dictionary
(
edit
)
Module:GenericData
(
edit
)
Module:Icon
(
edit
)
Module:Icon/data
(
edit
)
Module:ItemBox
(
edit
)
Module:ItemData
(
edit
)
Module:ItemData/nav
(
edit
)
Module:Lang
(
edit
)
Module:Souls
(
edit
)
Module:TextFit
(
edit
)
Module:Utilities
(
edit
)
Data:Dictionary
(
edit
)
Data:GenericData.json
(
view source
) (⧼restriction-level-bot+⧽)
Data:ItemData.json
(
view source
) (⧼restriction-level-bot+⧽)
Data:LangCodes.json
(
view source
) (⧼restriction-level-bot+⧽)
Data:Lang en.json
(
view source
) (⧼restriction-level-bot+⧽)
Data:ResourceLookup.json
(
edit
)
Data:ResourceLookup2.json
(
edit
)
Navigation menu
Personal tools
Create account
Log in
associated-pages
Module
Discussion
English
Views
Read
Edit source
History
Tools
Search
Discord
Discord
Navigation
Main page
About us
Random page
Special pages
Recent changes
Neutral
7h ago
·
~2026-LaneFireUrn1085
Souls
7h ago
·
Gammaton32
Neutral
8h ago
·
~2026-LaneFireUrn1085
Victor/Lore
10h ago
·
Roseabrams96
Show more...
Interface Admin
Common CSS
Vector CSS
Minerva CSS
Citizen CSS
Brown theme CSS
Gadgets
Gadgets definition
Editing
How to edit
Style guide
All guides
New files
Unresolved feedback
Tools
What links here
Related changes
Page information