Template:PAGENAMEBASE/doc
Appearance
| This is a documentation subpage for Template:PAGENAMEBASE. It contains usage information, categories and other content that is not part of the original template page. |
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