Documentation icon တမ်းပလိတ်မှတ်တမ်းလက်စွဲ[ကြည့်ရှု] [တည်းဖြတ်] [ရာဇဝင်] [ရှင်းသန့်]

ဤတမ်းပလိတ်တွင် ရက်စွဲနှစ်ခု ထည့်သွင်းပါက ပထမရက်စွဲမှ ဒုတိယရက်စွဲအကြား ရှိသည့် နှစ်အရေအတွက်ကို တွက်ထုတ်ပေးသည်။ အကယ်၍ ဒုတိယရက်စွဲကို မထည့်ပါက ပထမရက်စွဲမှ လက်ရှိယနေ့ ရက်စွဲကြားရှိသည့် နှစ်အရေအတွက်ကို တွက်ထုတ်ပေးသည်။

ကုဒ်ရေးပုံသဒ္ဒါ (syntax):
{{age|year1|month1|day1|year2|month2|day2}} or
{{age|year1|month1|day1}}
သာဓကများ:
{{age|1989|7|23|2003|7|14}} ဟုရေးလျှင် "13" ဟုပေါ်မည်။
{{age|1989|7|23}} ဟုရေးလျှင် "34" ဟုပေါ်မည်။

မြန်မာဝီကီရေးသူများ သတိပြုရမည့် အချက်တစ်ခုမှာ ရက်စွဲကို အင်္ဂလိပ်လို ထည့်သွင်းရန်ဖြစ်သည်။ မြန်မာလို ထည့်သွင်းပါက အမှားပြလိမ့်မည်။ အကြောင်းမှာ အသက်ကိုတွက်သည့် သင်္ချာဖန်ရှင် (function) တွင် ကိန်းဂဏန်းကို အင်္ဂလိပ်လိုသာရေးရ၍ဖြစ်သည်။ သို့သော် ဤအသက် age တမ်းပလိတ်ကို တိုက်ရိုက်အသုံးပြုရန် ရည်ရွယ်၍ ရေးသားခြင်းမဟုတ်ပေ။ template:death date and age ကဲ့သို့သော တမ်းပလိတ်များမှ ယူသုံးရန် ရည်ရွယ်၍ ရေးခြင်းဖြစ်သည်။ (၎င်း တမ်းပလိတ်များတွင်မူ မြန်မာလို ရက်စွဲရေးသွင်းပါကလည်း အမှားမပြရန် စီစဉ်ပြီးဖြစ်သည်။ အသေးစိတ်ကို template:death date and age တွင် ရှုပါ။)

မြန်မာဝီကီရေးသူများ သတိပြုရမည့် နောက်ထပ်အချက်တစ်ခုမှာ ဤတမ်းပလိတ်သည် အသက်တွက်ရာတွင် နိုင်ငံတကာ (သို့) အနောက်တိုင်းစံအတိုင်း ပြည့်ပြီးသည့်အသက် ကိုသာ တွက်ချက်ပေးခြင်းဖြစ်သည်။ ဥပမာပေးရသော် ဖေဖော်ဝါရီ ၁၃၊ ၁၉၁၅ ဖွား ဗိုလ်ချုပ်အောင်ဆန်းသည် ၎င်းလုပ်ကြံခံရသည့် ၁၉၄၇၊ ဇူလိုင် ၁၉ တွင် အသက် ၃၂ ပြည့်ပြီး၍ အသက် ၃၃နှစ်ထဲတွင် ရှိပြီဖြစ်သည်။ ဤအခြေအနေတွင် မြန်မာအချို့၏ ထုံးတမ်းစဥ်လာအရ အသက်မေးပါက "၃၃ထဲ" (သို့) "၃၃" ဟုသာ အလွယ်တကူဖြေလေ့ရှိရာ၊ စျာပန နာရေးနှင့် ပတ်သက်သည့် စာရွက်စာတမ်းများတွင် ဗိုလ်ချုပ်အသက် ၃၃တွင် ကွယ်လွန်သည်ဟု ရေးလေ့ရှိကြသည်။ ဤ age တမ်းပလိတ်ကို မြန်မာထုံးစံနှင့် ညီစေလိုပါက ၁ ပေါင်းပေးရန်ဖြစ်သည်။

When using this template to calculate a person's age at death or a person's age on a specified date (rather than the person's current age), please substitute it into the page.
Example: {{subst:age|1989|7|23|2003|7|14}}
When entering dates before the Common Era, use astronomical year numbering: 1 BCE is represented by 0, 2 BCE by -1, 3 BCE by -2 etc. For example, the following expression returns the number of full years elapsed since the battle of Cannae, which took place on August 2, 216 BCE:
{{age|-215|8|2}} returns "2238"

(BCE is exactly the same as BC, so August 2, 216 BCE is also August 2, 216 BC)

Note:
This template does not check for incorrect input:
{{age|1980|7|14|1993|6|233}} returns "12" (surplus days do not count as extra months)
{{age|1980|7|14|1993|88|14}} returns "13" (surplus months do not count as extra years)

TemplateData ပြင်ဆင်ရန်

အောက်ပါအချက်အလက်များမှာ အင်္ဂလိပ်ဝီကီပီးဒီးယားရှိ ရုပ်မြင်တည်းဖြတ်သူ (VisualEditor) ကဲ့သို့သော ကိရိယာများကို မြန်မာဝီကီပီးဒီးယားတွင် အသုံးပြုလာနိုင်သည့် အနာဂတ်ကို ရည်ရွယ်၍ အင်္ဂလိပ်ဝီကီပီးဒီးယားရှိ တမ်းပလိတ်အချက်အလက်များ (TemplateData) စီမံကိန်းပုံစံရည်ရွယ်၍ မှတ်တမ်းမှတ်ရာ ပြုလုပ်ထားခြင်း ဖြစ်သည်။ ၎င်းကိရိယာများကို အသုံးမပြုသေးသည့်တိုင် ကွန်ပျူတာပရိုဂရမ်ရေးခြင်း (computer programming) နှင့် ပတ်သက်၍ အနည်းငယ်မျှသာ နားလည်သူများပင် ရှင်းရှင်းလင်းလင်းမြင်စေရန် အကျဉ်းချုပ်သဘော အသုံးပြုနိုင်သည်။

Age

This template returns the number of full years between two specified dates. If the second set of parameters is not included, it will return the number of full years between a specified date and today's date.

တမ်းပလိတ် ပါရာမီတာများ[တမ်းပလိတ် ဒေတာကို တည်းဖြတ်ရန်]

ပါရာမီတာဖော်ပြချက်အမျိုးအစားအခြေအနေ
Year ('from' date)year1 1

The year of the (first) date

Numberလိုအပ်သည်
Month ('from' date)month1 2

The month of the (first) date

Numberလိုအပ်သည်
Day of month ('from' date)day1 3

The day of the month of the (first) date

Numberလိုအပ်သည်
Year ('to' date)year2 4

The year of the 'to' date, if required

Numberထည့်လိုပါက
Month ('to' date)month2 5

The month of the 'to' date, if required

Numberထည့်လိုပါက
Day of month ('to' date)day2 6

The day of the month of the 'to' date, if required

Numberထည့်လိုပါက