Difference between revisions of "Template:Counter2"

From Geohashing
imported>Jevanyn
imported>Jevanyn
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>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.</noinclude>
 
<noinclude>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.</noinclude>
<includeonly>
+
<includeonly>{{#vardefine:countername|counterx{{{1|default}}}}}{{#vardefine:{{#var:countername}}|{{#expr:{{#var:{{#var:countername}}|0}}+1}}}}{{#ifeq:{{{echo|}}}|value|{{#var:{{#var:countername}}}}}}{{#ifeq:{{{echo|}}}|token|{{{1|(anonymous)}}}}}</includeonly>
1:{{#var:countername}}
 
2:{{#vardefine:countername|counterx{{{1|}}}}}
 
3:{{#var:countername}}
 
4:{{#var:{{#var:countername}}}}
 
5:{{#var:{{#var:countername}}|0}}
 
6:{{#vardefine:{{#var:countername}}|{{#expr:{{#var:{{#var:countername}}|0}}+1}}}}
 
7:{{#var:{{#var:countername}}}}
 
</includeonly>
 

Latest revision as of 16:20, 20 April 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.