Difference between revisions of "Template:Counter"
From Geohashing
imported>Jevanyn |
imported>Jevanyn |
||
Line 14: | Line 14: | ||
{{#var:countername}} | {{#var:countername}} | ||
<br> | <br> | ||
− | {{#var:hellospace}} | + | a{{#var:hellospace}}b |
− | {{#vardefine:hellospace}} | + | {{#vardefine:hellospace|1}} |
− | {{#var:hellospace}} | + | a{{#var:hellospace}}b |
<br> | <br> | ||
{{#vardefine:countername|counterx{{{1}}}}} | {{#vardefine:countername|counterx{{{1}}}}} |
Revision as of 20:09, 17 March 2015
This is a test template, to make something that can count the number of times it can be included on a page. Ultimately I'll be using it on this wiki as well as Wikipedia.
hello world
hello moon
hello moon
yes moon
no star
counter
ab
a1b
{{#var:counterx_{{{1}}}|#var:counterx_{{{1}}}={{#expr:{{#if#var:counterx_{{{1}}}+1|#var:counterx_{{{1}}}=1}}