ढाँचा:Birth based on age as of date

![]() | यस ढाँचामा अप्ठ्यारा सुविधाहरू रहेका छन्। कृपया यस ढाँचालाई सम्पादन गर्नु पूर्व यस ढाँचाको व्यवस्थापन तथा पार्सर प्रणालीहरूसँग परिचित हुनुपर्छ र पनि यदि तपाईँले गरेको सम्पादनबाट कुनै जटिल तथा अप्रत्याशित समस्या आएमा तत्कालै आफ्नो सम्पादन फर्काई दिनुहोला, किनकि यो ढाँचा अत्यधिक सङ्ख्याका लेख/पृष्ठहरूमा प्रयोग भइरहेको छ। स्मरण रहोस्: तपाईँ प्रयोग आदि गर्न सक्नुहुन्छ तर यहाँ कुनै पनि प्रयोग गर्नुपूर्व सबै प्रयोग सामान्य ढाँचा प्रयोगस्थलमा अथवा आफ्नो प्रयोगकर्ता प्रयोगस्थलमा गर्नुहोस्। |
This template calculates a person's birth year and current age based on their age as of a date. This is useful when a reliable source states only their age at the time of publication.
Syntax
[सम्पादन गर्नुहोस्]{{birth based on age as of date |age |year|month|day}}
The age, year, and day must be supplied as natural numbers; month can be specified as a natural number as well as by name or abbreviation (e.g. "August" or "Aug"). The Gregorian calendar is assumed, with no special support provided for dual dating or the difference between Old Style and New Style dates.
If they are not known, the "day" and "month" fields can be omitted; this is useful if, for example, only the publication year for a source is known.
Options
[सम्पादन गर्नुहोस्]To suppress the age field:
{{birth based on age as of date |age |year|month|day |noage=1}}
With the "noage=1" option, the month and day can be "1".
To replace the '/' separator with ' or ' in compliance with WP:APPROXDATE, add |mos=1
{{birth based on age as of date|50 |अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।|०७|९|mos=1}}
- अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक। र अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।
Examples
[सम्पादन गर्नुहोस्]If, for example, a reference dated July 4, अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"। mentions that someone is 50 years old, that person's birth year and age can be rendered using:
{{birth based on age as of date |50 |अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।|July|4}}
The following examples are for a person reported as being 50 years old in अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"। | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Script error: The function "with collapsible groups" does not exist.
This template calculates the birth year and current age based on the age as of a date.
मापदण्ड | विवरण | प्रकार | स्थिति | |
---|---|---|---|---|
Age | 1 | Age of subject at date of reference's publication.
| सङ्ख्या | आवश्यक |
Year | 2 | Year of publication of reference.
| सङ्ख्या | आवश्यक |
Month | 3 | Month of publication of reference.
| String | सुझावित |
Day | 4 | Day of publication of reference.
| सङ्ख्या | सुझावित |
MOS compliance | mos | Set to a value of 1 to replace the '/' separator with ' or ' in compliance with [[WP:APPROXDATE]].
| सङ्ख्या | वैकल्पिक |
Hide age | noage | Set to a value of 1 to display year of birth without the age.
| सङ्ख्या | वैकल्पिक |