Template:PAGENAMEBASE
PAGENAMEBASE
This template is used on 38,000+ pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before changing this template. |
This template uses Lua: |
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 Chiton (genus) returns Chiton
- on Sweet Dreams (Are Made of This) (album) returns Sweet Dreams (Are Made of This)
- on Sweet Dreams (Are Made of This) returns Sweet Dreams
- on Stadion der Freundschaft (Frankfurt (Oder)) returns 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.
See also
🔥 Top keywords: Main PageSpecial:SearchXXXTentacionList of UEFA European Championship finalsWikipedia:AboutHelp:ContentsHelp:IntroductionBlackList of U.S. statesList of people who have walked on the MoonHelp:IPA/EnglishSpecial:RecentChangesList of U.S. states and territories by time zone24-hour clockList of Stanley Cup championsGareth SouthgateTom KaulitzWikipedia:Simple English WiktionaryQueen (band)Bismillahir Rahmanir RaheemHelp:Authority controlMurder of Junko FurutaUnited StatesGolden EdgeList of countries by areaList of countries by continentsTrolls Band TogetherList of countriesSupreme Court of the United StatesPitch, yaw, and rollUmro Ayyar - A New BeginningCristiano RonaldoList of 100 greatest NHL players by The Hockey News0Adolf Hitler UunonaJulian AssangeKnights of the Round TableList of fruitsList of countries and dependencies by population density