<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://www.mansun.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ATlg%2Fdoc</id>
		<title>Template:Tlg/doc - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.mansun.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ATlg%2Fdoc"/>
		<link rel="alternate" type="text/html" href="http://www.mansun.wiki/index.php?title=Template:Tlg/doc&amp;action=history"/>
		<updated>2026-05-03T04:08:37Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://www.mansun.wiki/index.php?title=Template:Tlg/doc&amp;diff=2096&amp;oldid=prev</id>
		<title>DarkMavis: Created page with &quot;{{Documentation subpage}} &lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --&gt;  {{tl|tlg}} (abbreviating &quot;[t]emplate [l]ink {{small|(with)}} [g]eneral {{s...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.mansun.wiki/index.php?title=Template:Tlg/doc&amp;diff=2096&amp;oldid=prev"/>
				<updated>2015-07-15T20:33:41Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --&amp;gt;  {{tl|tlg}} (abbreviating &amp;quot;[t]emplate [l]ink {{small|(with)}} [g]eneral {{s...&amp;quot;&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;
&amp;lt;!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{tl|tlg}} (abbreviating &amp;quot;[t]emplate [l]ink {{small|(with)}} [g]eneral {{small|(options)}}&amp;quot;) is a generalised version of the {{tl|tl}} (&amp;quot;template link&amp;quot;) template. It can be used to replace or implement {{tlf|tl}} and related templates such as {{tl|tlb}}, {{tl|tlx}}, etc.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
; {{big|Named}}&lt;br /&gt;
With the exception of {{mono|alttext}}, {{tlf|tlg}}'s named parameters are toggles that are either omitted (default) or activated (by being assigned a value such as &amp;quot;on&amp;quot;, &amp;quot;yes&amp;quot;, &amp;quot;true&amp;quot;, &amp;quot;include&amp;quot;, etc). They may be included in any order (see Examples below):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter || Action || As in&lt;br /&gt;
|-&lt;br /&gt;
 | braceinside || Include innermost braces as part of the template link                             || {{tl|tlw}}&lt;br /&gt;
|-&lt;br /&gt;
 | bold&amp;lt;br/&amp;gt;boldlink&amp;lt;br/&amp;gt;boldname || Renders the template link/name in '''bold'''                   || {{tl|tlb}} {{tl|tlx}} etc.&lt;br /&gt;
|-&lt;br /&gt;
 | code        || Display output using the ([[Monospaced font|monospaced]]) HTML &amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;&amp;lt;/nowiki&amp;gt; formatting || {{tl|tlc}} {{tl|tlx}} etc.&lt;br /&gt;
|-&lt;br /&gt;
 | italic&amp;lt;br/&amp;gt;italics || Display any parameters accompanying the template link/name in ''italic/s'' || {{tl|tlxi}}&lt;br /&gt;
|-&lt;br /&gt;
 | nolink      || Don't render the template name as a link                                          || {{tl|tln}}&lt;br /&gt;
|-&lt;br /&gt;
 | nowrap      || Prevent the insertion of line breaks ([[word wrap]]) in the output                || &lt;br /&gt;
|-&lt;br /&gt;
 | subst       || Include a [[Help:Substitution|subst:]] prefix before the template link/name       || {{tl|tls}}&lt;br /&gt;
|-&lt;br /&gt;
 | &amp;lt;nowiki&amp;gt;|alttext=[text]&amp;lt;/nowiki&amp;gt; || Use [text] as the label for the template link  || {{tl|tla}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
; {{big|Unnamed}}&lt;br /&gt;
{{tlf|tlg}} may take up to ten unnamed parameters as parameters accompanying the template link (or name); see Examples below.&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
{{#switch:{{SITENAME}} |Wikipedia|Meta= |&lt;br /&gt;
; Note: On the source sister projects, en.wikipedia and Meta, '''X0, X1, X2, …, X9 are sandbox templates''' for experimentation on involved templates that need be in template space. An auto-cleansing software facility exists that might be used to duplicate the facility on other Sister projects.&lt;br /&gt;
}}&lt;br /&gt;
{{Aligned table&lt;br /&gt;
 |cols=3 |class=wikitable |style=border:1;cellpadding:4;&lt;br /&gt;
 | '''Code'''                         | '''Output'''               | '''Remarks'''&lt;br /&gt;
 | {{tlx|tlg|Abc}}                    | {{tlg|Abc}}                | &lt;br /&gt;
 | {{tlx|tlg|abC}}                    | {{tlg|abC}}                | template names are case-sensitive&lt;br /&gt;
 | {{tlx|tlg|abc}}                    | {{tlg|abc}}                | first letter is case-insensitive though&lt;br /&gt;
 | {{tlx|tlg|x0}}                     | {{tlg|x0}}                 | &lt;br /&gt;
 | {{tlx|tlg|x0|code{{=}}on}}         | {{tlg|x0|code=on}}         | &amp;amp;lt;code&amp;amp;gt; style&lt;br /&gt;
 | {{tlx|tlg|x0|plaincode{{=}}on}}    | {{tlg|x0|plaincode=on}}    | plaincode style&lt;br /&gt;
 | {{tlx|tlg|x0|bold{{=}}on}}         | {{tlg|x0|bold=on}}         | bold link/name&lt;br /&gt;
 | {{tlx|tlg|x1|one|italic{{=}}on}}   | {{tlg|x1|one|italic=on}}   | parameter/s in italics&lt;br /&gt;
 | {{tlx|tlg|x0|nolink{{=}}on}}       | {{tlg|x0|nolink=on}}       | &lt;br /&gt;
 | {{tlx|tlg|x0|subst{{=}}on}}        | {{tlg|x0|subst=on}}        | &lt;br /&gt;
 | {{tlx|tlg|x0|braceinside{{=}}on}}  | {{tlg|x0|braceinside=on}}  | &lt;br /&gt;
 | {{tlx|tlg|x0|alttext{{=}}x0 link}} | {{tlg|x0|alttext=x0 link}} | &lt;br /&gt;
 | {{tlx|tlg|x0|bold{{=}}on|code{{=}}on|braceinside{{=}}on}} | {{tlg|x0|bold=on|code=on|braceinside=on}} | No reason you can't combine multiple parameter settings&lt;br /&gt;
 | {{tlx|tlg|x1|one}}                 | {{tlg|x1|one}}             | &lt;br /&gt;
 | {{tlx|tlg|x2|one|two}}             | {{tlg|x2|one|two}}         | &lt;br /&gt;
 | {{tlx|tlg|x2|bold{{=}}on|code{{=}}on|one|two}} | {{tlg|x2|bold=on|code=on|one|two}} | Can combine named and anonymous parameters …&lt;br /&gt;
 | {{tlx|tlg|x2|one|two|bold{{=}}on|code{{=}}on}} | {{tlg|x2|one|two|bold=on|code=on}} | … in any order …&lt;br /&gt;
 | {{tlx|tlg|x2|one|code{{=}}on|two|bold{{=}}on|three}} | {{tlg|x2|one|code=on|two|bold=on|three}} | … even intermixed …&lt;br /&gt;
 | {{tlx|tlg|x2|one|code{{=}}on|two|bold{{=}}on|three|italic{{=}}on}} | {{tlg|x2|one|code=on|two|bold=on|three|italic=on}} | … with many different configurations.&lt;br /&gt;
 | {{tlx|tlg|x3|1|2|3|4|5|6|7|8|9&amp;amp;#124;10}}               | {{tlg|x3|1|2|3|4|5|6|7|8|9|10}}      | &lt;br /&gt;
 | {{tlx|tlg|x4|1|2|3|4|5|6|7|8|9&amp;amp;#124;10&amp;amp;#124;11}}       | {{tlg|x4|1|2|3|4|5|6|7|8|9|10|11}}   | up to 10 parameters, then …&lt;br /&gt;
 | {{tlx|tlg|x5|1|2|3|4|5|6|7|8|9&amp;amp;#124;10&amp;amp;amp;#124;11}}   | {{tlg|x5|1|2|3|4|5|6|7|8|9|10&amp;amp;#124;11}} | {{align|right|&amp;lt;code&amp;gt;&amp;amp;amp;#124;&amp;lt;/code&amp;gt; for more}}&lt;br /&gt;
 | {{tlx|tlg}}                                            | {{tlg}}                              | with no arguments, the current page name is substituted&lt;br /&gt;
 | {{tlx|tlg|x1|x&amp;amp;#61;u}}                                 | {{tlg|x1|x{{=}}u}}                   | '''{{=}}''' won't work&lt;br /&gt;
 | {{tlx|tlg|x1|x&amp;amp;amp;#61;u}}                             | {{tlg|x1|x&amp;amp;#61;u}}                   | {{align|right|&amp;lt;code&amp;gt;&amp;amp;amp;#61;&amp;lt;/code&amp;gt; is okay}}&lt;br /&gt;
 | {{tlx|tlg|x1|x&amp;lt;nowiki&amp;gt;{{=}}&amp;lt;/nowiki&amp;gt;u}}                | {{tlg|x1|x{{=}}u}}                   | {{align|right|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{=}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is okay}}&lt;br /&gt;
 | {{tlx|tlg|x1|x&amp;amp;lt;nowiki&amp;amp;gt;&amp;amp;#61;&amp;amp;lt;/nowiki&amp;amp;gt;u}}    | {{tlg|x1|x&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;u}}      | {{align|right|sticky nowiki is okay}}&lt;br /&gt;
 | {{tlx|tlg|x2|&amp;lt;nowiki /&amp;gt;|two|&amp;lt;nowiki /&amp;gt;|&amp;lt;nowiki /&amp;gt;}}    | {{tlg|x2||two||}}                    | empty parameters work too, even at the end&lt;br /&gt;
 | {{tlx|tlg|x2|&amp;lt;nowiki&amp;gt;2=one&amp;lt;/nowiki&amp;gt;|two}}              | {{tlg|x2|2{{=}}one|two}}             | '''two''' clobbers '''2{{=}}one'''&lt;br /&gt;
 | {{tlx|tlg|x2|&amp;lt;nowiki&amp;gt;3=two&amp;lt;/nowiki&amp;gt;|&amp;lt;nowiki&amp;gt;2=one&amp;lt;/nowiki&amp;gt;}} | {{tlg|x2|3{{=}}two|2{{=}}one}} | {{align|right|right to left okay}}&lt;br /&gt;
}}&lt;br /&gt;
; Unlimited parameters as one nowiki string&lt;br /&gt;
{{tlx|tlg|convert|&amp;lt;nowiki&amp;gt;&amp;amp;lt;nowiki&amp;gt;14|m|ftin|abbr=out|sp=us&amp;amp;lt;/nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Template-linking templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox |&lt;br /&gt;
| &amp;lt;!-- CATEGORIES BELOW THIS LINE, PLEASE: --&amp;gt;&lt;br /&gt;
[[Category:Internal template-link templates]]&lt;br /&gt;
[[Category:Typing-aid templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>DarkMavis</name></author>	</entry>

	</feed>