ढाँचा:Start date and years ago

स्वतन्त्र विश्वकोश, नेपाली विकिपिडियाबाट
यसमा जानुहोस्: परिचालन, खोज्नुहोस्
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[सम्पादन गर्ने]

Syntax Display
{{Start date and years ago|2009|4|11}} अप्रिल ११, २००९ (2009-04-11) (९ वर्ष अघि)
{{Start date and years ago|2007|4|11}} अप्रिल ११, २००७ (2007-04-11) (११ वर्ष अघि)
{{Start date and years ago|1812|10|21}} अक्टोबर २१, १८१२ (1812-10-21) (२०५ वर्ष अघि)
अक्टोबर १, १८१२ (1812-10-01) (२०५ वर्ष अघि)

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.

Syntax Display
{{Start date and years ago|1993|2|24|df=yes}} २४ फेब्रुअरी १९९३ (1993-02-24) (२५ वर्ष अघि)
{{Start date and years ago|1993|2|24|df=y}} २४ फेब्रुअरी १९९३ (1993-02-24) (२५ वर्ष अघि)
{{Start date and years ago|1993|2|24|mf=yes}} फेब्रुअरी २४, १९९३ (1993-02-24) (२५ वर्ष अघि)
{{Start date and years ago|1993|2|24|mf=y}} फेब्रुअरी २४, १९९३ (1993-02-24) (२५ वर्ष अघि)

Hard return[सम्पादन गर्ने]

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

Syntax Display
{{Start date and years ago|1993|2|24|br=1}} फेब्रुअरी २४, १९९३ (1993-02-24) (२५ वर्ष अघि)

Use in microformats[सम्पादन गर्ने]

This template also returns the date, hidden by CSS, in the ISO 8601 format needed by one or more of the following microformats:

usually, but not always, within infobox or similar templates, or tables.

Its use in hCard is for organisations, venues and similar; use {{Birth date}} or {{Birth date and age}} for people.

Similarly, {{End date}} returns the date as hCalendar's (class="dtend").

See the microformats project for further details.

Limitation[सम्पादन गर्ने]

This template has no provision to deal with a date in a non-Gregorian calendar. Also, ISO 8601 requires mutual agreement among those exchanging information before using years outside the range 1583-9999 CE. Therefore, use of this template for non-Gregorian dates or dates outside that range constitutes a false claim of conformance to the ISO 8601 standard.

Any editor encountering such usage should change the date to plain text with no template; or if not confident in doing so, raise the matter on this template's talk page.

See the microformats project for further details.