Template:THISTEMPLATE/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>Not-cheesewhisk3rs at 11:30, 1 November 2025 (Categorising page - You can help!). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.