Jump to content

Template:Date to Version: Difference between revisions

From The Petit Planet Wiki
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.83.5<!--
   -->{{#switch:1<!--
       -->|#default                                              = Coziness Test<!--
      -->|{{#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.

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

Template Data

Returns the Version running during the date.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

Date to input.

Daterequired