Template:RightbracesN

{{subst:#ifexpr:{{{1}}}>0 |{{subst:subst1}}rightbracesN{{subst:pipe1}}{{subst:#expr:{{{1}}}-1}}{{subst:rightbraces1}} |{{subst:rightbraces1}} }}

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