(→Usage) |
No edit summary |
||
Line 13: | Line 13: | ||
=== Example === | === Example === | ||
==== | ==== Buildings ==== | ||
The following call: <br> | The following call: <br> | ||
<code><nowiki>{{#invoke:Navboxes|create|title=Buildings|type=building}}</nowiki></code> | <code><nowiki>{{#invoke:Navboxes|create|title=Buildings|type=building}}</nowiki></code> | ||
Line 21: | Line 21: | ||
{{#invoke:Navboxes|create|title=Buildings|type=building}} | {{#invoke:Navboxes|create|title=Buildings|type=building}} | ||
==== | ==== Items ==== | ||
{{#invoke:Navboxes|create|title=Items|type=item}} | {{#invoke:Navboxes|create|title=Items|type=item}} | ||
==== | ==== Bots ==== | ||
{{#invoke:Navboxes|create|title=Units|type= | {{#invoke:Navboxes|create|title=Units|type=bot}} | ||
==== | ==== Components ==== | ||
{{#invoke:Navboxes|create|title=Components|type= | {{#invoke:Navboxes|create|title=Components|type=component}} |
Revision as of 03:15, 13 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 source in this page. As of writing, valid values are: Unit, Building, Component, Item (Case insensitive)
Example
Buildings
The following call:
{{#invoke:Navboxes|create|title=Buildings|type=building}}
Results in:
Small Building | |
Medium Building | |
Large Building | |
Special Building | |
Other Construction | |
Human Building | |
Alien Building | |
Special |
Items
Resource | |
Simple Material | |
Advanced Material | |
Hi-Tech Material | |
Packaged Unit | |
Research Data |
Bots
Robot | |
Human | |
Drone | |
Alien | |
Special | |
Bugs |
Components
Integrated Component | |
Internal Component | |
Small Component | |
Medium Component | |
Large Component |