Jump to content

Template:Replicate+0

From Wikiversity

Still trying to make it work...I tried to make the string grow by one, but can't make it work- the number of arguments in this very template is fixed; if we try to do it at the target page, we run into self transclusion, which is prohibited by the parser

{{subst:replicate+0/ing|name={{{name}}}|n={{{n}}}{{subst:subst}}replicate A/ing|n={{{n}}}|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}|{{{15}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}|{{{20}}}{{subst:rightbraces}}


{{subst:#ifexpr:{{{n}}}>0|{{subst:Replicate+0/generate |n={{{n}}}}}}}{{subst:lefttriplebraces}}{{{n}}}{{subst:righttriplebraces}}