Difference between revisions of "Template:Time/doc"
From Captain of Industry Wiki
Thadius856 (talk | contribs) (Creation) |
(Added an parameter: icononly) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 12: | Line 12: | ||
;Usage | ;Usage | ||
:To output | :To output just a length of time and nothing else. | ||
{{markup| | {{markup| | ||
<nowiki>{{Time|40}}</nowiki>| | <nowiki>{{Time|40}}</nowiki>| | ||
{{Time|40}}| | {{Time|40}}| | ||
<nowiki>{{Time}}</nowiki>| | <nowiki>{{Time}}</nowiki>| | ||
{{Time}}| | {{Time}}| | ||
}} | |||
:To output a rate. | |||
{{markup| | |||
<nowiki>{{Time|40|20}}</nowiki>| | |||
{{Time|40|20}}| | |||
<nowiki>20 {{Time}}</nowiki>| | <nowiki>20 {{Time}}</nowiki>| | ||
20 {{Time}} | 20 {{Time}} | ||
Line 38: | Line 42: | ||
<nowiki>{{Time|30|60|per60=y}}</nowiki>| | <nowiki>{{Time|30|60|per60=y}}</nowiki>| | ||
{{Time|30|60|per60=y}} | {{Time|30|60|per60=y}} | ||
}} | |||
:To output just time icon. | |||
{{markup| | |||
<nowiki>{{Time|icononly=y}}</nowiki>| | |||
{{Time|icononly=y}}| | |||
}} | }} | ||
<includeonly>[[Category:Formatting templates]]</includeonly><!-- | <includeonly>[[Category:Formatting templates]]</includeonly><!-- | ||
--><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | --><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Latest revision as of 18:13, 16 November 2022
This is a template documentation subpage for Template:Time. It contains usage information, categories, and other content that is not part of the original template page. |
- Purpose
- To provide a quick, shorthand method to refer to lengths of game time and rates of production. Additionally, to automatically do the math to convert from recipe qty/length to per 60 second formats if so desired.
- Automations
-
- Automatically highlights blue if a per-60 rate is detected (examples for disabling this feature are below)
- As requested, performs the math to convert to a per-60 second rate and display it already marked up.
- Limitations
- When an automatic version to a per-60 second rate is performed, the number of digits to round is fixed at 2. For integer results, they are not displayed.
- Usage
- To output just a length of time and nothing else.
Markup | Renders as |
---|---|
{{Time|40}} |
|
{{Time}} |
|
- To output a rate.
Markup | Renders as |
---|---|
{{Time|40|20}} |
|
20 {{Time}} |
|
- To output with 60 highlighting, but no conversion.
Markup | Renders as |
---|---|
{{Time|60}} |
|
{{Time|40|60}} |
|
- To output with 60 highlighting and per-60 conversion (ignored when already per-60).
Markup | Renders as |
---|---|
{{Time|40|20|per60=y}} |
|
{{Time|30|60|per60=y}} |
|
- To output just time icon.
Markup | Renders as |
---|---|
{{Time|icononly=y}} |
|