PAGENAMEBASE
This template is used on 38,000+ pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before changing this template. |
This template uses Lua: |
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 Chiton (genus) returns Chiton
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.