Template:PAGENAMEBASE

PAGENAMEBASE

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)