Template:Bubble sort a 5/1
{{subst:subst}}bubble sort a 5/2|{{subst:#ifexpr:{{{1}}}<{{{2}}}|{{{1}}}{{subst:pipe1}}{{{2}}}{{subst:pipe1}}{{{3}}}{{subst:pipe1}}{{{4}}}{{subst:pipe1}}{{{5}}}|{{{2}}}{{subst:pipe1}}{{{1}}}{{subst:pipe1}}{{{3}}}{{subst:pipe1}}{{{4}}}{{subst:pipe1}}{{{5}}}}}{{subst:rightbraces}}
{{{1}}},{{{2}}},{{{3}}},{{{4}}},{{{5}}}
- Substituting this template produces one or more new substitution template calls, allowing recursive change of a page, see m:Help:Recursive conversion of wikitext.