Template:Tcl: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
m (Robot: Cosmetic changes) |
No edit summary |
||
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>[[Category: | }}</includeonly></onlyinclude><noinclude>[[Category:template demonstration templates]]{{documentation}}{{lock}}</noinclude> |
Latest revision as of 05:28, 12 May 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