Template:TEMPLATENAME/doc

When used on a template's  subpage, undefined evaluates to the name of the associated template. The result will be accurate when the end page is either the  subpage or the actual template page. The template makes a special case for the  namespace: the   prefix will be removed.

Note that the result will not be URL-safe. For a URL-encoded version, see TEMPLATENAMEE.

Usage
The template takes one parameter:. Normally, this template detects whether the end page is a documentation page by looking for the presence of a  subpage. If the documentation page is under a different name—for example, in a different language—then the proper subpage name should be passed to. For example, if the documentation subpage were named :