Template:PAGENAMEBASE/doc

Revision as of 12:51, 24 February 2024 by Francoxamorreu (talk | contribs) (From English Wikipedia.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

This template returns the current {{PAGENAME}} minus (text in parentheses) or the final set of parentheses where more than one set exist.

e.g. {{PAGENAMEBASE}} on page Angel Dust (porn actress) returns Angel Dust

Can also pass an optional page parameter:

  • {{PAGENAME|foo (bar)}} → "foo"
  • {{PAGENAME|foo bar}} → "foo bar"

It is not to be confused with {{BASEPAGENAME}}, which is a magic word that strips subpages, not parentheses.

See also

  • {{PAGENAME}} (variant to strip anything in parentheses from the title)
  • {{FULLPAGENAME}} (including namespace)