<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.railos.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ARail_icon%2Fdoc</id>
	<title>Template:Rail icon/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.railos.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ARail_icon%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.railos.org/index.php?title=Template:Rail_icon/doc&amp;action=history"/>
	<updated>2026-04-06T03:48:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.railos.org/index.php?title=Template:Rail_icon/doc&amp;diff=5220&amp;oldid=prev</id>
		<title>Krizar: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.railos.org/index.php?title=Template:Rail_icon/doc&amp;diff=5220&amp;oldid=prev"/>
		<updated>2026-01-04T15:44:07Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:44, 4 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Krizar</name></author>
	</entry>
	<entry>
		<id>https://wiki.railos.org/index.php?title=Template:Rail_icon/doc&amp;diff=5219&amp;oldid=prev</id>
		<title>railos&gt;Useddenim: /* See also */ new section</title>
		<link rel="alternate" type="text/html" href="https://wiki.railos.org/index.php?title=Template:Rail_icon/doc&amp;diff=5219&amp;oldid=prev"/>
		<updated>2022-09-16T04:41:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See also: &lt;/span&gt; new section&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
{{Sidebar Adjacent stations}}&lt;br /&gt;
{{Template shortcut|ric}}&lt;br /&gt;
{{Lua|Module:Adjacent stations}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Template:Rail icon&amp;#039;&amp;#039;&amp;#039; returns an icon, an image or another preset value, from a subpage of {{tl|Adjacent stations}}.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;Module:Adjacent stations/&amp;lt;var&amp;gt;system&amp;lt;/var&amp;gt;&amp;lt;/code&amp;gt; must exist for this template to work.&lt;br /&gt;
* {{tlx|Rail icon|&amp;lt;var&amp;gt;system&amp;lt;/var&amp;gt;}}&lt;br /&gt;
* {{tlx|Rail icon|&amp;lt;var&amp;gt;system&amp;lt;/var&amp;gt;|&amp;lt;var&amp;gt;line&amp;lt;/var&amp;gt;}}&lt;br /&gt;
* {{tlx|Rail icon|&amp;lt;var&amp;gt;system&amp;lt;/var&amp;gt;|&amp;lt;var&amp;gt;line&amp;lt;/var&amp;gt;|&amp;lt;var&amp;gt;branch&amp;lt;/var&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
=== Variables ===&lt;br /&gt;
* &amp;lt;var&amp;gt;system&amp;lt;/var&amp;gt; is the name of the system or an abbreviation.&lt;br /&gt;
* &amp;lt;var&amp;gt;line&amp;lt;/var&amp;gt; is the line name, if any.&lt;br /&gt;
* &amp;lt;var&amp;gt;branch&amp;lt;/var&amp;gt; is the name of the branch or service, if any.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
Optional parameters:&lt;br /&gt;
* {{para|size}} – image size, expressed as width (&amp;lt;code&amp;gt;15px&amp;lt;/code&amp;gt;), height (&amp;lt;code&amp;gt;x15px&amp;lt;/code&amp;gt;) or both if necessary (&amp;lt;code&amp;gt;15x15px&amp;lt;/code&amp;gt;).&lt;br /&gt;
* {{para|link}} – image link (full page name)&lt;br /&gt;
* {{para|alt}} – [[alt text]]&lt;br /&gt;
* {{para|bold}} – setting for some types of text-based icon; default is &amp;quot;yes&amp;quot; for all of those types&lt;br /&gt;
* {{para|name|y}} – setting to any value will add the system or line name.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Using [[Module:Adjacent stations/MTR]]:&lt;br /&gt;
* {{tlx|Rail icon|MTR|_show_result=y}}&lt;br /&gt;
* {{tlx|Rail icon|MTR|name{{=}}y|_show_result=y}}&lt;br /&gt;
* {{tlx|Rail icon|MTR|Island|_show_result=y}}&lt;br /&gt;
* {{tlx|Rail icon|MTR|Island|name{{=}}y|_show_result=y}}&lt;br /&gt;
* {{tlx|Rail icon|MTR|ISL|_show_result=y}} (using the &amp;quot;isl&amp;quot; alias)&lt;br /&gt;
&lt;br /&gt;
If there are two or more images by default, then the image-applicable values will be set for all of them.&lt;br /&gt;
&lt;br /&gt;
== Addition of values in module subpages ==&lt;br /&gt;
&lt;br /&gt;
(For simplicity, {{tl|Rail color box}} is used here to refer to the p._box function in [[Module:Adjacent stations]].)&lt;br /&gt;
&lt;br /&gt;
Each module subpage sends a Lua table to [[Module:Adjacent stations]]. The outermost table (often the table called &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt;, or otherwise the table after &amp;lt;code&amp;gt;return&amp;lt;/code&amp;gt;. Lua tables (&amp;lt;code&amp;gt;{ &amp;lt;var&amp;gt;...&amp;lt;/var&amp;gt; }&amp;lt;/code&amp;gt;) contain &amp;#039;&amp;#039;keys&amp;#039;&amp;#039; and &amp;#039;&amp;#039;values&amp;#039;&amp;#039;, which can be in the format &amp;lt;code&amp;gt;[&amp;quot;&amp;lt;var&amp;gt;key&amp;lt;/var&amp;gt;&amp;quot;] = &amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;&amp;lt;/code&amp;gt;. Values can be strings/characters (&amp;lt;code&amp;gt;&amp;quot;&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;&amp;quot;&amp;lt;/code&amp;gt;, tables, or other values. Key–value pairs are separated by commas.&lt;br /&gt;
&lt;br /&gt;
In the main (outermost) table, either or both of the keys &amp;quot;icon format&amp;quot; and &amp;quot;icon&amp;quot; can be used to specify an icon (i.e. as an entry in the table like &amp;lt;code&amp;gt;[&amp;quot;icon&amp;quot;] = &amp;quot;&amp;lt;var&amp;gt;value&amp;lt;/var&amp;gt;&amp;quot;&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
The value for &amp;quot;icon&amp;quot; is the standard file syntax for an inline image; there should be alt text, a page link and a size value; see [[Wikipedia:Extended image syntax]].&lt;br /&gt;
&lt;br /&gt;
If there is a value for the &amp;quot;icon format&amp;quot; key and it is not &amp;quot;image&amp;quot;, then {{tl|Rail color box}} is used, with the display style being the value of &amp;quot;icon format&amp;quot;; all inputs except &amp;quot;alt&amp;quot; and &amp;quot;size&amp;quot; are passed through appropriately. (Note that {{tl|Rail color box}} does not currently work without a line name.)&lt;br /&gt;
&lt;br /&gt;
Lines are added as tables with named keys inside the &amp;quot;lines&amp;quot; table, which is inside the main table (i.e. &amp;lt;code&amp;gt;... [&amp;quot;lines&amp;quot;] = {[&amp;quot;&amp;lt;var&amp;gt;line name&amp;lt;/var&amp;gt;&amp;quot;] = { &amp;lt;var&amp;gt;... line table ...&amp;lt;/var&amp;gt; } } ...&amp;lt;/code&amp;gt;). Entries for &amp;quot;icon format&amp;quot; and &amp;quot;icon&amp;quot; work similarly inside these tables. If many lines have the same icon format, then a &amp;quot;line icon format&amp;quot; value can be added to the main table.&lt;br /&gt;
&lt;br /&gt;
Types are added as tables inside their line tables (each type is a variation of a line). Entries for &amp;quot;icon format&amp;quot; and &amp;quot;icon&amp;quot; work similarly inside these tables. If many types have the same icon format, then a &amp;quot;type icon format&amp;quot; value can be added to the main table.&lt;br /&gt;
&lt;br /&gt;
Lines and types can have aliases; these are all listed in the table with the key &amp;quot;aliases&amp;quot; inside the main table. The keys in that table should be lowercase, and the values should refer to the key of a branch or line table (e.g. &amp;lt;code&amp;gt;... [&amp;quot;aliases&amp;quot;] = {[&amp;quot;r&amp;quot;] = &amp;quot;Red&amp;quot;, [&amp;quot;b&amp;quot;] = &amp;quot;Blue&amp;quot;} ...&amp;lt;/code&amp;gt;, where both &amp;quot;Red&amp;quot; and &amp;quot;Blue&amp;quot; are valid line or type names).&lt;br /&gt;
&lt;br /&gt;
If {{tl|Rail color box}} is used, then the key &amp;quot;color&amp;quot; and any of the keys &amp;quot;line title&amp;quot;, &amp;quot;branch title&amp;quot;, &amp;quot;short name&amp;quot; and &amp;quot;text color&amp;quot; should be present in the applicable table.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
*{{tl|Rail-interchange}} (abbreviated {{tl|rint}}) for a similar template that has icons for many more systems.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Internal article-link templates]]&lt;br /&gt;
[[Category:Rail transport templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>railos&gt;Useddenim</name></author>
	</entry>
</feed>