Template:Tcl: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
(from wikipedia via wowwiki) |
m (+ lock) |
||
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:coding utility templates]]{{documentation}}</noinclude> | }}</includeonly></onlyinclude><noinclude>[[category:coding utility templates]]{{documentation}}{{lock}}</noinclude> |
Revision as of 19:13, 3 April 2011
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