टेम्पलेट:TemplatePAGENAME/doc

विकिपीडिया से

{{TemplatePAGENAME/doc}} inserts the name of the template currently being documented. It is equivalent to either {{PAGENAME}} or {{BASEPAGENAME}} depending on whether the currently viewed page is the documentation subpage or the template itself (which presumably transcludes the documentation subpage via {{template doc}}).