Template:MONTHNAME
Jump to navigation
Jump to search
Template Documentation (sometimes hidden or invisible)
Template tools: purge • what links here • what transclude this • subpages |
This template returns the name of the month whose number is in parameter. Alternatively, the English month name or abbreviation (with any letter case) can be given.
- Syntax:
- {{MONTHNAME|month}}
- The month value is interpreted modulo 12 (extra leading zeroes and decimals are ignored).
- Compatibility synonym:
- {{month name|month}}
- Examples for all standard month numbers:
- {{MONTHNAME|1}} returns January
- {{MONTHNAME|2}} returns February
- {{MONTHNAME|3}} returns March
- {{MONTHNAME|4}} returns April
- {{MONTHNAME|5}} returns May
- {{MONTHNAME|6}} returns June
- {{MONTHNAME|7}} returns July
- {{MONTHNAME|8}} returns August
- {{MONTHNAME|9}} returns September
- {{MONTHNAME|10}} returns October
- {{MONTHNAME|11}} returns November
- {{MONTHNAME|12}} returns December
- Examples for month numbers with extra leading zero:
- {{MONTHNAME|01}} returns January
- {{MONTHNAME|02}} returns February
- {{MONTHNAME|03}} returns March
- {{MONTHNAME|04}} returns April
- {{MONTHNAME|05}} returns May
- {{MONTHNAME|06}} returns June
- {{MONTHNAME|07}} returns July
- {{MONTHNAME|08}} returns August
- {{MONTHNAME|09}} returns September
- Examples for month number cyclic underflows and overflows, from computed values:
- {{MONTHNAME|-12}} returns
- {{MONTHNAME|-11}} returns
- {{MONTHNAME|-10}} returns
- {{MONTHNAME|-9}} returns
- {{MONTHNAME|-3}} returns
- {{MONTHNAME|-2}} returns
- {{MONTHNAME|-1}} returns
- {{MONTHNAME|0}} returns
- {{MONTHNAME|13}} returns
- {{MONTHNAME|14}} returns
- {{MONTHNAME|15}} returns
- {{MONTHNAME|16}} returns
- {{MONTHNAME|23}} returns
- {{MONTHNAME|24}} returns
- {{MONTHNAME|25}} returns
- {{MONTHNAME|1200}} returns
- {{MONTHNAME|1201}} returns
- {{MONTHNAME|1212}} returns
- Examples for all standard English month names:
- {{MONTHNAME|JANUARY}} returns
- {{MONTHNAME|FEBRUARY}} returns
- {{MONTHNAME|MARCH}} returns
- {{MONTHNAME|APRIL}} returns
- {{MONTHNAME|MAY}} returns
- {{MONTHNAME|JUNE}} returns
- {{MONTHNAME|JULY}} returns
- {{MONTHNAME|AUGUST}} returns
- {{MONTHNAME|SEPTEMBER}} returns
- {{MONTHNAME|OCTOBER}} returns
- {{MONTHNAME|NOVEMBER}} returns
- {{MONTHNAME|DECEMBER}} returns
- Examples for all abbreviated English month names:
- {{MONTHNAME|jan}} returns
- {{MONTHNAME|feb}} returns
- {{MONTHNAME|mar}} returns
- {{MONTHNAME|apr}} returns
- {{MONTHNAME|may}} returns
- {{MONTHNAME|jun}} returns
- {{MONTHNAME|jul}} returns
- {{MONTHNAME|aug}} returns
- {{MONTHNAME|sep}} returns
- {{MONTHNAME|oct}} returns
- {{MONTHNAME|nov}} returns
- {{MONTHNAME|dec}} returns
Visit Template:MONTHNAME/doc to edit this text! (How does this work?) (Refresh this text)