टेम्पलेट:Age in years and days/sandbox
ई टेम्पलेट:Age in years and days (अंतर) खातिर template sandbox page हवे। |
This template returns the number of full years and surplus days between two specified dates. If only one date is entered, the template returns the number of full years and surplus days between the specified date and today's date.
A hidden sort key is included so values produced by this template will work properly in sortable tables. The sort key is calculated from the number of days between the given dates, and is compatible with {{number table sorting}}. However, use of the sort key is deprecated as it will be removed from this template. If a sort key is wanted, use {{ayd}} which redirects to {{age in years and days nts}}.
Usage
[संपादन करीं]Each date can be entered in a single parameter, or each date can be entered as three parameters (year, month, day).
{{age in years and days|15 May 2010}}
→ 14 साल, 176 दिन{{age in years and days|12 Aug 2003|24 Sep 2011}}
→ 8 साल, 43 दिन{{age in years and days|1989|7|23}}
→ 35 साल, 107 दिन{{age in years and days|1989|7|23|2003|7|24}}
→ 14 साल, 1 दिन{{age in years and days|2007|03|02|2008|03|02}}
→ 1 साल, 0 दिन
An error is shown if an entered date is not valid (1900 was not a leap year).
{{age in years and days|31 January 1892|29 February 1900}}
→ Error: Second date should be year, month, day
Options
[संपादन करीं]The default is to separate years and days with a comma. The separator is "and" if |sep=and
is used.
The default calculates an age—the day of the second date is not included in the calculation. A duration including the second date is calculated if |duration=on
is used.
{{age in years and days|1 Jan 2011|31 Dec 2012}}
→ 1 साल, 365 दिन{{age in years and days|1 Jan 2011|31 Dec 2012|sep=and}}
→ 1 साल आ 365 दिन{{age in years and days|1 Jan 2011|31 Dec 2012|duration=on}}
→ 2 साल, 0 दिन
परिचय खातिर ऊपर दिहल गइल बिबरनलेख के टेम्पलेट:Age in years and days/doc से ट्रांसक्लूड क के इहाँ देखावल जा रहल बाटे। (संपादन करीं | इतिहास देखीं) संपादक लोग एह टेम्पलेट के अभ्यासपन्ना (सैंडबाक्स) (संपादित करीं | अंतर) आ टेस्टकेस (बनाईं) पन्ना सभ पर अभ्यास आ प्रयोग (टेस्टिंग) क सकत बाटे। अनुरोध बा कि अगर श्रेणी जोड़े के होखे तब /doc उपपन्ना (सबपेज) पर जोड़ल जाय। एह टेम्पलेट के उपपन्ना (सबपेज) देखीं। |