Modèle:End date

De Wiki Electrolab
Révision datée du 1 mai 2023 à 11:30 par Electrolab (discussion | contributions) (Page créée avec « <includeonly>{{#if: {{{4|}}} |{{#if: {{{5|}}} |{{padleft:{{{4}}}|2|0}}:{{padleft:{{{5}}}|2|0}}{{#if: {{{6|}}} |:{{padleft:{{{6}}}|2|0}} }}, }} }}<!--ABOVE FOR TIME; BELOW FOR DATE -->{{#if: {{{1|}}} |{{#if: {{{2|}}} |{{#if: {{{3|}}} |{{#if:{{{df|}}}|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},}} {{{1}}}|{{MONTHNAME|{{{2}}}}}... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Template documentation[view][edit][history][purge]
This documentation is transcluded from Modèle:End date/doc. Changes can be proposed in the talk page.

Usage

This template ({{End date}}) returns a date, or date-time. It also include the same date (and time) duplicated in a hidden (by CSS) ISO date format, for use inside other templates which emit Wikipedia-logo-v2.svg microformats. It should not be used outside such templates. The hidden date degrades gracefully when CSS is not available.

Syntax

{{End date|year|month|day}}

Examples:

  • {{End date|1993|2|24}} -→ "February 24, 1993 (1993-02-24)"
  • {{End date|1993|2|24|08|30}} → "08:30, February 24, 1993 (1993-02-24T08:30)"

An optional parameter, df, can be set to "y" or "yes" (or indeed any value) to display the day before the month. This is primarily used in articles about events in parts of the world where the day precedes the month in a date.

Examples:

  • {{End date|1993|2|24}} → "24 February 1993 (1993-02-24)"


Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.