টেমপ্লেট:শিশুর জন্য বয়স
(টেমপ্লেট:Age for infant থেকে পুনর্নির্দেশিত)
This template displays an age appropriate for an infant: months and days up to one year, years and months up to three years, and years beyond.
Usage সম্পাদনা
{{age for infant|abbr= yes/no|YEAROFBIRTH|MONTHOFBIRTH|DAYOFBIRTH}}
{{subst:age for infant|abbr= yes/no|YEAROFBIRTH|MONTHOFBIRTH|DAYOFBIRTH|CMPYEAR|CMPMONTH|CMPDAY}}
- abbr - if set to yes days are displayed as "dys", months as "mos", etc., etc. If set to no or undefined, the template displays normally.
- DAYOFBIRTH - the day the infant was born
- MONTHOFBIRTH - the month in which the baby was born
- YEAROFBIRTH - the year the baby was born, in four digits
- CMPDAY - the day to compare to, rather than the current day
- CMPMONTH - the month to compare to, rather than the current month
- CMPYEAR - the year to compare to, rather than the current year
Examples of use সম্পাদনা
Wikipedia's current date is ২০২৪-০৩-২৯.
"{{age for infant|২০২৪|২|২৮}}"
ফলাফল দেয় "১ মাস ১ দিন" [১]- {{age for infant|২০২৪|1|1|abbr=yes}} gives: ২ মাস ২৮ দিন
"{{age for infant|২০২২|২|২৮}}"
ফলাফল দেয় "২ বছর ১ মাস" [২]"{{age for infant|এক্সপ্রেশন ত্রুটি: অপরিচিত বিরামচিহ্ন অক্ষর "২"।|1|1}}"
ফলাফল দেয় "ত্রুটি: বৈধ বছর, মাস, দিন প্রয়োজন" [৩]
More examples of output:
Age |
---|
১৬ বছর |
১৬ বছর |
১৬ বছর |
১৬ বছর |
১৬ বছর |
১৬ বছর |
১৬ বছর |
১৬ বছর |
১৬ বছর |
১৭ বছর |
১৬ বছর |
১৭ বছর |
১৮ বছর |
১৬ বছর |
১৬ বছর |
১৬ বছর |
২৯ বছর |
৩০ বছর |
৩০ বছর |
উপরোক্ত নথিটি টেমপ্লেট:শিশুর জন্য বয়স/নথি থেকে প্রতিলিপ্ত। (সম্পাদনা | ইতিহাস) ব্যবহারকারীগণ খেলাঘর (তৈরি করুন | আয়না) এবং পরীক্ষা পাতায় (তৈরি করুন) এই টেমপ্লেট সংক্রান্ত পরীক্ষা-নিরীক্ষা করতে পারেন। দয়া করে /নথি উপপাতায় বিষয়শ্রেণী যোগ করুন। এই টেমপ্লেটের উপপাতাসমূহ। |