<?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%3ATlp%2Fdoc</id>
		<title>Template:Tlp/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%3ATlp%2Fdoc"/>
		<link rel="alternate" type="text/html" href="http://www.mansun.wiki/index.php?title=Template:Tlp/doc&amp;action=history"/>
		<updated>2026-04-29T19:39:46Z</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:Tlp/doc&amp;diff=2192&amp;oldid=prev</id>
		<title>DarkMavis: Created page with &quot;{{Documentation subpage}} &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;   This is the {{tl|tlp}} ('''template link with parameters''') template.   I...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.mansun.wiki/index.php?title=Template:Tlp/doc&amp;diff=2192&amp;oldid=prev"/>
				<updated>2015-07-15T22:17:53Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;   This is the {{tl|tlp}} (&amp;#039;&amp;#039;&amp;#039;template link with parameters&amp;#039;&amp;#039;&amp;#039;) template.   I...&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 AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
This is the {{tl|tlp}} ('''template link with parameters''') template.&lt;br /&gt;
 &lt;br /&gt;
It can be used in documentation and talk page discussions to show how a template name would be used in code.&lt;br /&gt;
 &lt;br /&gt;
Here is how this template looks. Code to the left and actual rendering to the right:&lt;br /&gt;
 &lt;br /&gt;
: {{tlc|tlp|name|parameters}} = {{tlp|name|parameters}}&lt;br /&gt;
 &lt;br /&gt;
Features of {{tlp|tlp}}:&lt;br /&gt;
* It shows a template name with a link to that template.&lt;br /&gt;
* It shows up to eight parameters.&lt;br /&gt;
* It also shows empty parameters. (See examples below.)&lt;br /&gt;
* It prevents [[line wrap]]s in its output.&lt;br /&gt;
* It uses normal text style. ({{tlx|tlx}}, for instance, uses {{tag|code}} text style.)&lt;br /&gt;
 &lt;br /&gt;
This template belongs to a whole family of similar templates. See the [[#See also|see also]] section below for some of them. For instance, when writing documentation you might want to avoid a lot of unnecessary links, since it decreases readability&amp;amp;nbsp;– i.e. on the first occurrence of a template name, use {{tl|tl}}, {{tlp|tlp}} or {{Tlx|Tlx}} and thereafter use {{tlf|tlf}}, {{tlc|tlc}} or {{tld|tld}}.&lt;br /&gt;
 &lt;br /&gt;
===Examples===&lt;br /&gt;
{{Aligned table |cols=3 |class=wikitable&lt;br /&gt;
 | '''Code'''                   | '''Output'''             | '''Comments'''&lt;br /&gt;
 | {{tlc|tlp}}                  | {{tlp}}                  | Shows its own syntax.&lt;br /&gt;
 | {{tlc|tlp|name}}             | {{tlp|name}}             |&lt;br /&gt;
 | {{tlc|tlp|name|first}}       | {{tlp|name|first}}       |&lt;br /&gt;
 | {{tlc|tlp|name|first|last}}  | {{tlp|name|first|last}}  |&lt;br /&gt;
 | {{tlc|tlp|name|a|b|c|d|e|&amp;lt;nowiki&amp;gt;f|g|h|i|&amp;lt;/nowiki&amp;gt;j}} | {{tlp|name|a|b|c|d|e|f|g|h|i|j}} | Shows up to ''eight'' parameters. The rest are dropped.&lt;br /&gt;
 | {{tlc|tlp|name||three|four}} | {{tlp|name||three|four}} | Also shows empty parameters.&lt;br /&gt;
 | {{tlc|tlp|name||three|}}     | {{tlp|name||three|}}     | Even shows empty parameters that come at the end.&lt;br /&gt;
&lt;br /&gt;
 |row9style=color:red;&lt;br /&gt;
 | {{tlc|tlp|name|3=first=a|4=last=b}}&lt;br /&gt;
 | {{tlp|name|first=a|last=b}}&lt;br /&gt;
 | Equal signs are a problem, but there are a couple ways to fix:&lt;br /&gt;
&lt;br /&gt;
 | {{tlc|tlp|name|3=2=first=a|4=3=last=b}}&lt;br /&gt;
 | {{tlp|name|2=first=a|3=last=b}}&lt;br /&gt;
 | Use numbered parameters to fix it. Here, parameter &amp;quot;{{para|2}}&amp;quot; is assigned the string &amp;quot;first{{=}}a&amp;quot;. Start with #2, since &amp;quot;name&amp;quot; is already in the &amp;quot;{{para|1}}&amp;quot; slot. Note that ''all'' subsequent parameters after a numbered parameter ''must also'' be numbered.&lt;br /&gt;
&lt;br /&gt;
 | {{tlc|tlp|name|3=first&amp;lt;nowiki&amp;gt;{{=}}&amp;lt;/nowiki&amp;gt;a|4=last&amp;lt;nowiki&amp;gt;{{=}}&amp;lt;/nowiki&amp;gt;b}}&lt;br /&gt;
 | {{tlp|name|first{{=}}a|last{{=}}b}}&lt;br /&gt;
 | Or, simply use, &amp;quot;&amp;lt;nowiki&amp;gt;{{=}}&amp;lt;/nowiki&amp;gt;&amp;quot;, the equal-sign template, to &amp;quot;escape&amp;quot; the symbol.&lt;br /&gt;
&lt;br /&gt;
 | {{tlc|tlp|name|3=2=1=a|4=3=2=b}}&lt;br /&gt;
 | {{tlp|name|2=1=a|3=2=b}}&lt;br /&gt;
 | Both techniques also work with numbered positional parameters (e.g.: &amp;quot;{{para|1}}&amp;quot;, &amp;quot;{{para|2}}&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
 |row13style=color:red;&lt;br /&gt;
 | {{tlc|tlp|name|3=2=1=a|4=last&amp;lt;nowiki&amp;gt;{{=}}&amp;lt;/nowiki&amp;gt;b}}&lt;br /&gt;
 | {{tlp|name|&amp;lt;!--2=1=a|--&amp;gt;last{{=}}b}}&lt;br /&gt;
 | The named parameter (&amp;quot;{{para|last}}&amp;quot;) clobbered the prior one (&amp;quot;{{para|2}}&amp;quot;).  Again, '''all''' subsequent parameters after a numbered parameter ''must also'' be numbered...&lt;br /&gt;
&lt;br /&gt;
 | {{tlc|tlp|name|3=2=1=a|4=3=last=b}}&lt;br /&gt;
 | {{tlp|name|2=1=a|3=last=b}}&lt;br /&gt;
 | ... but that's easy to fix, by adding the position number (&amp;quot;{{para|3}}&amp;quot;) to the last parameter.&lt;br /&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;&lt;br /&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;
}}&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>DarkMavis</name></author>	</entry>

	</feed>