Template:Transclude: Difference between revisions
Template page
More actions
Created page with "{{ #switch: {{NAMESPACE: {{{1}}} }} | #default = {{FULLPAGENAME: {{{1}}} }} <!-- eg "User:Foo" --> | {{ns:0}} = {{ #ifeq: {{NAMESPACE: {{{1}}} }} | {{NAMESPACE: Template{{{1}}} }} | Template:{{{1}}} <!-- no leading colon, eg "Foo" --> | {{PAGENAME: {{{1}}} }} <!-- leading colon, eg ":Foo", so we want the article --> }} }}<noinclude> {{Documentation}} <!-- categories/interwikis on the /doc subpage, not here --> </noinclude>" Â |
(No difference)
|
Latest revision as of 19:14, 16 June 2025
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.
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
- Template:Transclude on Wikipedia
[view] [edit] [history] [purge]The above documentation is transcluded from Template:Transclude/doc.