模板:PAGENAMEBASE:修订间差异
外观
小无编辑摘要 |
小无编辑摘要 |
||
| 第1行: | 第1行: | ||
{{{{{|safesubst:}}}#Invoke:String|replace|{{{1|{{{{{|safesubst:}}}PAGENAME}}}}}|% | {{{{{|safesubst:}}}#Invoke:String|replace|{{{1|{{{{{|safesubst:}}}PAGENAME}}}}}|%b()$||1|false}}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
<templatedata> | <templatedata> | ||
2021年12月13日 (一) 12:00的最新版本
PAGENAMEBASE
使用
此模板返回当前PAGENAMEBASE减去(括号中的文本)或返回多组括号中的最后一组。
例:PAGENAMEBASE于IU (歌手)页面返回IU (歌手)
- 于Sweet Dreams (Are Made of This) (album) 返回Sweet Dreams (Are Made of This) (album)
- 于Sweet Dreams (Are Made of This) 返回Sweet Dreams (Are Made of This)
- 于Stadion der Freundschaft (Frankfurt (Oder)) 返回Stadion der Freundschaft (Frankfurt (Oder))
也可以传递一个可选的页面参数:
- foo (bar) → "foo (bar)"
- foo bar → "foo bar"