Template:Tcl/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(from wikipedia via wowwiki)
 
No edit summary
Tag: sourceedit
 
(4 intermediate revisions by one other user not shown)
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>
[[Category:General wiki templates|{{PAGENAME}}]]
[[ru:Шаблон:Tcl]]
[[ru:Шаблон:Tcl]]
</includeonly>
</includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<noinclude></noinclude>
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 22:36, 4 March 2017

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