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.)
(rv; nevermind. could affect some pages that intentionally link to nonexistent templates.)
 
(includes 8 intermediate revisions)
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>
+
&#123;&#123;[[{{{2|Template}}}:{{{1}}}|{{{1}}}]]}}<noinclude>
 +
=== Usage ===
 +
*<code>&#123;&#123;t|template name to display}}</code>
 +
=== Examples ===
 +
*<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>

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