Template:tally time
From Homestar Runner Wiki
This template is used for tallying total time in a group of toons.
Usage:
{{ tally time | countername | number_of_seconds }}
- where countername is the name of the counter being used. This parameter is required.
- and number_of_seconds is the number of total length of the toon in seconds.
The template will do two things with this information:
- The counter countername will be incremented by number_of_seconds seconds. This counter will keep then be used to keep track of the total number of seconds for all toons in the group.
- The value number_of_seconds will be converted to "hh:mm:ss" format using the {{format seconds}} template.
IMPORTANT:
Please be sure to first reset each counter to zero before making any calls to this template! The {{hresetcount}} template can faciliate this:
{{hresetcount | countername | v=1 | countby=1}}
- Note that the
v=1
parameter is mandatory! According to the HRWiki:Counter documentation, the counter is set to the initial value minus the increment. - Although optional, we use
countby=1
to explicitly set the increment to 1 in order to reduce ambiguity. The critical part is that the counter is reset to 0, since the increment itself is never used directly by this template. - Multiple counters may be initialized using the {{hresetcount}} template. See {{hcount}} for more information.
Example:
{{hresetcount|sample_tally|v=1|countby=1}} * {{tally time|sample_tally|60}} * {{tally time|sample_tally|33}} * {{tally time|sample_tally|72}} * {{tally time|sample_tally|192}} * Total time: {{#count:sample_tally|0}} seconds / {{format seconds|{{#count:sample_tally|0}}}}
- 1:00
- 0:33
- 1:12
- 3:12
- Total time: 0 seconds / 0:00