Template:PAGENAMEBASE
Sarna News
![Sarna.net News: Bad 'Mechs - Thresher Mk II](http://cfw.sarna.net/news/wp-content/uploads/2025/01/BM_ThresherMKII_fin-300x210.jpg)
- Bad 'Mechs - Thresher Mk II
- HEXTECH Wave 9 Review - Winding Rivers, Tall Walls, and Underground Tunnels
- Hired Steel and Making MechWarrior 5: Clans Cinematics with Constantin & Bernhard of TMC
- Your BattleTech News Round-Up For December, 2024
- Community Outreach - Caterwauling On CamoSpecs With Matt "00Dawg" Frederiksen
- Read more →
PAGENAMEBASE
This template uses Lua: |
Usage[edit]
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 Chiton (genus) returns w:Chiton
- on Sweet Dreams (Are Made of This) (album) returns w:Sweet Dreams (Are Made of This)
- on Sweet Dreams (Are Made of This) returns w:Sweet Dreams
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.
See also[edit]
- Help:Magic words#Variables
- String-handling templates
- {{PAGENAME}} (variant to strip anything in parentheses from the title)
- {{FULLPAGENAME}} (including namespace)
- {{Link without disambiguator}}