On November 27th, 2022, the 8,000th article was added to the SuccuWiki!
Template:Transclude/doc: Difference between revisions
Jump to navigation
Jump to search
m (1 revision: a lot of them at once) |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- 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. | 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. | ||
The most prominent use of this template is in the | The most prominent use of this template is in the Navbar menu used at the top of each navbox, though it is used in other templates as well. | ||
== Usage == | == Usage == | ||
Line 14: | Line 13: | ||
*<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}}''' | *<code><nowiki>{{transclude| :File:Foo }}</nowiki></code> → '''{{transclude|:File:Foo}}''' | ||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:Wikipedia formatting and function templates|Transclude]] | [[Category:Wikipedia formatting and function templates|Transclude]] | ||
</includeonly> | </includeonly> |
Latest revision as of 20:40, 9 October 2012
This is a documentation subpage for Template:Transclude. It contains usage information, categories, interlanguage links and other content that is not part of the original template 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.
The most prominent use of this template is in the Navbar menu used at the top of each navbox, though it is used in other templates as well.
Usage
{{transclude| Template:Foo }}
→ Template:Foo{{transclude| Category:Foo }}
→ Category:Foo{{transclude| Foo }}
→ Template:Foo{{transclude| :Foo }}
→ Foo{{transclude| :File:Foo }}
→ File:Foo