Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:TEMPLATENAMEE]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.

{{TEMPLATENAMEE}} returns the name of a template; if used on a /doc, /sandbox, or /testcases page, it returns the name of the associated template. For pages in the Template: namespace, the text Template: will not be included in the output (for example, it outputs TEMPLATENAMEE here); in other namespaces, the namespace is included (for example, on User:Sandbox it would output User:Sandbox).

By default, {{TEMPLATENAMEE}} returns the template name for the page it is used on; this can be changed by passing a page name to the template: {{TEMPLATENAMEE|Template:Sandbox}} results in Sandbox.

{{TEMPLATENAMEE}} can be made to match an additional subpage name by using the docpage or override parameter (to exclude that subpage name from the template's output), for example, using {{TEMPLATENAMEE|docpage=Documentation}} on Template:Sandbox/Documentation will result in Sandbox.

Note that the result will be wiki-URL-encoded. For a version suitable for display, see {{TEMPLATENAME}}.

See also

Community content is available under CC-BY-SA unless otherwise noted.