Template:Track gauge/doc

This template accepts a pre-defined track gauge and returns that track gauge formatted, plus the converted size:
 * &rarr;
 * &rarr;

Extra options are available:
 * &rarr;

Input options
The first parameter specifies the gauge: Rail track gauges can be entered as they are defined: in units mm or ft in. Also common accepted names can be used, see below.

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 ( equals  and  ).


 * When an input value is not recognised by the template (see last two table examples), the template simply returns the input as it is: &rarr;
 * 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: 1m is recognised. However, it is not available for all metric defined gauges. Using mm is a safer bet.

Parameters

 * Names can be universal, being defined worldwide. For example: Iberian gauge, . Other names can be localor culturally restricted, for example the name "Cape gauge" is used in South Africa for, 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.

Background
There are two maintenance categories under Category:Wikipedia track gauge categories that can help in maintenance of the template.
 * Category:Articles using template 'Track gauge' with unrecognized input: input to be checked. No error message on the page, but it needs attention.
 * Category:Pages with no gauge entered in Infobox rail line: template Infobox rail line is used, but parameter gauge is empty.

Sometimes an input parameter is not recognised by the template (that is: it is not defined in the internal data list). The article page with this is added to the maintenance category (named Category:Articles using template 'Track gauge' with unrecognized input). Interested editors will check that category, and can edit that article page (for a spelling error), or propose to add that track gauge to the template.

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" },		"wrap": { "label": "Allow wrapping", "description": "Deprecated. Is default behaviour", "type": "string" }	} }