Template:PAGENAMEBASE/doc

From Weezerpedia

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 Scott & Rivers (album) returns Scott & Rivers

on Weezer (The Blue Album) (Super Deluxe Edition) returns Weezer (The Blue Album)
on "The Greatest Man That Ever Lived (Variations on a Shaker Hymn)" returns "The Greatest Man That Ever Lived"
on Hash Pipe (US Retail CD/US Retail 7" (Black Vinyl)) returns Hash Pipe

Can also pass an optional page parameter:

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

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