Template:Trim quotes
模板文档
This template trims matched pairs of leading and trailing single (') and double (") quotes and whitespace from a string. The string should be passed as the first unnamed parameter or using |1=
or |s=
if your string contains any =
signs.
參數及使用方法编辑
{{trim quotes|text}}
= text with any leading or trailing quotes removed (as long as text doesn't contain any =
signs).
{{trim quotes|1=text}}
or {{trim quotes|s=text}}
= text with any leading or trailing square brackets removed.
範例编辑
- <code>
{{trim quotes|1= 'abc' }}
</code> producesabc
.
- <code>
{{trim quotes|1= ""abc's""}}
</code> producesabc's
- <code>
{{trim quotes|1= This is a "quote"}}
</code> producesThis is a "quote"
(since the quotes aren't at the beginning and end of the string)
模板編輯說明编辑
The template trims matched pairs of leading and trailing single and double quotes from a string.
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
String | 1 | The string to be trimmed | 字符串 | 必需 |
參見编辑
- {{trim}}
|
🔥 Top keywords: Baike: 首页Special:搜索毛泽东家族榮耀之繼承者天之驕女鐵拳英雄九龍城寨之圍城黃循財背着善宰跑篠崎泫妮妃雅新生 (网络剧)劉偉健斯洛伐克习近平劉俊謙 (香港)李显龙歌手2024佛誕淚之女王2024年泰國羽球公開賽新加坡總理邊佑錫新加坡Energy (組合)庆余年九龍寨城六四事件家族榮耀金智媛彌助菲律宾胖猫跳江事件劉寶傑DAY6林峯張文傑李光耀神耆小子張鳳妮黃世聰Seventeen (組合)维基百科願榮光歸香港中華民國鬼滅之刃 柱訓練篇2024年英雄联盟季中邀请赛中华人民共和国TripleS金秀賢 (男演員)罗伯特·菲佐井柏然2024年世界女排联赛黃偉哲怪獸8號佘詩曼Foodpanda金惠奫新加坡总统香緹·摩爾于北辰 (1968年)王嘉爾笑看風雲排球少年!!角色列表林飛帆郭葦昀馴鹿寶貝翁靜晶猩球崛起:王國誕生ILLIT尼古拉·約基奇春色寄情人周殷廷鬼滅之刃排球少年!!吳釗燮逆天奇案2不夠善良的我們BABYMONSTER李正皓尚达曼BOYNEXTDOOR胡子彤IVE (組合)陳靜 (香港)香港吴作栋黃道十二宮凡希亚·奥伊亚胡宇威長洲太平清醮張員瑛搜查班長1958伍允龍习明泽黄岩岛賴清德偶然遇見的你虽然不是英雄