फलकम्:Start date and years ago

विकिपीडिया, कश्चन स्वतन्त्रः विश्वकोशः
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

This template shows the date of establishment of an institution, company etc. and its age in years.

This template should not be used for the date of birth or death of people, use {{birth date and age}} or {{death date and age}} instead.

The template requires "YYYY|MM|DD" parameters. Do not use for "YYYY" nor "YYYY|MM" dates.

Usage[सम्पादयतु]

{{Start date and years ago|YYYY|MM|DD}} will give Month D, YYYY (XX years ago)

Examples[सम्पादयतु]

Using the default American date format[सम्पादयतु]

Examples
Syntax Display
{{Start date and years ago|2009|4|11}} 11, 2009 (2009-04-11) (11 years ago)
{{Start date and years ago|2007|4|11}} 11, 2007 (2007-04-11) (13 years ago)
{{Start date and years ago|1812|10|21}} 21, 1812 (1812-10-21) (208 years ago)
{{Start date and years ago|1812|10|1}} 1, 1812 (1812-10-01) (208 years ago)
100 days ago:
{{Start date and years ago|२०२०|१०|८}}
अक्तूबर वाचनिकदोषः : अनपेक्षितम् उद्गारचिह्नम ८, २०२० (२०२०-१०-0८) (0 year ago)
Yesterday:
{{Start date and years ago|२०२१|१|१५}}
जनवरी वाचनिकदोषः : अनपेक्षितम् उद्गारचिह्नम १, २०२१ (२०२१-0१-१५) (0 year ago)
Today:
{{Start date and years ago|२०२१|१|१६}}
जनवरी वाचनिकदोषः : अनपेक्षितम् उद्गारचिह्नम १, २०२१ (२०२१-0१-१६) (0 year ago)

Month First (mf) and Day First (df) options[सम्पादयतु]

The df (day first) and mf (month first) parameters indicate the intended date format to display. The appropriate parameter should be set to "y" or "yes" e.g. df=yes or mf=y.

The default output of this template is to display the month before the day (American format). This default may not be appropriate articles about people from parts of the world where the day precedes the month in a date (British/International format). In such articles the parameter, "df", should be set to display the day before the month.

The parameter "mf", while not actually used by the template, will indicate that month first format is intended. Using these parameters can assist bots or other automated processing to detect which date format is intended; leaving the format as default may lead an editor or bot to change the format to an unintended value.

Do not specify both "df" and "mf" parameters in the same use of the template, as these formats are mutually exclusive.

Examples
Syntax Display Location of breaking spaces
{{Start date and years ago|1993|2|24|df=yes}}

or

{{Start date and years ago|1993|2|24|df=y}}

24 1993 (1993-02-24) (27 years ago)
24 1993 (1993-02-24) (27 years ago)
{{Start date and years ago|1993|2|24|mf=yes}}

or

{{Start date and years ago|1993|2|24|mf=y}}

24, 1993 (1993-02-24) (27 years ago)
24, 1993 (1993-02-24) (27 years ago)

Hard return[सम्पादयतु]

When you want the "(# years ago)" to start at the next line rather than letting it soft-return, use the "br=1" parameter to hard-return it.

Example
Syntax Display
{{Start date and years ago|1993|2|24|br=1}} 24, 1993 (1993-02-24)
(27 years ago)

Supporting template[सम्पादयतु]

Template:Age is used to display the number of years ago.

Use in microformats[सम्पादयतु]

फलकम्:UF-date-part

See the microformats project for further details.

See also[सम्पादयतु]

"https://sa.wikipedia.org/w/index.php?title=फलकम्:Start_date_and_years_ago&oldid=254650" इत्यस्माद् प्रतिप्राप्तम्