Template:Transclude
Jump to navigation
Jump to search
Template:{{{1}}}
Documentation icon Template documentation[view] [edit] [history] [purge]
File:Ambox warning yellow.svg | This template is used on 15,000+ pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them. |
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 menu used at the top of each {{navbox}}, though it is used in other templates as well, such as {{usbk}}.Usage
{{transclude| Template:Foo }}
→ Template:Foo{{transclude| Category:Foo }}
→ Category:Foo{{transclude| Foo }}
→ Template:Foo{{transclude| :Foo }}
→ Foo{{transclude| :File:Foo }}
→ File:Foo
See also
<templatedata> {
"description": "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.", "params": { "1": { "label": "Page name", "description": "The name of the page you are trying to link to", "type": "string", "required": true } }
} </templatedata>
The above documentation is transcluded from Template:Transclude/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |