Template:THISTEMPLATE/doc
< Template:THISTEMPLATE
Jump to navigation
Jump to search
Revision as of 07:33, 4 September 2023 by Gwyneth Llewelyn (talk | contribs) (Shamelessly copied from wikipedia.org)
This is a documentation subpage for Template:THISTEMPLATE. It contains usage information, categories and other content or metadata that is not part of the original template. |
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