Template:Date to Version: Difference between revisions
Appearance
ReisuDesign (talk | contribs) No edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly>{{#vardefine:nothing|''no version''}}<!-- | ||
-->{{#if:{{{1|}}}|<!-- | -->{{#if:{{{1|}}}|<!-- | ||
-->{{#vardefine:currU|{{#time:U|{{{1|}}}}}}}<!-- | -->{{#vardefine:currU|{{#time:U|{{{1|}}}}}}}<!-- | ||
-->{{#switch:1<!-- | -->{{#switch:1<!-- | ||
-->|{{#ifexpr:{{#var:currU}} < {{#time:U|2025-11- | -->|{{#ifexpr:{{#var:currU}} < {{#time:U|2025-11-07}}|1}} = {{#var:nothing}}<!-- | ||
-->|{{#ifexpr:{{#var:currU}} < {{#time:U|2025-12-02}}|1}} = Coziness Test<!-- | -->|{{#ifexpr:{{#var:currU}} < {{#time:U|2025-12-02}}|1}} = Coziness Test<!-- | ||
-->|{{#ifexpr:{{#var:currU}} < {{#time:U|2026-04-21}}|1}} = {{#var:nothing}}<!-- | |||
-->|{{#ifexpr:{{#var:currU}} < {{#time:U|2026-05-26}}|1}} = Stardrift Test<!-- | -->|{{#ifexpr:{{#var:currU}} < {{#time:U|2026-05-26}}|1}} = Stardrift Test<!-- | ||
-->|{{#ifexpr:{{#var:currU}} < {{#time:U|2026-09-20}}|1}} = {{#var:nothing}}<!-- | |||
-->|#default = Final Beta Test<!-- | -->|#default = Final Beta Test<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude> | -->}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude> | ||
Revision as of 15:34, 11 September 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: no version
{{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
- {{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 |