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

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट
Content deleted Content added
कुनै सम्पादन सारांश छैन
सा →‎Usage: Corrected grammar
पङ्क्ति २१: पङ्क्ति २१:
#that the present date is [[{{CURRENTDAY}} {{CURRENTMONTHNAME}}]] [[{{CURRENTYEAR}}]].
#that the present date is [[{{CURRENTDAY}} {{CURRENTMONTHNAME}}]] [[{{CURRENTYEAR}}]].


::If the person was born after [[{{CURRENTDAY}} {{CURRENTMONTHNAME}}]], [[{{#expr: {{CURRENTYEAR}} - 55}}]] then they will be {{age|{{#expr: {{CURRENTYEAR}} - 55}}|{{CURRENTMONTH}}|{{#expr: {{CURRENTDAY}} + 1 }} }} years old on [[{{CURRENTDAY}} {{CURRENTMONTHNAME}}]] [[{{CURRENTYEAR}}]] as they have not had their 55th birthday yet. On the other hand, if they were born exactly on or before [[{{CURRENTDAY}} {{CURRENTMONTHNAME}}]], [[{{#expr: {{CURRENTYEAR}} - 55}}]], then the person will be 55 years old.
::If the person was born after [[{{CURRENTDAY}} {{CURRENTMONTHNAME}}]], [[{{#expr: {{CURRENTYEAR}} - 55}}]] then she will be {{age|{{#expr: {{CURRENTYEAR}} - 55}}|{{CURRENTMONTH}}|{{#expr: {{CURRENTDAY}} + 1 }} }} years old on [[{{CURRENTDAY}} {{CURRENTMONTHNAME}}]] [[{{CURRENTYEAR}}]] as they have not had their 55th birthday yet. On the other hand, if she was born exactly on or before [[{{CURRENTDAY}} {{CURRENTMONTHNAME}}]], [[{{#expr: {{CURRENTYEAR}} - 55}}]], then she will be 55 years old.


:::Therefore, the template {{tlx|Birth year and age|{{#expr: {{CURRENTYEAR}} - 55}} }}
:::Therefore, the template {{tlx|Birth year and age|{{#expr: {{CURRENTYEAR}} - 55}} }}
:::displays their birth year and age as: {{birth year and age|{{#expr: {{CURRENTYEAR}} - 55}}}}
:::displays her birth year and age as: {{birth year and age|{{#expr: {{CURRENTYEAR}} - 55}}}}


:*Optionally if we know the persons birth month but not day, we can have the template also display the month.
:*Optionally if we know the person's birth month but not day, we can also have the template display the month.


::Using the above examples and assuming the month is {{CURRENTMONTH}} ({{CURRENTMONTHNAME}})
::Using the above examples and assuming the month is {{CURRENTMONTH}} ({{CURRENTMONTHNAME}})
:::Therefore, the template {{tlx|Birth year and age|{{#expr: {{CURRENTYEAR}} - 55}}|{{CURRENTMONTH}} }}
:::Therefore, the template {{tlx|Birth year and age|{{#expr: {{CURRENTYEAR}} - 55}}|{{CURRENTMONTH}} }}
:::displays their birth year and age as: {{birth year and age|{{#expr: {{CURRENTYEAR}} - 55}}|{{CURRENTMONTH}}}}
:::displays her birth year and age as: {{birth year and age|{{#expr: {{CURRENTYEAR}} - 55}}|{{CURRENTMONTH}}}}


*{{tl|Death year and age}} – let us assume:
*{{tl|Death year and age}} – let us assume:
पङ्क्ति ३६: पङ्क्ति ३६:
#that he died some time in {{#expr: {{CURRENTYEAR}} - 1}}.
#that he died some time in {{#expr: {{CURRENTYEAR}} - 1}}.


::We can posit as two extremes: (1) that the person was born on [[31 December]] [[{{#expr: {{CURRENTYEAR}} - 51}}]] and died on [[1 January]] [[{{#expr: {{CURRENTYEAR}} - 1}}]], in which case they would have been 49 years old at the time of their death as they did not achieve their 50th birthday on [[31 December]] [[{{#expr: {{CURRENTYEAR}} - 1}}]]; and (2) that they were born on [[1 January]] [[{{#expr: {{CURRENTYEAR}} - 51}}]] and died on [[31 December]] [[{{#expr: {{CURRENTYEAR}} - 1}}]], in which case they would have been 50 years old at the time of their death as they had his 50th birthday on [[1 January]] [[{{#expr: {{CURRENTYEAR}} - 1}}]].
::We can posit as two extremes: (1) that the person was born on [[31 December]] [[{{#expr: {{CURRENTYEAR}} - 51}}]] and died on [[1 January]] [[{{#expr: {{CURRENTYEAR}} - 1}}]], 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]] [[{{#expr: {{CURRENTYEAR}} - 1}}]]; and (2) that he was born on [[1 January]] [[{{#expr: {{CURRENTYEAR}} - 51}}]] and died on [[31 December]] [[{{#expr: {{CURRENTYEAR}} - 1}}]], 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]] [[{{#expr: {{CURRENTYEAR}} - 1}}]].


:::Therefore, the template {{tlx|Death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}} }}
:::Therefore, the template {{tlx|Death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}} }}
:::renders his death year and age as: {{death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}}}}
:::renders his death year and age as: {{death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}}}}


:*Optionally if we know the persons month they died but not the day, we can have the template also display the month.
:*Optionally if we know month of the person's death but not the day, we can also have the template display the month.


::Using the above examples and assuming the month is {{CURRENTMONTH}} ({{CURRENTMONTHNAME}})
::Using the above examples and assuming the month is {{CURRENTMONTH}} ({{CURRENTMONTHNAME}})
:::Therefore, the template {{tlx|Death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}}|{{CURRENTMONTH}} }}
:::Therefore, the template {{tlx|Death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}}|{{CURRENTMONTH}} }}
:::displays their birth year and age as: {{death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}}|{{CURRENTMONTH}}}}
:::displays his death year and age as: {{death year and age|{{#expr: {{CURRENTYEAR}} - 1}}|{{#expr: {{CURRENTYEAR}} - 51}}|{{CURRENTMONTH}}}}


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 {{tl|Birth date and age}} and {{tl|Death date and age}}.
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 {{tl|Birth date and age}} and {{tl|Death date and age}}.

१९:०७, २ सेप्टेम्बर २००८ जस्तै गरी पुनरावलोकन


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 examples on this page use the current date as
अप्रिल २६, २०२४

The person's age is estimated as follows:

  1. that the person in question was born some time in अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।; and
  2. that the present date is २६ अप्रिल २०२४.
If the person was born after २६ अप्रिल, [[अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।]] then she will be त्रुटि: मान्य वर्ष, महिना, दिन आवश्यक छ years old on २६ अप्रिल २०२४ as they have not had their 55th birthday yet. On the other hand, if she was born exactly on or before २६ अप्रिल, [[अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।]], then she will be 55 years old.
Therefore, the template {{Birth year and age|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।}}
displays her birth year and age as: अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"। (age अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।)अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।
  • Optionally if we know the person's birth month but not day, we can also have the template display the month.
Using the above examples and assuming the month is ०४ (अप्रिल)
Therefore, the template {{Birth year and age|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।|०४}}
displays her birth year and age as: अप्रिल अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"। (age अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "०"।)अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "०"।
  1. that the person in question was born some time in अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।; and
  2. that he died some time in अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।.
We can posit as two extremes: (1) that the person was born on 31 December [[अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।]] and died on 1 January [[अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।]], 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 [[अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।]]; and (2) that he was born on 1 January [[अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।]] and died on 31 December [[अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।]], 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 [[अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।]].
Therefore, the template {{Death year and age|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।}}
renders his death year and age as: अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"। (aged अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।)
  • Optionally if we know month of the person's death but not the day, we can also have the template display the month.
Using the above examples and assuming the month is ०४ (अप्रिल)
Therefore, the template {{Death year and age|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।|०४}}
displays his death year and age as: अप्रिल अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"। (aged अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।)

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}}
{{Birth year and age|year of birth|optional month of birth}}
{{Death year and age|year of death|year of birth}}
{{Death year and age|year of death|year of birth|optional month of death}}

Examples

Template text Result
{{Birth year and age|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।}} अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"। (age अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।)अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।
{{Birth year and age|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।|०४}} अप्रिल अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"। (age अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "०"।)अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "०"।
{{Death year and age|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।}} अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"। (aged अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।)
{{Death year and age|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।|अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"।|०४}} अप्रिल अभिव्यक्ति त्रुटि: अज्ञात विराम चिन्ह चरित्र "२"। (aged अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।अभिव्यक्ति त्रुटि: अनपेक्षित < सञ्चालक।)

See also