"ढाँचा:Birth year and age/कागजात" का संशोधनहरू बिचको अन्तर

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट
Content deleted Content added
→‎Syntax: optional month
पङ्क्ति ३८: पङ्क्ति ३८:
|align="center"|<nowiki>{{Birth year and age|1950}}</nowiki><br>(assuming current year is 2005)
|align="center"|<nowiki>{{Birth year and age|1950}}</nowiki><br>(assuming current year is 2005)
|align="center"|[[1950]] (age 54&ndash;55)<!--The result has been typed out instead of applying the template {{Birth year and age}} in order to simulate the effect of applying {{Birth year and age}} when the current year is 2005. This is so that the example matches the explanation in the "Usage" section above.-->
|align="center"|[[1950]] (age 54&ndash;55)<!--The result has been typed out instead of applying the template {{Birth year and age}} in order to simulate the effect of applying {{Birth year and age}} when the current year is 2005. This is so that the example matches the explanation in the "Usage" section above.-->

|- valign="top"
|align="center"|<nowiki>{{Birth year and age|1950|10}}</nowiki><br>(assuming current year is 2005)
|align="center"|[[October]] [[1950]] (age 54&ndash;55)<!--The result has been typed out instead of applying the template {{Birth year and age}} in order to simulate the effect of applying {{Birth year and age}} when the current year is 2005. This is so that the example matches the explanation in the "Usage" section above.-->


|- valign="top"
|- valign="top"

२२:००, १४ अप्रिल २००८ जस्तै गरी पुनरावलोकन


Usage

The templates {{Birth year and age}} and {{Death year and age}} return a person's year of birth or death and his or her approximate age. The templates are useful when only the year of a person's birth and/or death are known, or if it is desired not to state a person's full dates of birth and death for privacy reasons.

The person's age is estimated as follows:

  1. that the person in question was born some time in 1950; and
  2. that the present date is 1 July 2005.
If the person was born after 1 July 1950, then she will be 54 years old on 1 July 2005 as she has not had her 55th birthday yet. On the other hand, if she was born exactly on or before 1 July 1950, then the person will be 55 years old. Therefore, the template renders her birth year and age as "1950 (age 54–55)".
  1. that the person in question was born some time in 1950; and
  2. that he died some time in 2000.
We can posit two extremes: (1) that the person was born on 31 December 1950 and died on 1 January 2000, in which case he would have been 49 years old at the time of his death as he did not achieve his 50th birthday on 31 December 2000; and (2) that he was born on 1 January 1950 and died on 31 December 2000, in which case he would have been 50 years old at the time of his death as he had his 50th birthday on 1 January 2000. Therefore, the template renders his death year and age as "2000 (age 49–50)".

If you wish to set out the full dates of birth and/or death of a person and thus to calculate his or her age accurately, please use the templates {{Birth date and age}} and {{Death date and age}}.

Note: Do not use this template inside the Wikipedia:Persondata template as it can interfere with data extraction.

Syntax

{{Birth year and age|year of birth|optional month of birth}}
{{Death year and age|year of death|[year of birth}}

Examples

Template text Result
{{Birth year and age|1950}}
(assuming current year is 2005)
1950 (age 54–55)
{{Birth year and age|1950|10}}
(assuming current year is 2005)
October 1950 (age 54–55)
{{Death year and age|2000|1950}} 2000 (aged 49–50)

See also