Template:ROOTPAGENAME
Appearance
ROOTPAGENAME
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
File:Walnut.png | This page in a nutshell: Never write {{ROOTPAGENAME|argument}}. Write {{ROOTPAGENAME:argument}} instead. |
File:Information icon4.svg | This template may have no transclusions, because it is substituted by a tool or script, it is used as part of a short-term or less active Wikipedia process, or for some other reason. |
Usage[change]
The magic word ROOTPAGENAME is described at Wikipedia:Magic words#Parser functions. An example of its output is {{ROOTPAGENAME:Template:Example/with/subpages}}
→ "Example".
This template should never be used, but when someone uses the magic word "ROOTPAGENAME" with a piped parameter, it will prevent breakage. Parameter 1 will be used as the : parameter, other parameters will be discarded.
The page will be added to the hidden category Category:Pages which use a template in place of a magic word (0).