Template:PAGENAMEBASE
Jump to navigation
Jump to search
PAGENAMEBASE
[edit] [ ] Template documentation
This documentation is transcluded from Template:PAGENAMEBASE/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Description
This template returns the current {{PAGENAME}}
minus (text in parentheses) or the final set of parentheses where more than one set exist.
On page | Renders as |
---|---|
Chiton (genus) |
Chiton |
Sweet Dreams (Are Made of This) (album) |
Sweet Dreams (Are Made of This) |
Sweet Dreams (Are Made of This) |
Sweet Dreams |
Stadion der Freundschaft (Frankfurt (Oder)) |
Stadion der Freundschaft |
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.
Usage
{{PAGENAMEBASE}}
{{PAGENAMEBASE|page}}
History
From wikipedia:Template:PAGENAMEBASE. #Description is adapted from wikipedia:Template:PAGENAMEBASE/doc#Usage.