• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:FULLPAGENAME

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
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.
Template documentation[view] [edit] [history] [purge]

Usage

CautionPlease use {{FULLPAGENAME:page name}} rather than {{FULLPAGENAME|page name}}, with a colon (":"), not a pipe symbol ("|"). This uses the magic word directly instead of using the template to call the magic word.

{{FULLPAGENAME}} is not actually a template but instead a magic word, meaning it is a feature of the Wikimedia software. When used, it will return the name of the page it's on, including the namespace. As an example, when placed on this page, it returns Template:FULLPAGENAME. When placed on Wikipedia:Village pump, it will return . It is possible to specify which pagename will appear by using a colon (not a pipe as is typical for templates). As an example, {{FULLPAGENAME:Wikipedia:Village pump}} returns .

There is actual template code here. The purpose of the template code is to ensure that if someone uses this magic word with a piped parameter, the template code will be invoked and it will not cause an error on the page. Parameter 1 will be used as the : parameter and other parameters will be discarded. This way, if someone mistakenly enters {{FULLPAGENAME|Wikipedia:Village pump}}, the template will change it to the correct {{FULLPAGENAME:Wikipedia:Village pump}}.

When a user mistakenly includes a pipe in a {{FULLPAGENAME}} call, the template code will add the page to the hidden category Category:Pages which use a template in place of a magic word. Pages in this category should be fixed by willing editors.

Tracking category

  • Category:Pages which use a template in place of a magic word (0)

See also

  • {{PAGENAME}}, which excludes the namespace
  • {{PAGENAMEBASE}} which excludes the namespace and strips anything in parentheses from the title
  • Help:Parser functions
The above documentation is transcluded from Template:FULLPAGENAME/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:FULLPAGENAME&oldid=2568"
Categories:
  • Wikipedia transclusionless templates
  • Wikipedia magic word templates
  • Templates that add a tracking category
Last edited on 2 July 2020, at 03:43

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 2 July 2020, at 03:43.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop