Template:Transclude/doc
Appearance
This is a documentation subpage for Template:Transclude. It contains usage information, categories, and other content that is not part of the original template page. |
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}}
→ Template:Foo [2]
Parameter with namespace prefix:
{{transclude|Template:Foo}}
→ Template:Foo [5]{{Template:Foo}}
→ Template:Foo [6]
Internal details
[edit]{{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
[edit]