Template:Date to Version: Difference between revisions
Appearance
m adding the newest version (similar to other hoyo wikis) |
No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly | <includeonly>{{#if:{{{1|}}}|<!-- | ||
-->{{#vardefine:currU|{{#time:U|{{{1|}}}}}}}<!-- | -->{{#vardefine:currU|{{#time:U|{{{1|}}}}}}}<!-- | ||
-->{{#switch:1<!-- | -->{{#switch:1<!-- | ||
-->|{{#ifexpr:{{#var:currU}} < {{#time:U|2025-11-07}}|1}} = 0.0<!-- | -->|{{#ifexpr:{{#var:currU}} < {{#time:U|2025-11-07}}|1}} = 0.0<!-- | ||
-->|{{#ifexpr:{{#var:currU}} < {{#time:U|2026-04-21}}|1}} = | -->|{{#ifexpr:{{#var:currU}} < {{#time:U|2025-12-02}}|1}} = Coziness Test<!-- | ||
-->|#default = | -->|{{#ifexpr:{{#var:currU}} < {{#time:U|2026-04-21}}|1}} = 0.0<!-- | ||
-->|{{#ifexpr:{{#var:currU}} < {{#time:U|2026-05-26}}|1}} = Stardrift Test<!-- | |||
-->|{{#ifexpr:{{#var:currU}} < {{#time:U|2026-09-20}}|1}} = 0.0<!-- | |||
-->|{{#ifexpr:{{#var:currU}} < {{#time:U|2026-10-20}}|1}} = Final Beta Test<!-- | |||
-->|#default = 0.0<!-- | |||
-->}}<!-- | -->}}<!-- | ||
-->}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude> | -->}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude> | ||
Latest revision as of 10:38, 22 October 2026
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Template that returns the Version running during the date.
Syntax
[edit source]{{Date to Version|date}}
Examples
[edit source]{{Date to Version}} yields:
{{Date to Version|2022-11-28}} yields: 0.0
{{Date to Version|April 21, 2026}} yields: Stardrift Test
{{Date to Version|November 07, 2025}} yields: Coziness Test
{{Date to Version|Sep 21 2026}} yields: Final Beta Test
See Also
[edit source]- {{CurrentVersion}}
- {{Version to Date}}
- {{Version to Sort}}
Template Data
[edit source]Returns the Version running during the date.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Date to input. | Date | required |