Template:Tcl/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
m (changing File/image/Image: to file: so that all pics are named the same and db maintenance is made easier - TIF run)
m (Robot: Cosmetic changes)
Line 1: Line 1:
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.
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 [[Template:Navbox|navboxes']] view, discuss, edit (v,d,e) menu.
Key usage is in [[Template:Navbox|navboxes']] view, discuss, edit (v,d,e) menu.
Line 5: Line 5:
=== Usage ===
=== Usage ===


*<code><nowiki>{{tcl| Template:Foo }}</nowiki></code> &rarr; '''{{tcl|Template:Foo}}'''
* <code><nowiki>{{tcl| Template:Foo }}</nowiki></code> '''{{tcl|Template:Foo}}'''
*<code><nowiki>{{tcl| Category:Foo }}</nowiki></code> &rarr; '''{{tcl|Category:Foo}}'''
* <code><nowiki>{{tcl| Category:Foo }}</nowiki></code> '''{{tcl|Category:Foo}}'''
*<code><nowiki>{{tcl| Foo }}</nowiki></code> &rarr; '''{{tcl|Foo}}'''
* <code><nowiki>{{tcl| Foo }}</nowiki></code> '''{{tcl|Foo}}'''
*<code><nowiki>{{tcl| :Foo }}</nowiki></code> &rarr; '''{{tcl|:Foo}}'''
* <code><nowiki>{{tcl| :Foo }}</nowiki></code> '''{{tcl|:Foo}}'''
*<code><nowiki>{{tcl| :file:Foo }}</nowiki></code> &rarr; '''{{tcl|:file:Foo}}'''
* <code><nowiki>{{tcl| :file:Foo }}</nowiki></code> '''{{tcl|:file:Foo}}'''


<includeonly>
<includeonly>

Revision as of 23:50, 30 January 2012

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