Template:Replicate+0/generate

{{subst:subst}}#ifexpr:{{{n}}}>1 |{{subst:subst}}Replicate+0/generate{{subst:pipe}}n={{subst:#expr:{{{n}}}-1}} {{subst:rightbraces}}}}{{subst:pipe}}{{subst:lefttriplebraces}}{{{n}}}{{subst:righttriplebraces}}

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