增加 1,058 位元組
、 2025年8月8日 (五) 22:41
{{Documentation subpage}}
<!-- 在本行下編輯模板說明 -->
{{lua|Module:String}}
{{High-use|all-pages=yes}}
== 使用 ==
此模板返回当前{{tld|PAGENAME}}减去(括号中的文本)或返回多组括号中的最后一组。
例:{{tlx|PAGENAMEBASE}}于[[IU (歌手)]]页面返回{{PAGENAMEBASE|IU (歌手)}}
:: 于[[Sweet Dreams (Are Made of This) (album)]] 返回{{PAGENAMEBASE|Sweet Dreams (Are Made of This) (album)}}
:: 于[[Sweet Dreams (Are Made of This)]] 返回{{PAGENAMEBASE|Sweet Dreams (Are Made of This)}}
:: 于[[Stadion der Freundschaft (Frankfurt (Oder))]] 返回{{PAGENAMEBASE|Stadion der Freundschaft (Frankfurt (Oder))}}
也可以传递一个可选的页面参数:
* {{tlc|PAGENAMEBASE|foo (bar)}} → "{{PAGENAMEBASE|foo (bar)}}"
* {{tlc|PAGENAMEBASE|foo bar}} → "{{PAGENAMEBASE|foo bar}}"
== 参见 ==
* [[Help:魔术字#变量]]
{{字串模板一覽|trim}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!-- Categories below this line, please; interwikis at Wikidata -->
}}</includeonly>