Template:THISTEMPLATE
Jump to navigation
Jump to search
THISTEMPLATE
This documentation is transcluded from Template:THISTEMPLATE/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
This template returns {{ PAGENAME}} when transcluded on a template or template talk page, {{ BASEPAGENAME}} when on a doc, testcases or sandbox subpage, or nothing otherwise. It's useful in template documentation pages, so that the documentation doesn't need to be updated when the template is renamed. {{ BASEPAGENAME}} is often used for that purpose, but it breaks when used in subtemplates.
Usage
{{THISTEMPLATE}}
→ THISTEMPLATE