Difference between revisions of "Template:Counter"
From Geohashing
imported>Jevanyn |
imported>Jevanyn |
||
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}}}}} | {{#vardefine:countername|counterx{{{1}}}}} | ||
{{#if:{{#var:{{#var:countername}}}} | {{#if:{{#var:{{#var:countername}}}} | ||
Line 26: | Line 7: | ||
}} | }} | ||
{{#var:{{#var:countername}}}} | {{#var:{{#var:countername}}}} | ||
+ | {{#vardefine:countername|}} | ||
</includeonly> | </includeonly> |
Revision as of 20:16, 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.