Template:Template link general/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
"anypage" not needed anymore, <tt> shouldn't be used anymore
m (small fix for previous edit)
("anypage" not needed anymore, <tt> shouldn't be used anymore)
Line 4:
==Explanation==
{{tlx|tlg}} ('''<u>t</u>emplate <u>l</u>ink, <u>g</u>eneral''') is a general template for inserting a template link. It can be used to replace or implement any of the more specific <code><nowiki>{{tl*}}</nowiki></code> templates, e.g. {{tlx|tl}}, {{tlx|tlx}} or {{tlx|tlb}}. Parameters are:
* {{code|code{{=}}yes}} or {{code|tt{{=}}yes}}: Use the <code><nowiki><code>...</code></nowiki></code> HTML attribute (usually a monospaced font), like for {{tlx|tlc}} {{tlx|tlx}} and {{tlx|tlxb}}
* {{code|bold{{=}}yes}}: '''Boldface''' the text, like for {{tlx|tlb}} and {{tlx|tlxb}}
* {{code|italic{{=}}yes}}: ''Italicizes'' the parameters, like for {{tlx|tlxi}}
* {{code|code{{=}}yes}} or {{code|tt{{=}}yes}}: Use the <code><nowiki><code>...</code></nowiki></code> HTML attribute (usually a monospaced font), like for {{tlx|tlc}} {{tlx|tlx}} and {{tlx|tlxb}}
* {{code|nolink{{=}}yes}}: Don't insert a template link, like for {{tlx|tlf}}, {{tlx|tld}}, and {{tlx|tlc}}
* {{code|anypage{{=}}yes}}: Allow linking to arbitrary page (not just template), as with {{tlx|tlu}}
* {{code|braceinside{{=}}yes}}: Put braces inside the link, like for {{tlx|tn}}
* {{code|subst{{=}}yes}}: Add a {{code|subst:}} prefix, like for {{tlx|tls}}
Line 50 ⟶ 49:
|{{Tlx|Tlg|x0|code{{=}}yes}}
|{{Tlg|x0|code=yes}}
||&#160;
|-
|{{Tlx|Tlg|x0|tt{{=}}yes}}
|{{Tlg|x0|tt=yes}}
||&#160;
|-
Line 71 ⟶ 66:
|{{Tlg|x0|alttext=Link to x0 template}}
||&#160;
|-
|{{Tlx|Tlg|x0|anypage{{=}}yes}}
|{{Tlg|x0|anypage=yes}}
|Now the expression links to [[x0]] (the spaceship, genetic disease, etc.) rather than [[Template:x0]]. Mostly useful for templates in user space.
|-
|{{Tlx|Tlg|x0|bold{{=}}yes|tt{{=}}yes|braceinside{{=}}yes}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu