Editing
Module:ItemData/nav/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=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. ===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 * '''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. ===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}} ==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. ===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]] ===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. ===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.
Summary:
Please note that all contributions to 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
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Module
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Discord community
Recent changes
Random page
Tools
What links here
Related changes
Special pages
Page information
Languages