Module:ItemData/nav/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m write_item_slot_subgroup initial |
m write_item_slot_subgroup added type parameter |
||
| Line 51: | Line 51: | ||
===Parameters=== | ===Parameters=== | ||
* '''slot''' - Slot/category to create the subgroup for, ie Weapon, Armor, or Tech | * '''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. | * '''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=== | ||
With debug_mode on (for illustration purposes) | With debug_mode on (for illustration purposes) | ||
<code><nowiki>{{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|debug_mode=true}}</nowiki></code> | <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|debug_mode=true}} | {{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_bulletpoints|debug_mode=true}} | ||
With debug_mode off | With debug_mode off | ||
<code><nowiki>{{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon}}</nowiki></code> | <code><nowiki>{{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_bulletpoints}}</nowiki></code> | ||
{{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon}} | {{#invoke:ItemData/nav|write_item_slot_subgroup|Weapon|get_item_nav_bulletpoints}} | ||
Recall that it | Recall that it creates subgroup parameters for the mentioned templates. | ||