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

कुनै सम्पादन सारांश छैन
सा →‎Usage: Corrected grammar
पङ्क्ति २१:
#that the present date is [[{{CURRENTDAY}} {{CURRENTMONTHNAME}}]] [[{{CURRENTYEAR}}]].
 
::If the person was born after [[{{CURRENTDAY}} {{CURRENTMONTHNAME}}]], [[{{#expr: {{CURRENTYEAR}} - 55}}]] then theyshe 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 theyshe werewas born exactly on or before [[{{CURRENTDAY}} {{CURRENTMONTHNAME}}]], [[{{#expr: {{CURRENTYEAR}} - 55}}]], then the personshe will be 55 years old.
 
:::Therefore, the template {{tlx|Birth year and age|{{#expr: {{CURRENTYEAR}} - 55}} }}
:::displays theirher birth year and age as: {{birth year and age|{{#expr: {{CURRENTYEAR}} - 55}}}}
 
:*Optionally if we know the personsperson's birth month but not day, we can also have the template also display the month.
 
::Using the above examples and assuming the month is {{CURRENTMONTH}} ({{CURRENTMONTHNAME}})
:::Therefore, the template {{tlx|Birth year and age|{{#expr: {{CURRENTYEAR}} - 55}}|{{CURRENTMONTH}} }}
:::displays theirher birth year and age as: {{birth year and age|{{#expr: {{CURRENTYEAR}} - 55}}|{{CURRENTMONTH}}}}
 
*{{tl|Death year and age}} – let us assume:
पङ्क्ति ३६:
#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 theyhe would have been 49 years old at the time of theirhis death as theyhe did not achieve theirhis 50th birthday on [[31 December]] [[{{#expr: {{CURRENTYEAR}} - 1}}]]; and (2) that theyhe werewas born on [[1 January]] [[{{#expr: {{CURRENTYEAR}} - 51}}]] and died on [[31 December]] [[{{#expr: {{CURRENTYEAR}} - 1}}]], in which case theyhe would have been 50 years old at the time of theirhis death as theyhe had his 50th birthday on [[1 January]] [[{{#expr: {{CURRENTYEAR}} - 1}}]].
 
:::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}}}}
 
:*Optionally if we know themonth personsof monththe theyperson's dieddeath but not the day, we can also have the template also display the month.
 
::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}} }}
:::displays theirhis birthdeath 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}}.