Template:t

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
m (Template:tl moved to Template:t over redirect: don't need two letters when one will suffice)
(mostly revert; this template shouldn't try to link to an article if a template doesn't exist)
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;[[Template:{{{1}}}|{{{1}}}]]}}<noinclude>
-
== Usage ==
+
=== Usage ===
-
<code>&#123;&#123;tl|template name to display}}</code>
+
<code>&#123;&#123;t|template name to display}}</code>
-
 
+
=== Example ===
-
: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}}
-
 
+
[[Category:Internal link templates|{{PAGENAME}}]]</noinclude>
[[Category:Internal link templates|{{PAGENAME}}]]</noinclude>

Revision as of 15:24, 30 May 2008

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

Usage

{{t|template name to display}}

Example

{{t|whatsnew}} returns {{whatsnew}}

Personal tools