توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

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|۲۰۲۶|۱۱|۵}}" می‌دهد "&&&&&&&&&&&&&031۱ ماه ۱ روز

" [۱]

  • {{age for infant|۲۰۲۶|1|1|abbr=yes}} gives: &&&&&&&&&&&&0339۱۱ ماه ۵ روز
  • "{{age for infant|۲۰۲۴|۱۱|۵}}" می‌دهد "&&&&&&&&&&&&0761۲ سال ۱ ماه

" [۲]

  • "{{age for infant|2021|1|1}}" می‌دهد "&&&&&&&&&&&02165۵ سال

" [۳]

More examples of output:

Age
&&&&&&&&&&&06914۱۸ سال
&&&&&&&&&&&06904۱۸ سال
&&&&&&&&&&&06894۱۸ سال
&&&&&&&&&&&06883۱۸ سال
&&&&&&&&&&&06873۱۸ سال
&&&&&&&&&&&06863۱۸ سال
&&&&&&&&&&&06854۱۸ سال
&&&&&&&&&&&06854۱۸ سال
&&&&&&&&&&&06844۱۸ سال
&&&&&&&&&&&07220۱۹ سال
&&&&&&&&&&&07128۱۹ سال
&&&&&&&&&&&07453۲۰ سال
&&&&&&&&&&&07787۲۱ سال
&&&&&&&&&&&07149۱۹ سال
&&&&&&&&&&&07169۱۹ سال
&&&&&&&&&&&07190۱۹ سال
&&&&&&&&&&011593۳۱ سال
&&&&&&&&&&011948۳۲ سال
&&&&&&&&&&012303۳۳ سال