Template:Date: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
Line 25: Line 25:
</includeonly><noinclude>
</includeonly><noinclude>
==Usage==
==Usage==
This tewmplate parses a date of shape yyyy-mm-dd into spoken language like  
This template parses a date of shape yyyy-mm-dd into spoken language like {{date|1975-03-18}}
{{date|1975-03-18}}
===Parameters===
The template hase one obligatory unnamed parameter:
*'''1''': a date of shape yyyy-mm-dd
==Examples==
{|
|<pre>{{date|1900-01-01}}</pre>
|{{date|1900-01-01}}
|-
|<pre>{{date|2025-11-22}}</pre>
|{{date|2025-11-22}}
|-
|<pre>{{date|2019-02-31}}</pre>
|{{date|2019-02-31}} (rubbish in→rubbish out ;)
|-
|<pre>{{date|1900-01-01}}</pre>
|
|-
|<pre>{{date|1900-01-01}}</pre>
|
|-
[[category:template]]
[[category:template]]
</noinclude>
</noinclude>

Revision as of 16:08, 16 May 2019

Usage

This template parses a date of shape yyyy-mm-dd into spoken language like March 18th 1975

Parameters

The template hase one obligatory unnamed parameter:

  • 1: a date of shape yyyy-mm-dd

Examples

{{date|1900-01-01}}
January 1st 1900
{{date|2025-11-22}}
November 22nd 2025
{{date|2019-02-31}}
February 31st 2019
(rubbish in→rubbish out ;)
{{date|1900-01-01}}
{{date|1900-01-01}}