Template:tally time

From Homestar Runner Wiki

Revision as of 00:56, 2 January 2025 by Stux (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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|60}}
* {{tally time|33}}
* {{tally time|72}}
* {{tally time|192}}

* Total time: {{format seconds|{{#var:sample_tally}}}}


  • Expression error: Unrecognised punctuation character "{" _0 Expression error: Unrecognised punctuation character "{"Expression error: Unrecognised punctuation character "{":Expression error: Unrecognised punctuation character "{"Expression error: Unrecognised punctuation character "{" 1
  • Expression error: Unrecognised punctuation character "{" _0 Expression error: Unrecognised punctuation character "{"Expression error: Unrecognised punctuation character "{":Expression error: Unrecognised punctuation character "{"Expression error: Unrecognised punctuation character "{" 1
  • Expression error: Unrecognised punctuation character "{" _0 Expression error: Unrecognised punctuation character "{"Expression error: Unrecognised punctuation character "{":Expression error: Unrecognised punctuation character "{"Expression error: Unrecognised punctuation character "{" 1
  • Expression error: Unrecognised punctuation character "{" _0 Expression error: Unrecognised punctuation character "{"Expression error: Unrecognised punctuation character "{":Expression error: Unrecognised punctuation character "{"Expression error: Unrecognised punctuation character "{" 1
  • Total time: seconds / Expression error: Unexpected >= operatorExpression error: Unexpected mod operator:Expression error: Unexpected mod operatorExpression error: Unexpected mod operator

See Also

Personal tools