跳至內容

模板:ICounter/testcases

維基百科,自由的百科全書
{{iCounter|new|A}} $VAR_DEF counter.name=A ;
{{iCounter|new|B}} $VAR_DEF counter.name=B ;
{{iCounter|name|C}} → 0
{{iCounter|A|++}}
{{iCounter|get|A}} → 1
{{iCounter|get|B}} → 0
{{iCounter|name|C}} → 1
{{iCounter|A|++}}
{{iCounter|B|32}}
{{iCounter}}
{{iCounter|get|A}} → 2
{{iCounter|get|B}} → 32
{{iCounter|name|C|noecho=true}}
{{iCounter|name|C}} → 3