<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3ATrack_gauge%2Fautodocument%2Fdoc</id>
	<title>Module:Track gauge/autodocument/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3ATrack_gauge%2Fautodocument%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Track_gauge/autodocument/doc&amp;action=history"/>
	<updated>2026-04-21T22:34:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:Track_gauge/autodocument/doc&amp;diff=19442724&amp;oldid=prev</id>
		<title>imported&gt;Pppery: Cleanup</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Track_gauge/autodocument/doc&amp;diff=19442724&amp;oldid=prev"/>
		<updated>2024-02-19T01:15:27Z</updated>

		<summary type="html">&lt;p&gt;Cleanup&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!--{{module rating|&amp;lt;!-- Insert rating or delete if not needed. Values: &amp;quot;pre-alpha&amp;quot;, &amp;quot;alpha&amp;quot;, &amp;quot;beta&amp;quot;, &amp;quot;release&amp;quot; or &amp;quot;protected&amp;quot;. -xx-&amp;gt;}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{#invoke:Track gauge/autodocument/sandbox|documentGauge|docfrom=900|docto=950|docstate={{{state|uncollapsed}}}|docstats=on|docnote=DOCNOTE}}--&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
{{Lua|Module:Track gauge|Module:Track gauge/data|Module:Math|Module:Arguments|Module:tableTools}}&lt;br /&gt;
{{Uses TemplateStyles|Template:Fraction/styles.css}}&lt;br /&gt;
This module documents the [[module:Track gauge/data|Track gauge/data]] data page of {{tl|Track gauge}}. Its main product is [[:Template:Track gauge/doc/input options]].&lt;br /&gt;
&lt;br /&gt;
==Gauges==&lt;br /&gt;
&amp;lt;code&amp;gt;documentGauge&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Can list in complete tableform one, multiple or all gauges listed in the /data page.&lt;br /&gt;
Gauges defined in both metric and imperial are grouped into one row.&lt;br /&gt;
&lt;br /&gt;
Per gauge size a link to the category:Articles that mentions this gauge ... is added.&lt;br /&gt;
&lt;br /&gt;
==#invoke functions==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
checkData&lt;br /&gt;
documentGauge&lt;br /&gt;
catContent&lt;br /&gt;
catMentions&lt;br /&gt;
createCatMentions&lt;br /&gt;
documentGaugeSizeFromTitle&lt;br /&gt;
catSortFromTitle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
|1= alias&lt;br /&gt;
|1&amp;lt;!--???--&amp;gt;= (datafile for checkData)&lt;br /&gt;
|n=all (list)&lt;br /&gt;
|docfrom=&lt;br /&gt;
|docto=&lt;br /&gt;
|doctitle=&lt;br /&gt;
|docstate=&lt;br /&gt;
|docstats=&lt;br /&gt;
|displaynotfound=&lt;br /&gt;
|docsortlabel=&lt;br /&gt;
|docreturnargs=&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Parser limits (expensive functions)==&lt;br /&gt;
Module:Track gauge/autodocument uses &amp;#039;&amp;#039;expensive function&amp;#039;&amp;#039; calls (especially the &amp;lt;code&amp;gt;documentGauge&amp;lt;/code&amp;gt; listing). The wiki parser only allows 500 such calls in one page. As of July 2014, this number is almost reached in (~475 in [[Template:Track gauge/doc/input options]]). When, after adding new entries to /data or /extra, the number is reached, a &amp;quot;Script error&amp;quot; will show.&lt;br /&gt;
&lt;br /&gt;
Best practice is to prevent this error: adding content category name to the /data, even if they have default name pattern or do not exist:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
 [&amp;quot;contentcat&amp;quot;] = &amp;quot;5 ft 3 in gauge railways&amp;quot;,&lt;br /&gt;
 -- or&lt;br /&gt;
 [&amp;quot;contentcat&amp;quot;] = &amp;quot;&amp;quot;,&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This way, these category pages are not checked for existence.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{tlt|Track gauge}}&lt;br /&gt;
* [[module:Track gauge]]&lt;br /&gt;
* [[module:Track gauge/data]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Pppery</name></author>
	</entry>
</feed>