Template:Counter

From CWCki
Jump to navigation Jump to search

This template automates the big counter and the previous streak: 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 23 August 2021 (for the big counter). {{Counter|2021-08-23 05:00:00|big=yes}} 61
Chris last did something on 23 August 2021. {{Counter|2021-08-23 05:00:00}} 61 days
Chris last did something on 23 September 2021, and the longest streak was 15 days. {{Counter|2021-09-23 05:00:00|15}} 30 days
Chris last did something on 23 October 2021, and the longest streak was 15 days. {{Counter|2021-10-23 05:00:00|15}} 15 days
Chris last did something on 23 October 2021, and the longest streak was one day. {{Counter|2021-10-23 05:00:00|1}} 1 day
Chris last did something yesterday, and the longest streak was not recorded. {{Counter|2021-10-22 05:00:00|0}} or
{{Counter|2021-10-22 05:00:00}}
1 day
Chris last did something just now, and the longest streak was not recorded. {{Counter|2021-10-23 05:00:00|0}} or
{{Counter|2021-10-23 05:00:00}}
0 days