Template:Date to Version: Difference between revisions
Appearance
ReisuDesign (talk | contribs) Created page with "<includeonly><!-- -->{{#if:{{{1|}}}|<!-- -->{{#vardefine:currU|{{#time:U|{{{1|}}}}}}}<!-- -->{{#switch:1<!--|{{#ifexpr:{{#var:currU}} < {{#time:U|2025-11-07}}|1}} = 0.83.5<!-- -->|#default = Coziness Test<!-- -->}}<!-- -->}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude>" |
m adding the newest version (similar to other hoyo wikis) |
||
| Line 2: | Line 2: | ||
-->{{#if:{{{1|}}}|<!-- | -->{{#if:{{{1|}}}|<!-- | ||
-->{{#vardefine:currU|{{#time:U|{{{1|}}}}}}}<!-- | -->{{#vardefine:currU|{{#time:U|{{{1|}}}}}}}<!-- | ||
-->{{#switch:1<!--|{{#ifexpr:{{#var:currU}} < {{#time:U|2025-11-07}}|1}} = 0. | -->{{#switch:1<!-- | ||
-->|#default = | -->|{{#ifexpr:{{#var:currU}} < {{#time:U|2025-11-07}}|1}} = 0.0<!-- | ||
-->|{{#ifexpr:{{#var:currU}} < {{#time:U|2026-04-21}}|1}} = Coziness Test<!-- | |||
-->|#default = Stardrift Test<!-- | |||
-->}}<!-- | -->}}<!-- | ||
-->}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude> | -->}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude> | ||
Revision as of 09:58, 6 April 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
{{Date to Version|date}}
Examples
{{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: Stardrift Test
See Also
- {{CurrentVersion}}
- {{Version to Date}}
- {{Version to Sort}}
Template Data
Returns the Version running during the date.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Date to input. | Date | required |