টেমপ্লেট:শিশুর জন্য বয়স/নথি

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে

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
১৬ বছর
১৬ বছর
১৬ বছর
১৬ বছর
১৬ বছর
১৬ বছর
১৬ বছর
১৬ বছর
১৬ বছর
১৭ বছর
১৬ বছর
১৭ বছর
১৮ বছর
১৬ বছর
১৬ বছর
১৬ বছর
২৯ বছর
৩০ বছর
৩০ বছর