{{{1}}}

テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

第1引数に含まれる置換対象の文字列(第2引数)を全て別の文字列(第3引数)に置換するテンプレートです。

構文

編集

{{replace |<>|<>|<>[|count=n]}}

|count=nn|count=1{{Str rep}}使

使用例

編集
  • {{replace |One two two three two four twotwo five |two |NINE}} → One NINE NINE three NINE four NINENINE five
  • {{replace |One two two three two four twotwo five |two |NINE |count=2}} → One NINE NINE three two four twotwo five