Skabelon:Date

Fra IntactiWiki
Version fra 13. dec 2019, 13:34 af WikiAdmin (diskussion | bidrag) WikiAdmin (diskussion | bidrag) (Oprettede siden med "<includeonly>{{#switch:{{#invoke:String|len|s={{{1}}}}} |0 |1 |2 = |3 |4 |5 = {{#time:Y|{{{1}}} }} |6 |7 |8 = {{#time:F Y|{{{1}}} }} |9 |10 = {{#time:j F Y|{{{1}}} }} |...")
(forskel) ←Ældre version | Nuværende version (forskel) | Nyere version→ (forskel)
Spring til navigation Spring til søgning

Usage

In templates, please use the YYYY-MM-DD format (e.g. 2001-05-01 or 2018-12-28. In article texts, please use the DD MMMM YYYY format (e.g. 1 May 2001 or 24 December 2018). You may even use the template in article texts outside templates, like this:

* John Doe was born on {{Date|1950-07-23}}.
  • John Doe was born on 23 juli 1950.

Examples

{{Date|}}
{{Date|999}}
{{Date|2019}}
{{Date|2019-}}
  • Fejl: Ugyldig tid
  • 2019
  • Fejl: Ugyldig tid
{{Date|2019-3}}
{{Date|2019-03}}
{{Date|2019-03-}}
{{Date|03-2019}}
  • marts 2019
  • marts 2019
  • Fejl: Ugyldig tid
  • Fejl: Ugyldig tid
{{Date|2019-12-1}}
{{Date|2019-12-24}}
{{Date|2019-12-999}}
{{Date|01-03-2019}}