Module:Navboxes/doc: Difference between revisions

From Desynced Wiki
No edit summary
Line 13: Line 13:
=== Example ===
=== Example ===


<code><nowiki>{{#invoke:Navboxes|create|title=Buildings|type=building}}</nowiki></code> results in:
The following call: <br>
 
<code><nowiki>{{#invoke:Navboxes|create|title=Buildings|type=building}}</nowiki></code>  
<br>
<br>
results in:
{{#invoke:Navboxes|create|title=Buildings|type=building}}
{{#invoke:Navboxes|create|title=Buildings|type=building}}

Revision as of 02:31, 6 August 2025

Description

This module is about creating navboxes autopopulated with in game data, with game extra user customization on top of it.
The generated table tries to mimic the game data & categories.
Extra "fake" categories or forced categorisation can be done by registering objects with the Template:NavCategory on the specific pages.

Usage

Usage: {{#invoke:Navboxes|create|title=<NavboxTitle>|type=<navBoxType>}}
Where navBoxType is within NavboxType values, see LUA code. As of writing, valid values are: Unit, Building, Component, Item (Case insensitive)

Example

The following call:
{{#invoke:Navboxes|create|title=Buildings|type=building}}

results in: