Template:Tcl/doc: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
(from wikipedia via wowwiki) |
m (changing File/image/Image: to file: so that all pics are named the same and db maintenance is made easier - TIF run) |
||
Line 9: | Line 9: | ||
*<code><nowiki>{{tcl| Foo }}</nowiki></code> → '''{{tcl|Foo}}''' | *<code><nowiki>{{tcl| Foo }}</nowiki></code> → '''{{tcl|Foo}}''' | ||
*<code><nowiki>{{tcl| :Foo }}</nowiki></code> → '''{{tcl|:Foo}}''' | *<code><nowiki>{{tcl| :Foo }}</nowiki></code> → '''{{tcl|:Foo}}''' | ||
*<code><nowiki>{{tcl| : | *<code><nowiki>{{tcl| :file:Foo }}</nowiki></code> → '''{{tcl|:file:Foo}}''' | ||
<includeonly> | <includeonly> |
Revision as of 03:36, 5 April 2011
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