Template:ICounter/doc
Parameters
new
: change object- First, you should declare a counter object by using
{{iCounter|new|<name>}}
.- This is the method to change the current anonymous counter. You can use this method to access or set a counter quickly.
- First, you should declare a counter object by using
reset
: clear- You can initialize a counter by using
{{iCounter|<name>|0}}
.- To clear an anonymous counter, use
{{iCounter|reset}}
or{{iCounter|0}}
.
- To clear an anonymous counter, use
- You can initialize a counter by using
++
,--
: count- You can use
{{iCounter|<name>|++}}{{iCounter|<name>|--}}
to increase or decrease a counter.- To increase or decrease an anonymous counter, use
{{iCounter|++}}{{iCounter|--}}
.
- To increase or decrease an anonymous counter, use
- You can use
<number>
: assignment- You can directly assign the counter like
{{iCounter|<name>|66}}
.- To assign an anonymous counter, you can type like
{{iCounter|66}}
.
- To assign an anonymous counter, you can type like
- You can directly assign the counter like
get
,count
: get the value- You can get the value of a counter by using
{{iCounter|count|<name>}}
or{{iCounter|get|<name>}}
.- To get the value of an anonymous counter, use
{{iCounter|count}}
or{{iCounter|get}}
。
- To get the value of an anonymous counter, use
- You can get the value of a counter by using