Template talk:Countdown
- The following does not apply with the new preprocessor, installed on Wikimedia wikis on 24 January 2008.
{{subst:countdown|abc|7}} gives the wikitext
{{subst:#ifexpr:7>0|{{subst:countdown|abc|6}}<br>7 abc}}
which gives after another save:
1 abc
2 abc
3 abc
4 abc
5 abc
6 abc
7 abc
1 in
2 in
3 in
4 in
5 in
6 in
7 in
Compare:
- in
- in
- in
- in
- in
- in
- in
- | - | - | - | - | - | - | abc |
{ {subst:countdown | - | 7}}}} |
{{subst:#if:1|{{subst:#if:1|{{subst:#if:1|{{subst:#if:1|{{subst:#if:1|{{subst:#if:1|{{subst:#if:1| {{subst:countdown|{{subst:pipe7}}|7}} }}}}}}}}}}}}}} or {{subst:#if:1|{{subst:iterate|7|{{subst:countdown|{{subst:pipe8}}|7}}}}}} or {{subst:#if:1|{{subst:iterate|7|{{subst:countdown|{{subst:pipeN|7}}|7}}}}}}
giving the wikitext
<br>1 |<br>2 |<br>3 |<br>4 |<br>5 |<br>6 |<br>7 | in one save.
See also
editGeneral repetition templates:
- Template:Tbl - table output after call, hence in backward order
- Template:Tblb - table output before call, hence in forward order
- Template:Countdown - repetition of constant, counting down but displayed in backward order, so the numbering increases downward