Module:Track gauge/data/doc: Difference between revisions

Content deleted Content added
Line 20:
},
</pre>
;Overall structure
A module:Track gauge/data page has the following structure:
<pre>
return
{
{
["id"] = "1000",
["aliases"] = {[[1000mm]], [[1m]]},
["def1"] = "met",
-- ...,
["den"] = "8"
},
{
["id"] = "1067",
["aliases"] = {[[1067mm]]},
["def1"] = "met",
-- ...,
["in"] = "6"
}
}
</pre>
:Note: the last data of an entry ("den" and "in" examples) do ''not'' have a comma.
:Note: the last entry ("{id=1067, ...}" example) does ''not'' have a final comma after its closing "}"
 
==About aliases and identifiers==