Template:t

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(Including usage info from Template talk:tl.)
(rv; nevermind. could affect some pages that intentionally link to nonexistent templates.)
 
(includes 7 intermediate revisions)
Line 1: Line 1:
-
<includeonly>&#123;&#123;{{#ifexist:Template:{{{1}}}|[[Template:{{{1}}}|{{{1}}}]]|{{#ifexist:{{{1}}}|[[{{{1}}}]]|[[Template:{{{1}}}|{{{1}}}]]}}}}&#125;&#125;</includeonly><noinclude>
+
&#123;&#123;[[{{{2|Template}}}:{{{1}}}|{{{1}}}]]}}<noinclude>
-
== Usage ==
+
=== Usage ===
-
<code>&#123;&#123;tl|template name to display}}</code>
+
*<code>&#123;&#123;t|template name to display}}</code>
-
 
+
=== Examples ===
-
:Bit of an explanation. This template is for showing a link to a template with braces around the link. In this fashion, instead of having to type '''<nowiki>&lt;nowiki&gt;{{&lt;/nowiki&gt;[[Template:welcome|welcome]]&lt;nowiki&gt;}}&lt;/nowiki&gt;</nowiki>''', you can instead type '''<nowiki>{{tl|welcome}}</nowiki>'''. It's quite useful, really.
+
*<code>&#123;&#123;t|whatsnew}}</code> ''returns'' {{t|whatsnew}}
-
 
+
To link to a namespace other than the Template namespace, add an extra pipe after the page name:
 +
*<code>&#123;&#123;t|User:JoeyDay/sig|}}</code> ''returns'' {{t|User:JoeyDay/sig|}}
[[Category:Internal link templates|{{PAGENAME}}]]</noinclude>
[[Category:Internal link templates|{{PAGENAME}}]]</noinclude>

Current revision as of 19:17, 1 February 2021

{{[[Template:{{{1}}}|{{{1}}}]]}}

[edit] Usage

  • {{t|template name to display}}

[edit] Examples

To link to a namespace other than the Template namespace, add an extra pipe after the page name:

Personal tools