Template:Transclude/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>A morris m (1 revision: documentation) |
sims>A morris mNo edit summary |
||
Line 1:
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude><!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->▼
▲<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
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.
Line 14 ⟶ 12:
*<code><nowiki>{{transclude| :Foo }}</nowiki></code> → '''{{transclude|:Foo}}'''
*<code><nowiki>{{transclude| :File:Foo }}</nowiki></code> → '''{{transclude|:File:Foo}}'''
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:
</includeonly>
|
Revision as of 04:49, 18 February 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
{{transclude| Template:Foo }}
→ Template:Foo{{transclude| Category:Foo }}
→ Category:Foo{{transclude| Foo }}
→ Template:Foo{{transclude| :Foo }}
→ Foo{{transclude| :File:Foo }}
→ File:Foo