Content deleted Content added
Undid revision 1194215761 by SleepTrain456 (talk) |
|||
(21 intermediate revisions by 5 users not shown) | |||
Line 1:
{{High-use}}
[[Module:Track gauge/data]] holds the data for [[Module:Track gauge]] and template {{tlt|Track gauge}}. It contains some 250 track gauge definitions (widths), often by different units (defined metric and/or imperial).
==Entry data structure==
A single entry is a subtable (
<pre>
{
["full-id"] = "1435-met", -- Gauge-id including unit
["id"] = "1000", -- Gauge identification in mm.
["aliases"] = {[[1000mm]], [[1m]]}, -- Aliases for the gauge (input options; input spaces, commas and capitals are re-formatted by the module).
["def1"] = "met", -- The defining measurement, either "met" (metric) or "imp" (imperial).
["name"] = "metre gauge", -- Name for the gauge (alternative).
["link"] = "[[
["pagename"] = "standard gauge", -- Link to sourcing Wikipedia article.
["contentcat"] = "Iberian gauge railways" -- Non-default category name (don't add 'Category:').
Line 22:
},
</pre>
==About aliases and identifiers==
Line 53 ⟶ 30:
The "id", "aliases", and "def1" fields are required. Also, some size in metric and in imperial must be present. That is: at least one metric size field (mm or m) and one imperial size field (ft, inch, or num+den) must exist. All other fields are optional.
:'''id''': An id stands for the physical size, a length. It can be reused in multiple entries
:'''alias''' (input option): An
==
* Data "history" = {date begin, date end} -- to denote the era of existance
* Data "unique" = "yes" -- to denote single network
::See {{track gauge |14 1/4 in|lk=on}}
==See also==
|