Template:Counter

From CWCki
Revision as of 02:35, 25 July 2021 by Little Owl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 September 2024 (for the big counter). {{Counter|2024-09-23 23:00:00|big=yes}} 61
Chris last did something on 23 September 2024. {{Counter|2024-09-23 23:00:00}} 61 days
Chris last did something on 23 October 2024, and the longest streak was 15 days. {{Counter|2024-10-23 23:00:00|15}} 31 days
Chris last did something on 23 November 2024, and the longest streak was 15 days. {{Counter|2024-11-23 23:00:00|15}} 15 days
Chris last did something on 23 November 2024, and the longest streak was one day. {{Counter|2024-11-23 23:00:00|1}} 1 day
Chris last did something yesterday, and the longest streak was not recorded. {{Counter|2024-11-22 23:00:00|0}} or
{{Counter|2024-11-22 23:00:00}}
1 day
Chris last did something just now, and the longest streak was not recorded. {{Counter|2024-11-23 23:00:00|0}} or
{{Counter|2024-11-23 23:00:00}}
0 days