Jump to content

Module:Track gauge/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 18:39, 31 July 2013 (add info about the checkData function). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This module implements the {{RailGauge}} template. Please see the template page for documentation on how to use the main RailGauge function.

Gauge data

The gauge information is stored at Module:RailGauge/data; to add new gauges, see the instructions there. This module includes a function that checks the data page for errors. It is used with the following code:

{{#invoke:RailGauge|checkData|name of data page}}

The first positional parameter is the name of the data page that you want to be checked. If this is omitted, the module checks Module:RailGauge/data.