Difference between revisions of "Template:Ticks/gametime"
Jump to navigation
Jump to search
(Created template.) |
(Fixed conversion thresholds) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifexpr: {{formatnum:{{{1|}}}|R}} < | + | <includeonly>{{#ifexpr: {{formatnum:{{{1|}}}|R}} < 120000 <!-- 2,500 * 48 --> |
| {{ticks/gametime/hours | {{{1|}}} }} | | {{ticks/gametime/hours | {{{1|}}} }} | ||
− | | {{#ifexpr: {{formatnum:{{{1|}}}|R}} < | + | | {{#ifexpr: {{formatnum:{{{1|}}}|R}} < 1800000 <!-- 60,000 * 30 --> |
| {{ticks/gametime/days | {{{1|}}} }} | | {{ticks/gametime/days | {{{1|}}} }} | ||
− | | {{#ifexpr: {{formatnum:{{{1|}}}|R}} < | + | | {{#ifexpr: {{formatnum:{{{1|}}}|R}} < 7200000 <!-- 90,000 * 8 --> |
| {{ticks/gametime/quadrums | {{{1|}}} }} | | {{ticks/gametime/quadrums | {{{1|}}} }} | ||
| {{ticks/gametime/years | {{{1|}}} }} | | {{ticks/gametime/years | {{{1|}}} }} |
Latest revision as of 01:11, 11 November 2022
Convert ticks to a human readable amount of in-game time in either hours, days, quadrums, or years, depending on the value given.
Usage[edit]
- Specify the time in ticks
- In-game time is automatically calculated and added after the time in ticks.
{{ticks/gametime|time in ticks}}
Examples[edit]
1,000 ticks (0.4 in-game hours)
5,000 ticks (2 in-game hours)
10,000 ticks (4 in-game hours)
50,000 ticks (20 in-game hours)
100,000 ticks (40 in-game hours)
500,000 ticks (8.33 in-game days)
1,000,000 ticks (16.67 in-game days)
5,000,000 ticks (5.56 quadrums)
10,000,000 ticks (2.78 years)
Choosing Specific Time Periods[edit]
If you want to show a specific amount of time for better precision, use the sub-templates below:
The above documentation is transcluded from Template:Ticks/gametime/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |