Module:Track gauge/doc: Difference between revisions

Content deleted Content added
create
 
add info about the checkData function
Line 1:
This module implements the {{tl|RailGauge}} template. Please see the template page for documentation. Theon gaugehow informationto isuse storedthe atmain [[Module:RailGauge/data]]; please see the instructions there to add new gaugesfunction.
 
=== 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:
 
{{pre|<nowiki>{{#invoke:RailGauge|checkData|</nowiki>''name of data page''<nowiki>}}</nowiki>}}
 
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]].