FANDOM



{{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.