Template:PAGENAMEBASE/doc
Jump to navigation
Jump to search
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.