User:Ferretwings/Sandbox/Template

ex

ex

{{#while: }} r{{#var:result}}rn{{#var:n}}np{{#var:p}}p
 * {{#ifexpr:{{#var:n}}<9|true}}
 * {{#vardefine:n|{{#if:{{#vardefine:p|{{#pos:{{#var:result}}|{{#var:n}}}}}}{{#var:p}}|9|{{#expr:{{#var:n}}+1}}}}