<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ATlx%2Fdoc</id>
	<title>Module:Tlx/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ATlx%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Tlx/doc&amp;action=history"/>
	<updated>2026-04-10T20:58:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Tlx/doc&amp;diff=147282&amp;oldid=prev</id>
		<title>imported&gt;Neils51: /* Usage */ sp</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Tlx/doc&amp;diff=147282&amp;oldid=prev"/>
		<updated>2019-07-17T10:13:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage: &lt;/span&gt; sp&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating | alpha }}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:{{BASEPAGENAME}}|&amp;#039;&amp;#039;function_name&amp;#039;&amp;#039;|SISTER=&amp;#039;&amp;#039;sister project name&amp;#039;&amp;#039;}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Implements a version of {{tl|tlx}}, {{tl|tlxs}}, {{tl|tlxb}}, {{tl|tlxi}}, {{tl|tlxc}}, and {{tl|temt}}.&lt;br /&gt;
&lt;br /&gt;
{{tl|tlx}} and {{tl|temt}} use the function name &amp;lt;code&amp;gt;tlx&amp;lt;/code&amp;gt;, {{tl|tlxs}} uses &amp;lt;code&amp;gt;tlxs&amp;lt;/code&amp;gt;, {{tl|tlxb}} uses &amp;lt;code&amp;gt;tlxb&amp;lt;/code&amp;gt;, {{tl|tlxi}} uses &amp;lt;code&amp;gt;tlxi&amp;lt;/code&amp;gt;, and {{tl|tlxs}} uses &amp;lt;code&amp;gt;tlx&amp;lt;/code&amp;gt; with {{para|SISTER|commons:}}.&lt;br /&gt;
&lt;br /&gt;
Generally, a call to this module can be placed at the front of a template call to display formatted code instead of the template output. For example, if this module is implemented at {{tl|tlx/sandbox}}, a function call such as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{convert|1|m|disp=flip}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; can be displayed as formatted text using the code &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tlx/sandbox|convert|1|m|disp=flip}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, which outputs {{tlx/sandbox|convert|1|m|disp=flip}}.&lt;br /&gt;
&lt;br /&gt;
This has the following caveats:&lt;br /&gt;
*{{para|LANG}}, {{para|SISTER}}, and {{para|subst}} are reserved for compatibility with the legacy {{tl|tlx}} template. In order to display &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{x0|LANG=de|SISTER=wikt|subst=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; you would need to use workarounds from the old template such as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tlx/sandbox|x0|&amp;amp;lt;nowiki&amp;amp;gt;LANG=en&amp;amp;lt;/nowiki&amp;amp;gt;|SISTER{{=}}wikt|4=subst=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to produce {{tlx/sandbox|x0|&amp;lt;nowiki&amp;gt;LANG=en&amp;lt;/nowiki&amp;gt;|SISTER{{=}}wikt|4=subst=yes}}.&lt;br /&gt;
*Parameters are presented in alphabetical order, starting with numbered parameters, regardless of input order. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tlx/sandbox|x0|z=y|x=w|a|b}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; displays {{tlx/sandbox|x0|z=y|x=w|a|b}}&lt;br /&gt;
*Since the {{para|1}} parameter is used for the template name, numbered parameters where the number is explicitly specified must be offset by one (as was true with the legacy {{tl|tlx}} template): &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tlx/sandbox|x0|2=first|3=second|4=third=***}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; produces {{tlx/sandbox|x0|2=first|3=second|4=third=***}}.&lt;br /&gt;
:*NOTE: you must be careful not to double-define a parameter. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tlx/sandbox|x0|first|2=second=**}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will output {{tlx/sandbox|x0|2=second=**}} (and generate a warning) since the &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt; parameter was defined twice. Use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tlx/sandbox|x0|first|3=second=**}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to display {{tlx/sandbox|x0|first|3=second=**}}.&lt;br /&gt;
*To display the number of a numbered parameter explicitly, the same workarounds from the legacy template still work: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tlx/sandbox|x0|&amp;amp;lt;nowiki&amp;amp;gt;1=first&amp;amp;lt;/nowiki&amp;amp;gt;|2{{=}}second|4=3=third}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; produces {{tlx/sandbox|x0|&amp;lt;nowiki&amp;gt;1=first&amp;lt;/nowiki&amp;gt;|2{{=}}second|4=3=third}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Neils51</name></author>
	</entry>
</feed>