<?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%3AXpd%2Fdoc</id>
	<title>Template:Xpd/doc - 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%3AXpd%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Template:Xpd/doc&amp;action=history"/>
	<updated>2026-11-05T16:25:13Z</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:Xpd/doc&amp;diff=4731&amp;oldid=prev</id>
		<title>Fabartus: port w/templates as interwikis from MediaWiki+cat w/{{Mediawiki} -- needs parserfunctions to turn on</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Template:Xpd/doc&amp;diff=4731&amp;oldid=prev"/>
		<updated>2013-07-03T14:55:50Z</updated>

		<summary type="html">&lt;p&gt;port w/templates as interwikis from MediaWiki+cat w/{{Mediawiki} -- needs parserfunctions to turn on&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:55, 3 July 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l87&quot;&gt;Line 87:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 87:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[Template:Xpds]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[Template:Xpds]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[Template:Xpdp]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*[[Template:Xpdp]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[m:&lt;/del&gt;Template:Xpd/doc&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{meta|&lt;/ins&gt;Template:Xpd/doc&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Xpd/doc}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{mediawiki}}{{FAB-todo|Leave with redlinks for now. No M:, MW: interwiki&amp;#039;s at the least, and these templates may be cleared up later.}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{mediawiki}}{{FAB-todo|Leave with redlinks for now. No M:, MW: interwiki&amp;#039;s at the least, and these templates may be cleared up later.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fabartus</name></author>
	</entry>
	<entry>
		<id>https://wiki.trainzsimulator.com/index.php?title=Template:Xpd/doc&amp;diff=4711&amp;oldid=prev</id>
		<title>Fabartus: genesis, port unchanged from WikiMedia+cat w/{{Mediawiki} -- needs ParserFunctions to turn on</title>
		<link rel="alternate" type="text/html" href="https://wiki.trainzsimulator.com/index.php?title=Template:Xpd/doc&amp;diff=4711&amp;oldid=prev"/>
		<updated>2013-07-03T12:29:14Z</updated>

		<summary type="html">&lt;p&gt;genesis, port unchanged from WikiMedia+cat w/{{Mediawiki} -- needs ParserFunctions to turn on&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;div class=&amp;quot;messagebox&amp;quot; id=&amp;quot;template_doc_page_viewed_directly&amp;quot; style=&amp;quot;text-align: center&amp;quot;&amp;gt;&lt;br /&gt;
This subpage contains [[w:Wikipedia:Template documentation|documentation]], [[Wikipedia:Categories|categories]] and other content that is not part of the template.&amp;lt;br /&amp;gt;&amp;lt;span style=&amp;quot;font-size:0.9em;&amp;quot;&amp;gt;To view the {{lc:{{NAMESPACE}}}} page itself, see [[Template:Xpd]].&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
{{DEFAULTSORT:{{PAGENAME}}}}{{#if:{{{inhibit|}}}|&amp;lt;!-- skip --&amp;gt;|[[Category:Documentation subpages]]}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
     PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This {{til|xpd}} (expansion demo) shows the call of a variable, parser function or template and its result, for documentation.&lt;br /&gt;
&lt;br /&gt;
;Usage&amp;amp;#58;&lt;br /&gt;
:{{Tlx|xpd|left side|&amp;lt;/tt&amp;gt;up to 3 additional parameters}}&lt;br /&gt;
&lt;br /&gt;
Please note that for [[m:Help:Parser function|parser functions]] the first parameter belongs to the left side before &amp;quot;|&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Examples without additional parameters:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{Tlx|xpd|tc}} || {{xpd|tc}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpd|CURRENTDAY}} || {{xpd|CURRENTDAY}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpd|#expr:2*3}} || {{xpd|#expr:2*3}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpd|&amp;lt;nowiki&amp;gt;1=#expr:2+2=5&amp;lt;/nowiki&amp;gt;}} || {{xpd|1=#expr:2+2=5}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpd|&amp;lt;nowiki&amp;gt;1=#expr:2+2=4&amp;lt;/nowiki&amp;gt;}} || {{xpd|1=#expr:2+2=4}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpd|urlencode:!}} || {{xpd|urlencode:!}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpd|uc:abc}} || {{xpd|uc:abc}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{&amp;amp;#123;subst:xpd|uc:Upper Case|subst=subst:&amp;amp;#125;} substitutes {&amp;amp;#123;&amp;lt;small&amp;gt;&amp;amp;#160;&amp;lt;/small&amp;gt;&amp;lt;code&amp;gt;subst:uc:Upper Case&amp;lt;/code&amp;gt;&amp;amp;#125;} {{{2|gives}}} UPPER CASE&lt;br /&gt;
&lt;br /&gt;
See [[m:Help:Substitution|Help:Substitution]] for several caveats wrt &amp;lt;tt&amp;gt;subst=subst:&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Note that, as always, a parameter containing &amp;quot;=&amp;quot; has to be explicitly named by putting, in this case, &amp;quot;1=&amp;quot; in front.&lt;br /&gt;
&lt;br /&gt;
{{til|Xpdn}} can be used in the case of an expression in double braces which itself includes a pair of double braces (simple &amp;#039;&amp;#039;&amp;#039;nested&amp;#039;&amp;#039;&amp;#039; expressions). Use &amp;quot;|&amp;quot; for the inner &amp;quot;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;&amp;quot; and, if there is code after it, also for &amp;quot;}}&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{Tlx|xpdn|#expr:24*|CURRENTDAY}} || {{xpdn|#expr:24*|CURRENTDAY}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpdn|#expr:24*|CURRENTDAY|-24}} || {{xpdn|#expr:24*|CURRENTDAY|-24}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpdn|#expr:4*|#expr:not 0|&amp;lt;nowiki&amp;gt; &amp;amp;gt;3&amp;lt;/nowiki&amp;gt;}} || {{xpdn|#expr: 4*|#expr:not 0| &amp;gt;3}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpdn|urlencode:|DIRMARK}} || {{xpdn|urlencode:|DIRMARK}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Examples with additional parameters (no nesting possible):&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{Tlx|xpd|#ifeq: 1.00|+1|okay}} || {{xpd|#ifeq: 1.00|+1|okay}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpd|#ifeq: this|that&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;||&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;false|4=s=is}} || {{xpd|#ifeq: this|that||false|s=is}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpd|t|b}} || {{xpd|t|b}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpd|t2|b|c}} || {{xpd|t2|b|c}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In the case of one or more named parameters, write all parameter definitions from that as value of the appropriate parameter number, e.g.:&lt;br /&gt;
:&amp;lt;nowiki&amp;gt;{{xpd|t link|2=wikt=abc|3=}}&amp;lt;/nowiki&amp;gt; gives &amp;quot;{{xpd|t link|2=wikt=abc|3=}}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Optional substitution with &amp;lt;tt&amp;gt;subst=subst:&amp;lt;/tt&amp;gt; is &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; supported. The demo template shows what another template actually &amp;#039;&amp;#039;&amp;#039;does&amp;#039;&amp;#039;&amp;#039;, and not what it &amp;#039;&amp;#039;&amp;#039;did&amp;#039;&amp;#039;&amp;#039; some time ago.&lt;br /&gt;
&lt;br /&gt;
==Separator parameter==&lt;br /&gt;
;Usage&amp;amp;#58;&lt;br /&gt;
:{{Tlx|xpd|left side|&amp;lt;/tt&amp;gt;up to 3 additional parameters|4=s=separator}}&lt;br /&gt;
:{{Tlx|xpdn|left side|&amp;lt;/tt&amp;gt;nested part and optional last part|4=s=separator}}&lt;br /&gt;
&lt;br /&gt;
:The default separator is &amp;quot;gives&amp;quot;, use &amp;lt;tt&amp;gt;s==&amp;lt;/tt&amp;gt; or similar to get &amp;quot;=&amp;quot; etc.&lt;br /&gt;
&lt;br /&gt;
Examples with separator parameter:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|{{Tlx|xpd|CURRENTDAY|3=s=is}} || {{xpd|CURRENTDAY|s=is}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpd|&amp;lt;nowiki&amp;gt;1=#expr:2+2&amp;lt;/nowiki&amp;gt;|&amp;lt;nowiki&amp;gt;s==&amp;lt;/nowiki&amp;gt;}} || {{xpd|1=#expr:2+2|s==}}&lt;br /&gt;
|-&lt;br /&gt;
|{{Tlx|xpdn|#expr:4*|#expr:not 0|&amp;lt;nowiki&amp;gt; &amp;amp;gt;3 | yields&amp;lt;/nowiki&amp;gt;}} || {{xpdn|#expr: 4*|#expr:not 0| &amp;gt;3 | yields}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Module:Xpd]]&lt;br /&gt;
*[[Template:Xpds]]&lt;br /&gt;
*[[Template:Xpdp]]&lt;br /&gt;
*[[m:Template:Xpd/doc]]&lt;br /&gt;
{{mediawiki}}{{FAB-todo|Leave with redlinks for now. No M:, MW: interwiki&amp;#039;s at the least, and these templates may be cleared up later.}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Handbook templates|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fabartus</name></author>
	</entry>
</feed>