قالب:MONTHDAYS/doc

من أخبار المعرفة

This template computes the number of days for the month of year in parameter.

Syntax

{{MONTHDAYS|year|month}}

Examples for all months of a leap year

{{MONTHDAYS|2000|1}} returns ٣١
{{MONTHDAYS|2000|2}} returns ٢٩
{{MONTHDAYS|2000|3}} returns ٣١
{{MONTHDAYS|2000|4}} returns ٣٠
{{MONTHDAYS|2000|5}} returns ٣١
{{MONTHDAYS|2000|6}} returns ٣٠
{{MONTHDAYS|2000|7}} returns ٣١
{{MONTHDAYS|2000|8}} returns ٣١
{{MONTHDAYS|2000|9}} returns ٣٠
{{MONTHDAYS|2000|10}} returns ٣١
{{MONTHDAYS|2000|11}} returns ٣٠
{{MONTHDAYS|2000|12}} returns ٣١

Examples for all months of a non-leap year

{{MONTHDAYS|2001|1}} returns ٣١
{{MONTHDAYS|2001|2}} returns ٢٨
{{MONTHDAYS|2001|3}} returns ٣١
{{MONTHDAYS|2001|4}} returns ٣٠
{{MONTHDAYS|2001|5}} returns ٣١
{{MONTHDAYS|2001|6}} returns ٣٠
{{MONTHDAYS|2001|7}} returns ٣١
{{MONTHDAYS|2001|8}} returns ٣١
{{MONTHDAYS|2001|9}} returns ٣٠
{{MONTHDAYS|2001|10}} returns ٣١
{{MONTHDAYS|2001|11}} returns ٣٠
{{MONTHDAYS|2001|12}} returns ٣١

Examples for the February month on some near years

{{MONTHDAYS|1901|2}} returns ٢٨
{{MONTHDAYS|1904|2}} returns ٢٩
{{MONTHDAYS|1992|2}} returns ٢٩
{{MONTHDAYS|1996|2}} returns ٢٩
{{MONTHDAYS|1999|2}} returns ٢٨
{{MONTHDAYS|2000|2}} returns ٢٩
{{MONTHDAYS|2001|2}} returns ٢٨
{{MONTHDAYS|2002|2}} returns ٢٨
{{MONTHDAYS|2003|2}} returns ٢٨
{{MONTHDAYS|2004|2}} returns ٢٩
{{MONTHDAYS|2005|2}} returns ٢٨
{{MONTHDAYS|2006|2}} returns ٢٨
{{MONTHDAYS|2007|2}} returns ٢٨
{{MONTHDAYS|2008|2}} returns ٢٩
{{MONTHDAYS|2012|2}} returns ٢٩
{{MONTHDAYS|2099|2}} returns ٢٨

Examples for the February month on some secular years

{{MONTHDAYS|1600|2}} returns ٢٩
{{MONTHDAYS|1700|2}} returns ٢٨
{{MONTHDAYS|1800|2}} returns ٢٨
{{MONTHDAYS|1900|2}} returns ٢٨
{{MONTHDAYS|2000|2}} returns ٢٩
{{MONTHDAYS|2100|2}} returns ٢٨
{{MONTHDAYS|2200|2}} returns ٢٨
{{MONTHDAYS|2300|2}} returns ٢٨
{{MONTHDAYS|2400|2}} returns ٢٩

See also

Template:YEARCC
Template:YEARYY
Template:CENTURY
Template:IsLeapYear
Template:JULIANDAY
Template:WEEKDAY
Template:CURRENTMONTHDAYS