Template:MONTHABBREV/doc
This is a documentation subpage for Template:MONTHABBREV. It contains usage information, categories and other content that is not part of the original template page. |
This template returns the English abbreviation (between "Jan" and "Dec") of the month whose number is in parameter. Alternatively, the English name or abbreviation (in any letter case) can be provided.
Syntax
{{MONTHABBREV|
month}}
- The month value is interpreted modulo 12 (extra leading zeroes and decimals are ignored).
Examples for all standard English month names
{{MONTHABBREV|january}}
returns Jan{{MONTHABBREV|february}}
returns Feb{{MONTHABBREV|march}}
returns Mar{{MONTHABBREV|april}}
returns Apr{{MONTHABBREV|may}}
returns May{{MONTHABBREV|june}}
returns Jun{{MONTHABBREV|july}}
returns Jul{{MONTHABBREV|august}}
returns Aug{{MONTHABBREV|september}}
returns Sep{{MONTHABBREV|october}}
returns Oct{{MONTHABBREV|november}}
returns Nov{{MONTHABBREV|december}}
returns Dec
Examples for all abbreviated English month names
{{MONTHABBREV|JAN}}
returns Jan{{MONTHABBREV|FEB}}
returns Feb{{MONTHABBREV|MAR}}
returns Mar{{MONTHABBREV|APR}}
returns Apr{{MONTHABBREV|MAY}}
returns May{{MONTHABBREV|JUN}}
returns Jun{{MONTHABBREV|JUL}}
returns Jul{{MONTHABBREV|AUG}}
returns Aug{{MONTHABBREV|SEP}}
returns Sep{{MONTHABBREV|OCT}}
returns Oct{{MONTHABBREV|NOV}}
returns Nov{{MONTHABBREV|DEC}}
returns Dec
Examples for all standard month numbers
{{MONTHABBREV|1}}
returns Jan{{MONTHABBREV|2}}
returns Feb{{MONTHABBREV|3}}
returns Mar{{MONTHABBREV|4}}
returns Apr{{MONTHABBREV|5}}
returns May{{MONTHABBREV|6}}
returns Jun{{MONTHABBREV|7}}
returns Jul{{MONTHABBREV|8}}
returns Aug{{MONTHABBREV|9}}
returns Sep{{MONTHABBREV|10}}
returns Oct{{MONTHABBREV|11}}
returns Nov{{MONTHABBREV|12}}
returns Dec
Examples for month numbers with extra leading zero
{{MONTHABBREV|01}}
returns Jan{{MONTHABBREV|02}}
returns Feb{{MONTHABBREV|03}}
returns Mar{{MONTHABBREV|04}}
returns Apr{{MONTHABBREV|05}}
returns May{{MONTHABBREV|06}}
returns Jun{{MONTHABBREV|07}}
returns Jul{{MONTHABBREV|08}}
returns Aug{{MONTHABBREV|09}}
returns Sep
Examples for month number underflows and overflows, from computed values
{{MONTHABBREV|-1200}}
returns Dec{{MONTHABBREV|-1201}}
returns Nov{{MONTHABBREV|-1212}}
returns Dec{{MONTHABBREV|-12}}
returns Dec{{MONTHABBREV|-11}}
returns Jan{{MONTHABBREV|-10}}
returns Feb{{MONTHABBREV|-9}}
returns Mar{{MONTHABBREV|-3}}
returns Sep{{MONTHABBREV|-2}}
returns Oct{{MONTHABBREV|-1}}
returns Nov{{MONTHABBREV|0}}
returns Dec{{MONTHABBREV|13}}
returns Jan{{MONTHABBREV|14}}
returns Feb{{MONTHABBREV|15}}
returns Mar{{MONTHABBREV|16}}
returns Apr{{MONTHABBREV|23}}
returns Nov{{MONTHABBREV|24}}
returns Dec{{MONTHABBREV|25}}
returns Jan{{MONTHABBREV|1200}}
returns Dec{{MONTHABBREV|1201}}
returns Jan{{MONTHABBREV|1212}}
returns Dec
See also
[
] all subsections that follow:
Multiple units of time
Type | Adjustable | Current | Last | Next |
---|---|---|---|---|
Date and Time | {{time}} | {{Currentdate}} (MDY) {{Plain now}} (DMY) {{Now}} (DMY in a complete sentence) |
||
Date Only | {{Dateonly}} {{Datedow}} (Has the day of the week) |
{{Date}} (Chose format) {{DATE}} (prefixed by date=) {{TODAY}} (DMY) |
{{Yesterday}} {{Day-1}} |
{{Tomorrow}} {{Day+1}} |
Time only | {{Timeonly}} | {{CURRENTTIME}} (12 h format) {{CURRENTTIME24}} (24 h format) |
||
Banners | {{Right now}} (Blue with time and number of Wikipedia articles) {{Right now (User message)}} (Orange with time and number of Wikipedia articles |
|||
Timestamp | {{Timestamp}} (Format YYYYMMDDhhmmss) |
Single units of time
Unit of time | Adjustable | Current | Last | Next |
---|---|---|---|---|
SECOND | {{CURRENTSECOND}} | |||
MINUTE | {{CURRENTMINUTE}} | |||
HOUR | {{Currenthour}} | {{Hour-1}} | {{Hour+1}} | |
WEEK | {{CURRENTWEEKOFYEAR}} {{CURRENTWEEKOFMONTH}} |
|||
Day of Week | {{Dow}} | {{CURRENTWEEKDAYNAME}} {{CURRENTWEEKDAYABBREV}} {{CURRENTWEEKDAY}} |
{{LASTWEEKDAYNAME}} {{LASTWEEKDAYABBREV}} |
{{NEXTWEEKDAYNAME}} {{NEXTWEEKDAYABBREV}} |
MONTH | {{MONTHNAME}} {{MONTHABBREV}} {{MONTHNUMBER}} {{MONTH}} (zero padded) |
{{Currentmonth}} {{CURRENTMONTHABBREV}} {{CURRENTMONTHNUMBER}} {{CURRENTMONTHDAYS}} |
{{LASTMONTH}} (Can make not zero-padded) {{LASTMONTHNAME}} {{LASTMONTHABBR}} |
{{NEXTMONTH}} (Can make not zero-padded) {{NEXTMONTHNAME}} {{NEXTMONTHABBR}} |
Day of Month | {{Currentday}} | |||
YEAR | {{CURRENTYEARCC}} {{CURRENTYEARYY}} {{CURRENTISOYEAR}} {{CURRENTYEAR}} |
{{LASTYEAR}} | {{NEXTYEAR}} | |
Day of Year | {{CURRENTDAYOFYEAR}} | |||
DECADE | {{DECADE}} | {{CURRENTDECADE}} | {{LASTDECADE}} | {{NEXTDECADE}} |
CENTURY | {{CENTURY}} | {{CURRENTCENTURY}} | {{LASTCENTURY}} | {{NEXTCENTURY}} |
MILLENNIUM | {{MILLENNIUM}} | {{Currentmillennium}} |
Date and time Templates made for substitution:
Month:
{{Lmonth}} produces Oct
{{Nmonth}} produces Dec
{{LastMonth}} produces Template:LastMonth
{{NextMonth}} produces Template:NextMonth
Individual Templates
- {{Calendar}}
- {{Calendar clock with Wikipedia stats}}
- {{Clock}}
- {{Digital clock}}
- {{Digital clock and date}}
Categories of Templates
- Category:Time, date and calendar templates
- Category:Date-computing templates
- Category:Date-computing templates based on current time
- Category:ISO date templates
- Category:Calendar templates
- Category:Clock templates