Template:PAGENAMEBASE

From Pornopedia, the sexy encyclopedia
Revision as of 12:40, 24 February 2024 by Francoxamorreu (talk | contribs) (From Wikipedia. Template to use PAGENAME but without the text in parentheses)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)