Template:PAGENAMEBASE
PAGENAMEBASE
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
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 Angel Dust (porn actress) returns Angel Dust
Can also pass an optional page parameter:
{{PAGENAME|foo (bar)}}
→ "foo"{{PAGENAME|foo bar}}
→ "foo bar"
It is not to be confused with {{BASEPAGENAME}}
, which is a magic word that strips subpages, not parentheses.
See also
- {{PAGENAME}} (variant to strip anything in parentheses from the title)
- {{FULLPAGENAME}} (including namespace)
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. |