Module:Vehicles/doc

From Dune: Awakening Community Wiki
Jump to navigation Jump to search

This is the documentation page for Module:Vehicles

Module:Vehicles

Retrieves a vehicle's data from Module:Vehicles/data and renders it using Template:VehicleInfobox.

Usage

Render infobox for current vehicle page

On a vehicle page, where the page title matches a vehicle key in the dataset:

{{#invoke:Vehicles|get|{{PAGENAME}}}}

Render infobox for a specific vehicle

A specific vehicle key can also be provided manually:

{{#invoke:Vehicles|get|Sandbike}}

Render infobox without adding categories

An optional parameter can be used to prevent the infobox from adding the page to categories:

{{#invoke:Vehicles|get|Sandbike|omit=yes}}

Parameters

1
The vehicle key used in Module:Vehicles/data.
omit (optional)
If set to true, yes, or 1, the module will pass omit_categories=yes to Template:VehicleInfobox.

Notes

  • If a vehicle key is not found in the dataset, a placeholder infobox is rendered using default values.