Template:PAGENAMEBASE
PAGENAMEBASE
![]() | Some or all text used in this template, module, or documentation has been borrowed from Wikipedia and modified for Weezerpedia. View the original text at Wikipedia:Template:PAGENAMEBASE.
This page was last edited on February 25, 2025. The version on Wikipedia may have updated since then. |
![]() | This template uses Lua: |
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.