• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:ROOTPAGENAME

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
This page in a nutshell: Never write {{ROOTPAGENAME|argument}}. Write {{ROOTPAGENAME:argument}} instead.
This template should have no transclusions. This is because it is a replacement to prevent breakage if editors attempt to invoke the magic word of the same name using a pipe instead of a colon.

Usage

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 (3).

Tracking category

  • Category:Pages which use a template in place of a magic word (3)
The above documentation is transcluded from Template:ROOTPAGENAME/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:ROOTPAGENAME&oldid=1061890374"