Template:display time

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(synchronize from sandbox development (User:Stux/template-sandbox2 and User:Stux/sandbox2))
Line 12: Line 12:
:<code><nowiki>{{ </nowiki> display time | ''countername'' [| ''display_type''] [| offset_seconds = ''seconds''] [| offset_count = ''count'']}}</code>
:<code><nowiki>{{ </nowiki> display time | ''countername'' [| ''display_type''] [| offset_seconds = ''seconds''] [| offset_count = ''count'']}}</code>
* where ''countername'' is the name of the counter being used. '''''This parameter is required.'''''   
* where ''countername'' is the name of the counter being used. '''''This parameter is required.'''''   
-
* and ''display_type'' is the type of information to be displayed. Optional. Valid values are:
+
* and ''display_type'' is the type of information to be displayed. Optional. Valid values are:
** <code>total</code> {{--}} Default.  Displays the total number of tallied seconds in ''hh:mm:ss'' format.
** <code>total</code> {{--}} Default.  Displays the total number of tallied seconds in ''hh:mm:ss'' format.
** <code>seconds</code> {{--}} Displays the total number of tallied seconds.
** <code>seconds</code> {{--}} Displays the total number of tallied seconds.
Line 18: Line 18:
** <code>average_seconds</code> {{--}} Displays the average time per toon in seconds.
** <code>average_seconds</code> {{--}} Displays the average time per toon in seconds.
** <code>count</code> {{--}} Displays the total number of entries.
** <code>count</code> {{--}} Displays the total number of entries.
-
* The (Optional) parameter <code>offset_seconds =</code> temporarily offsets the total number of seconds by the ''seconds'' value passed to this parameter. The total itself remains unaffected, only the calculated display values are affectedThis value defaults to zero(0) when the parameter is not defined.
+
* The (Optional) parameter <code>offset_seconds =</code> temporarily offsets the total number of seconds by the ''seconds'' value passed to this parameter. The total itself remains unaffected; only the calculated display values are affected. This value defaults to zero(0) when the parameter is not defined.
-
* The (Optional) parameter <code>offset_count =</code> temporarily offsets the total count of toons by the ''count'' value passed to this parameter. The total itself remains unaffected, only the calculated display values are affectedThis value defaults to zero(0) when the parameter is not defined.
+
* The (Optional) parameter <code>offset_count =</code> temporarily offsets the total count of toons by the ''count'' value passed to this parameter. The total itself remains unaffected; only the calculated display values are affected. This value defaults to zero(0) when the parameter is not defined.

Revision as of 23:49, 6 January 2025

0:00 This template is used for displaying tally totals in a group of toons.

Usage:

{{ display time | countername [| display_type] [| offset_seconds = seconds] [| offset_count = count]}}
  • where countername is the name of the counter being used. This parameter is required.
  • and display_type is the type of information to be displayed. Optional. Valid values are:
    • total — Default. Displays the total number of tallied seconds in hh:mm:ss format.
    • seconds — Displays the total number of tallied seconds.
    • average — Displays the average time per toon in hh:mm:ss format.
    • average_seconds — Displays the average time per toon in seconds.
    • count — Displays the total number of entries.
  • The (Optional) parameter offset_seconds = temporarily offsets the total number of seconds by the seconds value passed to this parameter. The total itself remains unaffected; only the calculated display values are affected. This value defaults to zero(0) when the parameter is not defined.
  • The (Optional) parameter offset_count = temporarily offsets the total count of toons by the count value passed to this parameter. The total itself remains unaffected; only the calculated display values are affected. This value defaults to zero(0) when the parameter is not defined.


Personal tools