Lompat ke isi

Seunaleuëk:End date and age/doc

Nibak Wikipedia

Seunaleuëk:High-use

Seunaleuëk:Tlb displays the date that an event or entity ended. It also includes a duplicate, machine-readable date in the ISO 8601 format (which is hidden by CSS), for use inside other templates which emit microformats. The hidden date degrades gracefully when CSS is not available.

Parameters

[peusaneut asai]
Parameter Status Description
|1= required A four-digit number indicating the year.
|2= optional A number between 1 and 12 indicating the month (leading zeros in the number are ignored).
|3= optional A number between 1 and 31 indicating the day of the month (leading zeros in the number are ignored).
|df= optional When set to |df=yes or |df=y displays the day before the month (e.g. "7 November 2004" instead of the default "November 7, 2004").
|p=
|paren=
optional When set to |p=yes or |p=y the age will be displayed within parentheses. When this parameter is not included, the date and age are separated by a semicolon and a breaking space.
|br= optional When set to |br=yes or |br=y a line break will be inserted between the date and the age. When this parameter is not included, a breaking space will be inserted between the date and the age. This does not change the separating characters between the date and age which are either a semicolon (default setting) or parentheses (if |p=yes).

Examples

[peusaneut asai]

Default separator: semicolon

[peusaneut asai]
Syntax Result
Full date (year, month, day)
{{End date and age|2010|01|02}} Galat skrip: tidak ada modul tersebut "Date time".
{{End date and age|2010|1|2|df=yes}} Galat skrip: tidak ada modul tersebut "Date time".
100 days ago:
{{End date and age|2026|3|26}}
Galat skrip: tidak ada modul tersebut "Date time".
Yesterday:
{{End date and age|2026|7|3}}
Galat skrip: tidak ada modul tersebut "Date time".
Today:
{{End date and age|2026|7|4}}
Galat skrip: tidak ada modul tersebut "Date time".
Year and month
{{End date and age|2001|9}} Galat skrip: tidak ada modul tersebut "Date time".
{{End date and age|2002|09}} Galat skrip: tidak ada modul tersebut "Date time".
Year only
{{End date and age|2005}} Galat skrip: tidak ada modul tersebut "Date time".

Optional separator: parentheses

[peusaneut asai]
Syntax Result
Full date (year, month, day)
{{End date and age|2003|02|15|p=yes}} Galat skrip: tidak ada modul tersebut "Date time".
{{End date and age|2003|02|15|df=y|p=y}} Galat skrip: tidak ada modul tersebut "Date time".
Year and month
{{End date and age|2003|02|p=y}} Galat skrip: tidak ada modul tersebut "Date time".
Year only
{{End date and age|2003|paren=yes}} Galat skrip: tidak ada modul tersebut "Date time".

Line break with semicolon

[peusaneut asai]
Syntax Result
Full date (year, month, day)
{{End date and age|2003|02|15|br=yes}} Galat skrip: tidak ada modul tersebut "Date time".
{{End date and age|2003|02|15|df=y|br=y}} Galat skrip: tidak ada modul tersebut "Date time".
Year and month
{{End date and age|2003|02|br=y}} Galat skrip: tidak ada modul tersebut "Date time".
Year only
{{End date and age|2003|br=yes}} Galat skrip: tidak ada modul tersebut "Date time".

Line break with parentheses

[peusaneut asai]
Syntax Result
Full date (year, month, day)
{{End date and age|2003|02|15|p=yes|br=yes}} Galat skrip: tidak ada modul tersebut "Date time".
{{End date and age|2003|02|15|df=y|p=y|br=y}} Galat skrip: tidak ada modul tersebut "Date time".
Year and month
{{End date and age|2003|02|br=y}} Galat skrip: tidak ada modul tersebut "Date time".
Year only
{{End date and age|2003|paren=yes|br=yes}} Galat skrip: tidak ada modul tersebut "Date time".

TemplateData

[peusaneut asai]
TemplateData documentation used by VisualEditor and other tools

Seunaleuëk:TemplateData header

The End date and age template displays the date that an event or entity ended.

Parameter templat

ParameterKeteranganJenisStatus
Year1

A four-digit number indicating the year

Contoh
2017
Angkawajib diisi
Month2

A number between 1 and 12 indicating the month

Contoh
12
Angkadisarankan
Day3

A number between 1 and 31 indicating the day of the month

Contoh
31
Angkadisarankan
Display date firstdf

Set to 'yes' to show the day before the month name

Nilai yang disarankan
yes y
Barisopsional
Display with parenthesesparen p

Set to 'yes' to display the age within parentheses. When this parameter is not included, the date and age are separated by a semicolon and a breaking space.

Nilai yang disarankan
yes y
Barisopsional
Line break between date and agebr

Set to 'yes' to add a line break between the date and the age. When this parameter is not included, a breaking space will be inserted between the date and the age. This does not change the separating characters between the date and age which are either a semicolon (default setting) or parentheses (if paren=yes).

Nilai yang disarankan
yes y
Barisopsional

Use in microformats

[peusaneut asai]

The template returns the date as hCalendar's (class="dtend"). For example:

(<span class="dtend">1993-02-24T08:30</span>)

(disable CSS or view source to see the hidden ISO-formatted output).

See the microformats project for further details.

Seunaleuëk:Nowiki template demo

Tracking categories

[peusaneut asai]

See also

[peusaneut asai]

Seunaleuëk:Birth, death and age templates