Module:Track gauge/doc: Difference between revisions

Content deleted Content added
test the page
No edit summary
 
(19 intermediate revisions by 6 users not shown)
Line 1:
{{Module rating|protected}}
This module implements the {{tl|RailGauge}} template. Please see the template page for documentation on how to use the main RailGauge function.
{{High-use}}
{{lua|Module:Track gauge/data|Module:If preview}}
{{Uses TemplateStyles|Template:Fraction/styles.css}}
 
This module implements the {{tl|RailGaugeTrack gauge}} template. Please see the template page for documentation on how to use the main RailGaugeTrackGauge function.
 
=== Gauge data ===
The gauge information is stored at [[Module:RailGaugeTrack gauge/data]]; to add new gauges, see the instructions there.

==== Data checks ====
This module includes a function that checks the data page for errors. It is used with the following code:
 
{{pre|<nowiki>{{#invoke:RailGaugeTrack gauge/autodocument|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:RailGaugeTrack gauge/data]].
 
== Tracking category ==
* {{clc|Articles using Template:Track gauge with unrecognized input}}
 
==Module set==
{{pre|<nowiki>{{#invoke:RailGauge|checkData|</nowiki>''name of data page''<nowiki>}}</nowiki>}}
* [[:Module:Track gauge]]
* [[:Module:Track gauge/data]]
* [[:Module:Track gauge/autodocument]] (track gauges list)
 
<includeonly>{{Sandbox other||
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]].
[[Category:Modules that add a tracking category]]
;Test current data page:
[[Category:Rail modules]]
:{{#invoke:RailGauge|checkData}}
}}</includeonly>