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 "hel
lo"}}
→ Alex said "hello"
●引用符が先頭と末尾にあるものではない場合は除去しません。
●{{trim quotes|1=''zut alors!''}
}
→ zut alors!
●斜体のウィキテキストマークアップも除去します。
●{{trim quotes|1='''This place i
s not a place of honor'''}}
→ T
his place is not a place of hon
or
●太字のウィキテキストマークアップも除去します。
●{{trim quotes|1="fish" and "chi
ps"}}
→ fish" and "chips
●引用符が先頭と末尾にあるので、︵それぞれ別のペアにもかかわらず︶除去されています。