Template:PAGENAMEBASE
Appearance
PAGENAMEBASE
Usage
This template returns the current {{PAGENAME}} minus all (text in parentheses).
e.g. {{PAGENAMEBASE}} on page Branch (version control) returns Branch
Can also pass an optional page parameter:
{{PAGENAMEBASE|foo (bar)}}→ "foo "{{PAGENAMEBASE|foo bar}}→ "foo bar"
It is not to be confused with {{ASEPAGENAME}}, which is a magic word that strips subpages, not parentheses.
See also
| The above documentation is transcluded from Template:PAGENAMEBASE/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |