<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.trainzsimulator.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AIcon</id>
	<title>Template:Icon - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.trainzsimulator.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AIcon"/>
	<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Template:Icon&amp;action=history"/>
	<updated>2026-11-05T18:28:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=Template:Icon&amp;diff=4981&amp;oldid=prev</id>
		<title>Fabartus: genesis</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Template:Icon&amp;diff=4981&amp;oldid=prev"/>
		<updated>2013-07-09T14:24:58Z</updated>

		<summary type="html">&lt;p&gt;genesis&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td max-width=&amp;quot;{{{max|40px}}}&amp;quot;&amp;gt;[[image:{{{img|{{{1|wikilogo.png}}}}}}|{{{size|40x40px}}}|{{{pos|left}}}|alt=|{{{cap|}}}]]&amp;lt;td&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Doc-page-head}}&lt;br /&gt;
;Purpose&lt;br /&gt;
This template encapsulates an icon sized image in a self-defined independent table defined as below.&lt;br /&gt;
* It is used primarily as a table element in a table breaking out page links where an icon such as surveyor tools buttons is desired.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td max-width=&amp;quot;{{{max|40px}}}&amp;quot;&amp;gt;[[image:{{{img|{{{1|wikilogo.png}}}}}}&lt;br /&gt;
 |{{{size|40x40px}}}|{{{pos|left}}}|alt=|{{{cap|}}}]]&amp;lt;td&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;
which decomposed looks...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td max-width=&amp;quot;{{{max|40px}}}&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:{{{img|{{{1|wikilogo.png}}}}}}&lt;br /&gt;
&lt;br /&gt;
|{{{size|40x40px}}}&lt;br /&gt;
&lt;br /&gt;
|{{{pos|left}}}&lt;br /&gt;
&lt;br /&gt;
|alt=|{{{cap|}}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This means a call with all parameters defined would appear:&lt;br /&gt;
{{tlx|icon|max=a|img=b|size=c|pos=d|cap=d}}&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
... or &amp;#039;&amp;#039;&amp;#039;since &amp;#039;&amp;#039;parserFunctions aren&amp;#039;t currently enabled&amp;#039;&amp;#039;:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{icon|max=a|img=b|size=c|pos=d|cap=d}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
so the parameters can be defined to override the defaults as follows:&lt;br /&gt;
{| cellspacing=1 border=1 cellpadding=3 bgcolor=&amp;quot;white&amp;quot;&lt;br /&gt;
! #&lt;br /&gt;
!width=&amp;quot;10%&amp;quot; |parameter&amp;lt;br/&amp;gt;call&lt;br /&gt;
!&amp;lt;big&amp;gt;Parameter effects description, limits and bounds&amp;lt;/big&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|1 || &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;max= a || where a is a width in pixels setting the maximum width of the bounding table&lt;br /&gt;
|-&lt;br /&gt;
|2 || &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;img= b || where b is a namespace-less image file name in the File {{h|Namespace}}.&lt;br /&gt;
|-&lt;br /&gt;
|3 || &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;size=c || where c is a width in pixels (px), which for icons is normally given as a cross-spec such as &amp;#039;64x64px&amp;#039; or &amp;#039;32x32px&amp;#039;.&lt;br /&gt;
|-&lt;br /&gt;
|4 || &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;cap=d || where d is a caption, which is an extension of the template for other than icon uses. Icons do not get captions.&lt;br /&gt;
|-&lt;br /&gt;
| n/a|| &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;alt= || above may appear to be a parameter, but is an HTML void definition for the normal alt= define in web page rendering under HTML. In effect it is Nullified.&lt;br /&gt;
|}&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
;Caution&lt;br /&gt;
*Since the template is used within wikitables by design, failure to properly close the parentheses may lead to spectacular looking crude.&lt;br /&gt;
&lt;br /&gt;
;Expanding the template onto several lines may be problematic. &lt;br /&gt;
*If you do so, indent each pipe character at least one or two spaces like the below:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{icon&lt;br /&gt;
  |max=50px&lt;br /&gt;
  |img=surveyor-up-tool.jpg&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{selfTdoc}}&lt;br /&gt;
{{UtilTemp}}&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fabartus</name></author>
	</entry>
</feed>