Module:Navboxes/doc: Difference between revisions

From Desynced Wiki
No edit summary
No edit summary
Line 5: Line 5:
For Units: Using custom sorting defined in this script.<br>
For Units: Using custom sorting defined in this script.<br>
For Components: ?<br>
For Components: ?<br>
Tech is not covered by this module.<br>


Extra "fake" categories or forced categorisation can be done by registering objects with the [[Template:NavCategory]] on the specific pages.<br>
Extra "fake" categories or forced categorisation can be done by registering objects with the [[Template:NavCategory]] on the specific pages.<br>

Revision as of 06:21, 13 August 2025

Description

This module is about creating navboxes autopopulated with in game data, with game extra user customization on top of it.
For Buildings & Items: The generated table tries to mimic the game data & categories.
For Units: Using custom sorting defined in this script.
For Components: ?
Tech is not covered by this module.

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 source in this page. As of writing, valid values are: Unit, Building, Component, Item (Case insensitive)

Example

Buildings

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

Items

{{#invoke:Navboxes|create|title=Items|type=item}}

Bots

{{#invoke:Navboxes|create|title=Bots|type=bot}}

Components

{{#invoke:Navboxes|create|title=Components|type=component}}