Template:Counter
Revision as of 02:52, 25 July 2021 by Little Owl (talk | contribs) (Created page with "<includeonly>{{formatnum:{{#ifexpr:{{#expr:({{#time:U|now}}-{{#time:U|{{{1}}}}})/86400 round 0}} > {{{2|0}}}|{{#expr:({{#time:U|now}}-{{#time:U|{{{1}}}}})/86400 round 0}}|{{{2...")
This template automates the streak count: if the current streak breaks the record, this template will handle this for you.
For use in both Begging and Coping counters.
Examples
Scenario | Input | Output |
---|---|---|
Chris last did something on 19 April 2024. | {{Counter|2024-04-19 07:00:00}}
|
61 days |
Chris last did something on 19 May 2024, and the previous streak was 15 days ago. | {{Counter|2024-05-19 07:00:00|15}}
|
31 days |
Chris last did something on 19 June 2024, and the previous streak was 15 days ago. | {{Counter|2024-06-19 07:00:00|15}}
|
16 days |