Template:PAGENAMEBASE: Difference between revisions
Jump to navigation
Jump to search
imported>Fire ページの作成:「{{{{{|safesubst:}}}#Invoke:String|replace|{{{1|{{{{{|safesubst:}}}PAGENAME}}}}}|%s+%b()$||1|false}}<noinclude> {{documentation}} </noinclude>」 |
(No difference)
|
Latest revision as of 14:37, 13 March 2021
PAGENAMEBASE
| この記事は、クリエイティブ・コモンズ・表示・継承ライセンス3.0のもとで公表されたウィキペディアの項目Template:PAGENAMEBASEを素材として二次利用しています。 Lua error in Module:Itemnumber at line 91: attempt to concatenate local 'qid' (a nil value). |
| LuaModuleを使用しています: |
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.