Template:Tcl: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
m (Protected "Template:Tcl": Changing this template will break others ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
m (Robot: Cosmetic changes) |
||
Line 6: | Line 6: | ||
| {{PAGENAME: {{{1}}} }} <!-- leading colon, eg ":Foo", so we want the article --> | | {{PAGENAME: {{{1}}} }} <!-- leading colon, eg ":Foo", so we want the article --> | ||
}} | }} | ||
}}</includeonly></onlyinclude><noinclude>[[ | }}</includeonly></onlyinclude><noinclude>[[Category:coding utility templates]]{{documentation}}{{lock}}</noinclude> |
Revision as of 23:50, 30 January 2012
Instructions for {{Tcl}}
This template resolves page names as they would be handled by MediaWiki's template-transclusion process. It thereby removes ambiguity when doing other things with template pagenames, e.g. linking.
Key usage is in navboxes' view, discuss, edit (v,d,e) menu.
Usage
{{tcl| Template:Foo }}
→ Template:Foo{{tcl| Category:Foo }}
→ Category:Foo{{tcl| Foo }}
→ Template:Foo{{tcl| :Foo }}
→ Foo{{tcl| :file:Foo }}
→ File:Foo