Difference between revisions of "Template:Counter2"

From Geohashing
imported>Jevanyn
imported>Jevanyn
Line 5: Line 5:
 
3:{{#var:countername}}
 
3:{{#var:countername}}
 
4:{{#var:{{#var:countername}}}}
 
4:{{#var:{{#var:countername}}}}
5:{{#var:{{#var:countername}}|0}}
+
5:{{#vardefine:{{#var:countername}}|{{#expr:{{#var:{{#var:countername}}|0}}+1}}}}
6:{{#vardefine:{{#var:countername}}|{{#expr:{{#var:{{#var:countername}}|0}}+1}}}}
+
6:{{#var:{{#var:countername}}}}
7:{{#var:{{#var:countername}}}}
+
7:{{#vardefine:countername|}}
 +
8:{{#var:countername}}
 
</includeonly>
 
</includeonly>

Revision as of 16:36, 16 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.