Editing Module:ItemData/nav/docGive feedback
Jump to navigation
Jump to search
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: | ||
=Overview= | =Overview= | ||
Functions for creating navigation boxes/lists for items, grouped by a slot/category and souls | Functions for creating navigation boxes/lists for items, grouped by a slot/category and souls | ||
=Functions= | =Functions= | ||
| Line 6: | Line 6: | ||
Gets a list of items that are each sent to the [[Template:ItemIcon]] template, separated by bullet points. | 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 | Filters down to a slot/specific category, and within a range of souls. | ||
===Parameters=== | ===Parameters=== | ||
* '''slot''' - Slot/category that the items should be, should be Weapon, Armor, or Tech | * '''slot''' - Slot/category that the items should be, should be Weapon, Armor, or Tech | ||
* '''min_souls''' - Minimum souls that the items should have | * '''min_souls''' - Minimum souls that the items should have | ||
* '''max_souls''' - Maximum 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. | * '''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=== | ===Examples=== | ||
| Line 26: | Line 25: | ||
{{#invoke:ItemData/nav|get_item_nav_bulletpoints|Armor|1250|3000}} | {{#invoke:ItemData/nav|get_item_nav_bulletpoints|Armor|1250|3000}} | ||
==get_item_nav_cards== | ==get_item_nav_cards== | ||
Gets a list of items that are each sent to the [[Template:ItemBox]] template, separated by space. | 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 | Filters down to a specific slot/category, and within a range of souls. | ||
===Parameters=== | ===Parameters=== | ||
| Line 53: | Line 47: | ||
==write_item_slot_subgroup== | ==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]] | 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=== | ===Parameters=== | ||
| Line 59: | Line 53: | ||
* '''type''' - The subfunction to call that determines the list formatting style. Options are 'get_item_nav_bulletpoints' or 'get_item_nav_cards' | * '''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. | * '''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=== | ===Examples=== | ||
| Line 74: | Line 67: | ||
Recall that it creates subgroup parameters for the mentioned templates. | Recall that it creates subgroup parameters for the mentioned templates. | ||