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

Template:TEMPLATENAMEE

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]

When used on a template's /doc subpage, {{TEMPLATENAMEE}} evaluates to the name of the associated template. The result will be accurate when the end page is either the /doc subpage or the actual template page. The template makes a special case for the Template: namespace: the Template: prefix will be removed.

Note that the result will be wiki-URL-encoded. For a version suitable for display, see {{TEMPLATENAME}}.

Usage

The template takes one parameter: override. Normally, this template detects whether the end page is a documentation page by looking for the presence of a /doc subpage. If the documentation page is under a different name—for example, in a different language—then the proper subpage name should be passed to override. For example, if the documentation subpage were named Documentation:

{{TEMPLATENAMEE|override=Documentation}}

The following subpages will always be removed:

  • /doc
  • /sandbox
  • /testcases

The {{{require}}} parameter can be set to a target subpage on which the template should function. If the current subpage does not match {{{require}}} and the argument is not omitted, the template will evaluate to nothing. This is useful to prevent recursive loops on some templates pages that might otherwise reference themselves.

See also

  • {{TEMPLATENAME}}
The above documentation is transcluded from Template:TEMPLATENAMEE/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:TEMPLATENAMEE&oldid=32171"
Categories:
  • Template documentation
  • Template namespace templates
  • Wikipedia magic word templates
  • Pagename manipulation templates
Last edited on 10 November 2012, at 02:12

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 10 November 2012, at 02:12.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop