Difference between revisions of "Template:Trim suffix"
(Created page with "<noinclude>Category:辅助模板</noinclude>{{safesubst<noinclude/>:#invoke:String|replace|source={{{1|}}}|pattern=^(%s*)(.*)(%(.*%))(%s*)$|replace=%2|plain=false}}") |
|||
Line 1: | Line 1: | ||
− | <noinclude>[[Category: | + | <noinclude>{{Documentation}}[[Category:Auxiliary templates]]</noinclude>{{safesubst<noinclude/>:#invoke:String|replace|source={{{1|}}}|pattern=^(%s*)(.*)(%(.*%))(%s*)$|replace=%2|plain=false}} |
Latest revision as of 15:26, 27 September 2021
This template is used to cut off the parentheses and content at the end of the input parameters.
Related templates: {{Trim prefix}}
Example
{{Trim_suffix|Hatsune (disambiguation)}}
Hatsune
{{Trim_suffix|Shogakusei (moe point)}}
Shogakusei
{{Trim_suffix|Moegirlpe-tan}}
Moegirlpe-tan
{{Trim_suffix|Full-width brackets (example) }}
Full-width brackers
{{Trim_suffix|Text (example) text}}
Text (example) text
{{Trim_suffix|Space (example)}}
Space