Template:t

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(Finally, I made a workaround for why Tom reverted my previous attempt at this.)
(Including usage info from Template talk:tl.)
Line 1: Line 1:
-
&#123;&#123;{{#ifexist:Template:{{{1}}}|[[Template:{{{1}}}|{{{1}}}]]|{{#ifexist:{{{1}}}|[[{{{1}}}]]|[[Template:{{{1}}}|{{{1}}}]]}}}}&#125;&#125;<noinclude>[[Category:Internal link templates|{{PAGENAME}}]]</noinclude>
+
<includeonly>&#123;&#123;{{#ifexist:Template:{{{1}}}|[[Template:{{{1}}}|{{{1}}}]]|{{#ifexist:{{{1}}}|[[{{{1}}}]]|[[Template:{{{1}}}|{{{1}}}]]}}}}&#125;&#125;</includeonly><noinclude>
 +
== Usage ==
 +
<code>&#123;&#123;tl|template name to display}}</code>
 +
 
 +
: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.
 +
 
 +
[[Category:Internal link templates|{{PAGENAME}}]]</noinclude>

Revision as of 08:45, 30 May 2008

Usage

{{tl|template name to display}}

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>{{</nowiki>[[Template:welcome|welcome]]<nowiki>}}</nowiki>, you can instead type {{tl|welcome}}. It's quite useful, really.