Template:Transclude

From PortlandWiki
Revision as of 19:29, 20 March 2012 by WikiMaster (talk | contribs) (Create template from source: http://meta.wikimedia.org/wiki/Template:Transclude)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:{{{1}}}

[edit] [history] [purge] Documentation icon Template documentation

This template produces the full name of the page transcluded if a name is put in double braces.

Parameter without namespace prefix:

  • {{transclude|Foo}} → Template:Foo [1]
  • {{Foo}} → Foo [2]

Parameter with namespace prefix:

  • {{transclude|:Foo}} → Foo [3]
  • {{:Foo}}Foo [4]
  • {{transclude|Template:Foo}} → Template:Foo [5]
  • {{Template:Foo}} → Foo [6]
  • {{transclude|Help:Foo}} → Help:Foo [7]
  • {{Help:Foo}}Help:Foo [8]

Internal details

{{NAMESPACE:{{{1}}}}} determines the namespace prefix without colon; it is empty both if the parameter has no prefix at all, and if it starts with a colon. To distinguish these two cases, {{NAMESPACE:Template{{{1}}}}} is considered: if that is empty the parameter does not start with a colon.

See also

w:Template:Transclude

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 and interwikis to the /doc subpage. Subpages of this template.