Template:Trim quotes
表示
| Luaモジュールを使用しています: |
先頭と末尾にある引用符のペアを除去するテンプレートです。
使用法
{{Trim quotes|<文章>}}
文章に=が含まれる場合は|1=<文章>か|s=<文章>のように指定します。
使用例
{{trim quotes|1= 'Play it, Sam.' }}→Play it, Sam..{{trim quotes|1= ""Jimmy's""}}→Jimmy's{{trim quotes|1= Alex said "hello"}}→Alex said "hello"- 引用符が先頭と末尾にあるものではない場合は除去しません。
{{trim quotes|1=''zut alors!''}}→zut alors!- 斜体のウィキテキストマークアップも除去します。
{{trim quotes|1='''This place is not a place of honor'''}}→This place is not a place of honor- 太字のウィキテキストマークアップも除去します。
{{trim quotes|1="fish" and "chips"}}→fish" and "chips- 引用符が先頭と末尾にあるので、(それぞれ別のペアにもかかわらず)除去されています。