Toggle search
Search
Toggle menu
Toggle personal menu
Editing
Module:Navboxes/doc
From Desynced Wiki
Read
Edit source
View history
Module
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Description == This module is about creating navboxes autopopulated with in game data, with game extra user customization on top of it.<br> For Buildings & Items: The generated table tries to mimic the game data & categories.<br> For Bots: Using custom sorting defined in this script.<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> == Usage == Usage: <code><nowiki>{{#invoke:Navboxes|create|title=<NavboxTitle>|type=<navBoxType>}}</nowiki></code> <br> Where navBoxType is within <code>NavboxType</code> values, see LUA source in this page. As of writing, valid values are: Unit, Building, Component, Item (Case insensitive) === Example === ==== Buildings ==== <code><nowiki>{{#invoke:Navboxes|create|title=Buildings|type=building}}</nowiki></code> {{#invoke:Navboxes|create|title=Buildings|type=building}} ==== Items ==== <code><nowiki>{{#invoke:Navboxes|create|title=Items|type=item}}</nowiki></code> {{#invoke:Navboxes|create|title=Items|type=item}} ==== Bots ==== <code><nowiki>{{#invoke:Navboxes|create|title=Bots|type=bot}}</nowiki></code> {{#invoke:Navboxes|create|title=Bots|type=bot}} ==== Components ==== <code><nowiki>{{#invoke:Navboxes|create|title=Components|type=component}}</nowiki></code> {{#invoke:Navboxes|create|title=Components|type=component}}
Summary:
Please note that all contributions to Desynced Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Desynced Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:NavTable
(
edit
)
Template:NavTableCategory
(
edit
)
Template:NavboxIconLinkNamed
(
edit
)
Module:Navboxes
(
edit
)