တမ်းပလိတ်:Death year and age
အသုံးပြုပုံ
[ပြင်ဆင်ရန်]{{Birth year and age}} နှင့် {{Death year and age}} တမ်းပလိတ်များသည် လူတစ်ဦး၏ မွေးဖွားခုနှစ် သို့မဟုတ် ကွယ်လွန်ခုနှစ်အပေါ် မူတည်၍ ခန့်မှန်းအသက်ကို တွက်ချက်ပေးသော တမ်းပလိတ်ဖြစ်သည်။ ပုဂ္ဂိုလ်တစ်ဦး၏ မွေးဖွားနှစ်/သေဆုံး နှစ် ကိုသာသိ၍ လ နှင့် ရက် ကို မသိလျှင်သော်လည်းကောင်း၊ ၎င်းပုဂ္ဂိုလ်၏ မွေးဖွား/သေဆုံး ရက်စွဲအတိအကျကို ပုဂ္ဂလအခွင့်အရေး (privacy) အကြောင်းကြောင်းအား ငဲ့ညှာ၍ မဖော်ပြလိုလျှင်သော်လည်းကောင်း ဤတမ်းပလိတ်ကို အသုံးပြုသည်။
မှတ်ချက်။ ။ဤတမ်းပလိတ်ကို အင်္ဂလိပ်ဂဏန်းနှင့် မြန်မာဂဏန်း နှစ်မျိုးစလုံးဖြင့် ထည့်သွင်းတွက်ချက်နိုင်စေရန် စီမံထားသည်။
လူတစ်ဦး၏ အသက်ကို အောက်ပါအတိုင်း ခန့်မှန်းတွက်ချက်သည်။
{{Birth year and age}}
[ပြင်ဆင်ရန်]Let us assume:
- that the person in question was born some time in 1971; and
- that the present date is ၈ ဖေဖော်ဝါရီ ၂၀၂၆.
- If the person was born after ၈ ဖေဖော်ဝါရီ 1971 then she will be 54 years old on ၈ ဖေဖော်ဝါရီ ၂၀၂၆ as she has not had her 55th birthday yet. On the other hand, if she was born exactly on or before ၈ ဖေဖော်ဝါရီ 1971, then she will be 55 years old.
- Therefore, the template
{{Birth year and age|1971}} - displays her birth year and age as: ၁၉၇၁ (အသက် ၅၄–၅၅)
- Therefore, the template
- Optionally, if we know the person's birth month but not the day, we can also have the template display the month.
- Let us assume that the person was born in June 1971. Therefore:
- If it is presently January ၂၀၂၆, then this year the person has not had her birthday yet. Therefore, the template
{{Birth year and age|1971|6}}displays her birth year and age as: 1971 (age 54). - If it is presently June ၂၀၂၆, we do not know whether the person has had her birthday this year yet since her day of birth is unknown. Therefore, the template displays her birth year and age as: 1971 (age 54–55).
- If it is presently December ၂၀၂၆, then this year the person has already had her birthday. Therefore, the template displays her birth year and age as: 1971 (age 55).
- If it is presently January ၂၀၂၆, then this year the person has not had her birthday yet. Therefore, the template
- Let us assume that the person was born in June 1971. Therefore:
{{Death year and age}}
[ပြင်ဆင်ရန်]Let us assume:
- that the person in question was born some time in 1975; and
- that he died some time in 2025.
- We can posit as two extremes: (1) that the person was born on 31 December 1975 and died on 1 January 2025, 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 2025; and (2) that he was born on 1 January 1975 and died on 31 December 2025, 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 2025.
- Therefore, the template
{{Death year and age|2025|1975}} - renders his death year and age as: ၂၀၂၅ (အသက် ၄၉–၅၀)
- Therefore, the template
- 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|2025|1975|၀၂}} - displays his death year and age as: အောက်တိုဘာ ၂၀၂၅ (အသက် ၄၉–၅၀)
- Therefore, the template
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}}.
ကုဒ်ရေးပုံသဒ္ဒါ
[ပြင်ဆင်ရန်]{{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}}
နမူနာများ
[ပြင်ဆင်ရန်]| Template text | Result |
|---|---|
| {{Birth year and age|1971}} | ၁၉၇၁ (အသက် ၅၄–၅၅) |
| {{Birth year and age|1971|02}} | ဖေဖော်ဝါရီ ၁၉၇၁ (အသက် ၅၄–၅၅) |
| {{Death year and age|2025|1975}} | ၂၀၂၅ (အသက် ၄၉–၅၀) |
| {{Death year and age|2025|1975|02}} | ဖေဖော်ဝါရီ ၂၀၂၅ (အသက် ၄၉–၅၀) |
| အထက်ပါ အသုံးပြုပုံ လက်စွဲ (documentation)သည် တမ်းပလိတ်:Death year and age/doc မှ ကူးပြောင်းထည့်သွင်း (transclude လုပ်)ထားခြင်း ဖြစ်သည်။ (တည်းဖြတ် | ရာဇဝင်) တည်းဖြတ်သူများအနေဖြင့် ဤတမ်းပလိတ်၏ sandbox (ဖန်တီး | ပုံတူပွား) နှင့် testcases (ဖန်တီး) စာမျက်နှာများကို စမ်းသပ်နိုင်ပါသည်။ စာမျက်နှာခွဲ /doc တွင် ကဏ္ဍများထည့်သွင်းပါ။ ဤ တမ်းပလိတ် ၏ စာမျက်နှာခွဲများ။. |