Template:Transclude

From Structorica Wiki
Revision as of 13:14, 15 January 2026 by Ivan (talk | contribs) (Created page with "<includeonly>{{ #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 --> }} }}</includeonly><noinclude> === Documentation === This template resolves page names as they would be handled by MediaWiki's...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation

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