Template:Track gauge/doc
This is a documentation subpage for Template:Track gauge. It contains usage information, categories and other content that is not part of the original template page. |
30px | Uses Lua: {{safesubst:#invoke:list|bulleted}} |
This template accepts a track gauge and returns that defined track gauge well formatted, plus the converted size value by another unit:
-
{{Track gauge|1520 mm}}
→ {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }}
-
{{Track gauge|4 ft}}
→ {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }}
Extra options are available:
-
{{Track gauge|1520 mm|al=on|lk=on}}
→ {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }}
Contents
Input options
The first parameter specifies the gauge:
- Template:Code → {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }}
- Template:Code → {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }}
- Template:Code → {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }}
- Template:Code → {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }}
- Template:Code → {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }} Rail track gauges can be entered as they are defined: in units Template:Xt or Template:Xt. Also common accepted names can be used, see below.
The input value (a length, in metric or imperial units) must be a defined track gauge. Currently 137 gauges are defined by metric units, and 136 by imperial units. Some are defined in both unit sytems, in both, such as the standard gauge.
- When an input value is not recognised by the template, the template simply returns the input as it is: {{Track gauge|25in}} → {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check
|template= Template:Track gauge
|all=
|opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink=
|cat= Articles using template 'Track gauge' with unrecognized input
|format= 0
|errNS= 0
}}
- The page with this unknown input is also listed in a maintenance category, in the background, that signals interested editors that there is a new rail gauge used in Wikipedia. More on this below.
- Some gauges in metric are defined in metres: Template:Xt is recognised. However, it is not available for all metric defined gauges. Using Template:Code is a safer bet.
List of defined track gauges
Template:Track gauge/doc/input options
Formatting input
When entering a track gauge (like {{Track gauge|1435mm}}
, these are formatting options. Keep in mind that only defined gauges are recognised.
Spacing is free, and fractions can be used in imperial units. Primes ('
and "
) may be used for [foot, inch]. Any [foot, inch] size can be entered in all-inches (4 ft 8 1/2 in
equals 56 1/2 in
and 56.5 in
).
Parameter input |
Result | Note | ||||||
---|---|---|---|---|---|---|---|---|
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || standard gauge |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || standard gauge, by name |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || standard gauge, this way puts imperial units first |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || standard gauge, this way puts imperial units first |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || standard gauge, by all-inches |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || standard gauge, using primes |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || standard gauge, using slash for fraction |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || Template:Xt is recognised, but not many more in Template:Code. Better use Template:Code |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || HO scale model railway |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || Miniature railway |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || Brunel |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || Not recognised (so no converted value). This track gauge, Brunel's, is not defined in mm. |
Template:Code | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || Input not recognised (so no converted value); output copies the input. |
Parameters
{{Track gauge | | lk=on | first=imp, met | disp= s, /, 1, br, [], <any literal text> | al=on | allk=on | nowrap=off (default), on, all | addcat=no | unitlink=on }}
Parameter | What it does | Example (code) | Example (output) | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lk=on | Links the defining measure (first measure) "defined size" depends on input |
{{Track gauge|3ft6in|lk=on}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} |
check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} | |
al=on | Adds the alternate name after the gauge measurement values | {{Track gauge|sg|al=on}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} | ||||||||
allk=on | Adds a wikilink to the alternate name where applicable | {{Track gauge|sg|allk=on}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} | ||||||||
first=imp first=met |
Puts the requested measure first (metric, imperial) | {{Track gauge|1000mm|first=imp}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} | ||||||||
disp=any text | The text will be written between the measurements, two spaces added. Brackets are omitted. Text must be 2 characters or more. (codes for |disp= are processed as described: 1, s, /, br).
|
{{Track gauge|sg|disp=also defined as being}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} | ||||||||
disp=s or / | Uses a slash as a separator rather than parentheses | {{Track gauge|sg|disp=s}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} | ||||||||
disp=[] | Uses a square brackets rather than parentheses | {{Track gauge|sg|disp=[]}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} | ||||||||
disp=1 | Only shows the first measure (may be used when repeated on a page or in conjunction with first= to display the output only)
|
{{Track gauge|sg|disp=1}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} | ||||||||
disp=br | Forces a line break after the first size (and also before any gauge name) | {{Track gauge|sg|disp=br}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} | ||||||||
nowrap=off (default), on, all | Sets possible line break (line wrap): after between the measurements (off=defalt), not (on, all), or not at all when named gauge is present. (note: until May 2014, default behaviour was no break between the measurements. This has changed.) | {{Track gauge|sg|nowrap=on}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} | ||||||||
addcat=no | Will not add a maintenance category | {{Track gauge|sg|addcat=no}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} | ||||||||
unitlink=on | Adds wikilinks to the measurement unit labels | {{Track gauge|sg|unitlink=on}}
|
{{#invoke:Track gauge|main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} |
- Names can be universal, being defined worldwide. For example: Iberian gauge, {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }}. Other names can be localor culturally restricted, for example the name "Cape gauge" is used in South Africa for {{#invoke:Track gauge|main}}{{#invoke:TemplatePar |check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }}, but not in Japan (in Japan that same track gaugfe is not named).
- Also, two sizes can lead to one gauge name.
Named gauges
Established gauge names can be entered. The word "gauge" can be omitted. Case-insensitive (A=a). See also the |al=
, |allk=
parameters (below), to show a gauge name in the outcome.
Input | Result | Note | ||||||
---|---|---|---|---|---|---|---|---|
{{Track gauge|Baltimore gauge}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} |
{{Track gauge|Baltimore}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || Omitting " gauge", same effect |
{{Track gauge|baltimore}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || Case-insensitive (A=a) |
{{Track gauge|baltimore|al=on}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|baltimore|allk=on}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|baltimore|lk=on|al=on}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Baltimore streetcar gauge}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || This one has more names |
{{Track gauge|Bosnian}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Brunel}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Cape}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Iberian}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Indian}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Victorian}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Irish}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|metre}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Ohio}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Pennsylvania}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Pennsylvania trolley}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Russian}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Scotch}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|standard gauge}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || Also: "sg", "metsg" (metric units first) |
{{Track gauge|US sg}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || Also: "imp sg", "UK sg", "NA sg" (imperial units first) |
{{Track gauge|Swedish three foot}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Swedish}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
{{Track gauge|Toronto}} | main}}{{#invoke:TemplatePar | check | template= Template:Track gauge | all= | opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= | cat= Articles using template 'Track gauge' with unrecognized input | format= 0 | errNS= 0
}} || |
English variant (ENGVAR)
For articles written in US-English, it is possible to set parameter |engvar=en-US
. In this situation, the US-English spelling is shown (metER):
- {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }}
Why not use {{Convert}}?
To convert a track gauge, using {{Convert}} comes to mind. For example, standard gauge:
- {{Convert|1435|mm|ftin|abbr=on}} → 1,435 mm (Template:Convert/ftin)
- However, this has some disadvantages. First of all, track gauges are defined by an institute, not just measured. The list of defined track gauges is limited, and oversee-ablle (today: some 260 sizes, by mm, are defined).
- Using {{Track gauge}} allows us to track (follow) all articles with a specific gauge (see the options-list on this page, and Category:Articles that mention a specific track gauge).
- Also, the track definition can be directly linked to the sourcing article: {{#invoke:Track gauge|main}}{{#invoke:TemplatePar
|check |template= Template:Track gauge |all= |opt= 1= lk= al= allk= disp= engvar= first= nowrap= addcat= unitlink= |cat= Articles using template 'Track gauge' with unrecognized input |format= 0 |errNS= 0 }}.
- Further more, the template allows to recognise named gauges such as "Russian gauge".
Tracking category
- {{Track gauge}} detects that an undefined gauge is entered, and signal for maintenance. For example, metre gauge is only defined in metric. Entering an imperial size would categorise that article in Category:Articles using template 'Track gauge' with unrecognized input (0).
TemplateData
TemplateData |
---|
This is the TemplateData documentation for this template used by VisualEditor and other tools.
See the monthly error report for this template. TemplateData for Track gauge <templatedata> { "description": "The template formats a track gauge size into standard notation and adds the conversion into the imperial/metric (other) size", "params": { "1": { "label": "Track gauge definition", "description": "Defined track gauge, in mm or ft in. Also can accept: ' , m, gauge name", "type": "string", "required": true }, "lk": { "label": "Link top measurement units", "description": "=on: adds link to the gauge defining article", "type": "string" }, "al": { "label": "Alternative name", "description": "=on: Add gauge name (if existing)", "type": "string" }, "allk": { "label": "Alternative name, linked", "description": "=on: Add gauge name (if existing) and link to its wiki page", "type": "string" }, "disp": { "label": "Display converted gauge", "description": "Separator for the converted value: 1=none (first value only); =s, /: slash separator; =Any text (2 or more characters): Any literal text written between the two values.", "type": "string", "default": "(...) brackets" }, "first": { "label": "Which unit to mention first", "description": "=met: metric first; =imp: imperial first (default: input unit)", "type": "string", "default": "By input" }, "nowrap": { "label": "Allow line wrapping of text", "description": "wrap=off, on, all: allows lin breaking between the two measurements. Default: on. 'all' disallows linebreaking wiothing an alternative name", "type": "string", "default": "off" }, "addcat": { "label": "Categorize page", "description": "=no: do not categorize", "type": "string", "default": "yes" } } } </templatedata> |
See also
Template:Navbox track gauge categories
- Sources
External links
- Sources
- Light Rail Transit Association (LRTA)
- Morrisson, Allen (2013). "Electric transport in latin america". http://www.tramz.com/tg.html. Latin America is very well covered
- "A world of trams and urban transit". Light Rail Transit Association (LRTA)). http://www.lrta.org/world/worldind.html. UK based, covering most countries
- Scaled rail models
- "S-3.1 Trackwork, Proto & Fine Scales". NMRA. 2004. http://www.nmra.org/standards/sandrp/S-3_1ProtoTrackwork.html.
- "S-3.2 Trackwork Standard Scales (metric)". NMRA. 2010. http://www.nmra.org/standards/sandrp/pdf/S-3.2%202010.02.24.pdf.