Jump to content

Template:MultiReplace/testcases

From Wikipedia, the free encyclopedia

Template transclusion

[edit]
No input
{{MultiReplace}}
{{MultiReplace}} {{{1}}}
{{MultiReplace/sandbox}} {{{1}}}
Empty input
{{MultiReplace|}}
{{MultiReplace}}
{{MultiReplace/sandbox}}
One replacement twice
{{MultiReplace|i|I|1=input=tupni}}
{{MultiReplace}} Input=tupnI
{{MultiReplace/sandbox}} Input=tupnI
Two replacements once
{{MultiReplace|input|i|I|t|T}}
{{MultiReplace}} InpuT
{{MultiReplace/sandbox}} InpuT
Unpaired argument
{{MultiReplace|input|i|I|t}}
{{MultiReplace}} MultiReplace: Unpaired argument: 4 = t
{{MultiReplace/sandbox}} MultiReplace: Unpaired argument: 4 = t

Module invocation

[edit]
No input
{{#invoke:MultiReplace|main}}
MultiReplace {{{1}}}
MultiReplace/sandbox {{{1}}}
Empty input
{{#invoke:MultiReplace|main|}}
MultiReplace
MultiReplace/sandbox
One replacement twice
{{#invoke:MultiReplace|main|1=input=tupni|2=i|3=I}}
MultiReplace Input=tupnI
MultiReplace/sandbox Input=tupnI
Two replacements once
{{#invoke:MultiReplace|main|input|i|I|t|T}}
MultiReplace InpuT
MultiReplace/sandbox InpuT
Unpaired argument
{{#invoke:MultiReplace|main|input|i|I|t}}
MultiReplace MultiReplace: Unpaired argument: 4 = t
MultiReplace/sandbox MultiReplace: Unpaired argument: 4 = t