Jump to content

Template:Version to Date: Difference between revisions

From The Petit Planet Wiki
ReisuDesign (talk | contribs)
Created page with "<includeonly><!-- -->{{#if:{{{1|}}}|<!-- -->{{#vardefine:date|<!-- -->{{#switch:{{{1|}}}<!-- -->|Coziness Test = 2025-11-07<!-- 1st Beta -->|#default = <!-- -->}}<!-- -->}}<!-- -->{{#if:{{#var:date}}|<!-- -->{{#if:{{{format|}}}<!-- -->|{{#time:{{{format|}}}|{{#var:date}}}}<!-- -->|{{#var:date}}<!-- -->}}<!-- -->}}<!-- -->}}</includeonly><noinclude>{{Documentation|type=Data}}</noinclude>"
 
ReisuDesign (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
       -->{{#switch:{{{1|}}}<!--
       -->{{#switch:{{{1|}}}<!--
         -->|Coziness Test  = 2025-11-07<!-- 1st Beta
         -->|Coziness Test  = 2025-11-07<!-- 1st Beta
        -->|Stardrift Test  = 2026-04-21<!-- 2nd Beta
        -->|Final Beta Test  = 2026-09-20<!-- 3rd Beta
         -->|#default = <!--
         -->|#default = <!--
       -->}}<!--
       -->}}<!--

Latest revision as of 15:35, 11 September 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.

Template that returns the start date of the Version.

Syntax

[edit source]

{{Version to Date|version number}}

Examples

[edit source]

{{Version to Date}} yields:
{{Version to Date|Coziness Test}} yields: 2025-11-07
{{Version to Date|Stardrift Test}} yields: 2026-04-21

See Also

[edit source]

Template Data

[edit source]

Returns the start date of the Version.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Version1

Version number

Example
3.5
Numbersuggested
Formatformat

Format of returned date, as used in the #time parser function

Example
d M, Y
Stringoptional