Template:Template link with parameters/doc: Difference between revisions

Content deleted Content added
Sasajid (talk | contribs)
No edit summary
Minor.
Line 3:
{{high-use| 30,000+ }}
 
This is the {{tlTl|tlpTlp}} or '''template link with parameters''' template.
 
It can be used in documentation and talk page discussions to show how a template name would be used in code.
Line 9:
Here is how this template looks. Code to the left and actual rendering to the right:
 
:{{tlcTlc|tlpTlp|name|parameters}} = {{tlpTlp|name|parameters}}
 
Features of {{tlpTlp|tlpTlp}}:
* It shows a template name with a link to that template.
* It shows up to eight parameters.
* It also shows empty parameters. (See examples below.)
* It prevents [[line wrap]]s in its output.
* It uses normal text style. (While for instance {{tlxTlx|tlxTlx}} uses <tt>teletype</tt> text style.)
 
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. Then on the first occurrence of a template name use {{tlTl|tlTl}}, {{tlpTlp|tlpTlp}} or {{tlxTlx|tlxTlx}}, and then use {{tlfTlf|tlfTlf}}, {{tldTld|tldTld}} or {{tlcTlc|tlcTlc}}.
 
=== Examples ===
Line 41:
 
=== See also ===
{{Tl-nav}}
 
* {{tl|tlc}} – Not linked, several parameters and text in <code>&lt;code>&lt;/code></code> style.
* {{tl|tld}} – Not linked, several parameters and <tt>teletype</tt> text style.
* {{tl|tlf}} – Not linked, several parameters and normal text style.
 
* {{tl|tl}} – Template link, no parameters and normal text style.
* {{tl|tlp}} – Template link, several parameters and normal text style.
* {{tl|tlx}} – Template link, several parameters and interwiki links, <tt>teletype</tt> text style.
* {{tl|tn}} – Same as {{tlf|tl}}, but shows the braces as part of the link.
 
<includeonly>