{{subst:{{{1}}}x|{{subst:substifx}}}}{{{2}}}{{subst:{{{1}}}x|{{subst:rightbraces}}}}

Substituting this template produces one or more new substitution template calls, allowing recursive change of a page, see m:Help:Recursive conversion of wikitext.