"{{{{{1}}}|{{{2}}}}}" (using [[Template:{{{1}}}]] containing "{{msgnw:{{{1}}}}}") gives "{{{{{1}}}|{{{3}}}}}".