ISOdate/doc

Da Conti e principi di Porcia e Brugnera.
(questa parte di documentazione è disponibile solo in alcune lingue)
For a calendar date in ISO 8601 extended format in the form YYYY-MM-DD (e.g. "2026-11-22"), with or without time, this template extracts the year, month, day and time, and calls {{date}} with the year, month and day found to display the date in localised format, with the time, if specified, appended. It provides the convenience of passing on a date (or even a date and a time) from one template to another as a single parameter, even though {{date}} eventually needs the date components separately. This template overcomes some flaws of the automatic conversion by {{#time: }} for non-full dates (e.g. "77-09" for September 77 AD, which would throw an error with {{#time: }}).

Uso

{{ISOdate|1=|class=}}

Parametri

Nome del Parametro Descrizione(questa parte di documentazione è disponibile solo in alcune lingue) Valore di Default Richiesto o Opzionale?

parametro #1 (1) Any proleptic Gregorian calendar or Gregorian calendar date between 1 January 1 AD and 31 December 9999 AD. Dates BC are not yet supported. Also incomplete dates are allowed: just the year or the year and the month. A year has to be written in full, without leading zeros. Optionally it is followed by a dash and a 2-digit month number; optionally this is followed by a dash and a 2-digit day number; optionally this is followed by the time. vuoto richiesto
parametro #2 (2) language code (only needs to be provided if the language shall be fixed and independent from the user's preferences) language code of the user language opzionale
form allows to specify grammatical case for the month, for languages that use them. Possible cases: vuoto opzionale
debug Setting "debug=1" helps with debugging vuoto opzionale
class allows to set the html class of the time node where the date is included. This is useful for microformats. The default value is, for legacy reasons, "dtstart" (used by hCalendar). See the microformats project. dtstart opzionale

Informazioni aggiuntive

Questo template è concepito per essere usato nei seguenti namespace: tutti i namespaces

Il template è concepito per essere usato dai seguenti gruppi utente: tutti gli utenti

Dipende da:
{{date}}, {{I18n month}}, {{I18n month/form}}

Esempio

{{ISOdate|2026-11-22}}:

appare come:

22 novembre 2026

Vedi anche

(questa parte di documentazione è disponibile solo in alcune lingue)

{{date}}

Localizzazione

Questo template non è concepito per essere localizzato.

Test cases

{{ISOdate|9-08-18}}: 18 agosto 9
{{ISOdate|1-08-18}}: 18 agosto 1
{{ISOdate|1970-08}}: agosto 1970
{{ISOdate|1969-08}}: agosto 1969
{{ISOdate|1800-08}}: agosto 1800
{{ISOdate|999-08}}: agosto 999
{{ISOdate|119-08}}: agosto 119
{{ISOdate|99-08}}: agosto 99
{{ISOdate|19-08}}: agosto 19
{{ISOdate|9-08}}: agosto 9
{{ISOdate|1-08}}: agosto 1
{{ISOdate|1970}}: 1970
{{ISOdate|1969}}: 1969
{{ISOdate|1800}}: 1800
{{ISOdate|999}}: 999
{{ISOdate|119}}: 119
{{ISOdate|99}}: 99
{{ISOdate|19}}: 19
{{ISOdate|9}}: 9
{{ISOdate|1}}: 1
{{ISOdate|0}}: 0
{{ISOdate|1567-02-29}}: 1567-02-29
{{ISOdate|2000-02-29}}: 29 febbraio 2000