Difference between revisions of "Template:Transclude"
From Backstage Lore Wiki
(Created for use in Template:Navbar; template should now be supported,) |
|||
Line 7: | Line 7: | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
− | {{ | + | |
+ | 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. | ||
+ | |||
+ | === Usage === | ||
+ | |||
+ | *<code><nowiki>{{transclude| Template:Foo }}</nowiki></code> → '''{{transclude|Template:Foo}}''' | ||
+ | *<code><nowiki>{{transclude| Category:Foo }}</nowiki></code> → '''{{transclude|Category:Foo}}''' | ||
+ | *<code><nowiki>{{transclude| Foo }}</nowiki></code> → '''{{transclude|Foo}}''' | ||
+ | *<code><nowiki>{{transclude| :Foo }}</nowiki></code> → '''{{transclude|:Foo}}''' | ||
+ | *<code><nowiki>{{transclude| :File:Foo }}</nowiki></code> → '''{{transclude|:File:Foo}}''' | ||
+ | |||
</noinclude> | </noinclude> |
Latest revision as of 13:28, 31 January 2012
Template:{{{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.
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