Difference between revisions of "Template:Counter"

From Geohashing
imported>Jevanyn
(Created page with "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. {{if...")
 
imported>Jevanyn
Line 1: Line 1:
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>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>
{{if{{#var:counter_{{{1}}}|#var:counter_{{{1}}}=#var:counter_{{{1}}}+1|#var:counter_{{{1}}}=1}}{{#var:counter_{{{1}}} }}
+
<includeonly>{{#var:hello_world|hello world}}
 
+
{{#var:counterx_{{{1}}}|#var:counterx_{{{1}}}={{#expr:{{#if#var:counterx_{{{1}}}+1|#var:counterx_{{{1}}}=1}}{{#var:counterx_{{{1}}} }}</includeonly>
{{counter|first}}
 
{{counter|first}}
 
{{counter|first}}
 
{{counter|first}}
 
{{counter|second}}
 
{{counter|first}}
 

Revision as of 12:42, 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.