Template:PAGENAMEBASE
Appearance
{{
- switch:
01| 10 = PAGENAMEBASE| 11 = Template:'''' E
![]() | 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: |
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 Chiton (genus) returns {{
- switch:
01| 10 = PAGENAMEBASE| 11 = Template:'''' E
- on Sweet Dreams (Are Made of This) (album) returns {{
- switch:
01| 10 = PAGENAMEBASE| 11 = Template:'''' E
- on Sweet Dreams (Are Made of This) returns {{
- switch:
01| 10 = PAGENAMEBASE| 11 = Template:'''' E
- on Stadion der Freundschaft (Frankfurt (Oder)) returns {{
- switch:
01| 10 = PAGENAMEBASE| 11 = Template:'''' E
Can also pass an optional page parameter:
{{PAGENAMEBASE|foo (bar)}}
→ "{{
- switch:
01| 10 = PAGENAMEBASE| 11 = Template:'''' E"
{{PAGENAMEBASE|foo bar}}
→ "{{
- switch:
01| 10 = PAGENAMEBASE| 11 = Template:'''' E"
It is not to be confused with {{BASEPAGENAME}}
, which is a magic word that strips subpages, not parentheses.