Template:MONTHABBREV/doc

From PS3 Developer wiki
< Template:MONTHABBREV
Revision as of 21:21, 14 December 2012 by Euss (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
{{MONTHABBREV|february}} returns
{{MONTHABBREV|march}} returns
{{MONTHABBREV|april}} returns
{{MONTHABBREV|may}} returns
{{MONTHABBREV|june}} returns
{{MONTHABBREV|july}} returns
{{MONTHABBREV|august}} returns
{{MONTHABBREV|september}} returns
{{MONTHABBREV|october}} returns
{{MONTHABBREV|november}} returns
{{MONTHABBREV|december}} returns
Examples for all abbreviated English month names:
{{MONTHABBREV|JAN}} returns
{{MONTHABBREV|FEB}} returns
{{MONTHABBREV|MAR}} returns
{{MONTHABBREV|APR}} returns
{{MONTHABBREV|MAY}} returns
{{MONTHABBREV|JUN}} returns
{{MONTHABBREV|JUL}} returns
{{MONTHABBREV|AUG}} returns
{{MONTHABBREV|SEP}} returns
{{MONTHABBREV|OCT}} returns
{{MONTHABBREV|NOV}} returns
{{MONTHABBREV|DEC}} returns
Examples for all standard month numbers:
{{MONTHABBREV|1}} returns
{{MONTHABBREV|2}} returns
{{MONTHABBREV|3}} returns
{{MONTHABBREV|4}} returns
{{MONTHABBREV|5}} returns
{{MONTHABBREV|6}} returns
{{MONTHABBREV|7}} returns
{{MONTHABBREV|8}} returns
{{MONTHABBREV|9}} returns
{{MONTHABBREV|10}} returns
{{MONTHABBREV|11}} returns
{{MONTHABBREV|12}} returns
Examples for month numbers with extra leading zero:
{{MONTHABBREV|01}} returns
{{MONTHABBREV|02}} returns
{{MONTHABBREV|03}} returns
{{MONTHABBREV|04}} returns
{{MONTHABBREV|05}} returns
{{MONTHABBREV|06}} returns
{{MONTHABBREV|07}} returns
{{MONTHABBREV|08}} returns
{{MONTHABBREV|09}} returns
Examples for month number underflows and overflows, from computed values:
{{MONTHABBREV|-1200}} returns
{{MONTHABBREV|-1201}} returns
{{MONTHABBREV|-1212}} returns
{{MONTHABBREV|-12}} returns
{{MONTHABBREV|-11}} returns
{{MONTHABBREV|-10}} returns
{{MONTHABBREV|-9}} returns
{{MONTHABBREV|-3}} returns
{{MONTHABBREV|-2}} returns
{{MONTHABBREV|-1}} returns
{{MONTHABBREV|0}} returns
{{MONTHABBREV|13}} returns
{{MONTHABBREV|14}} returns
{{MONTHABBREV|15}} returns
{{MONTHABBREV|16}} returns
{{MONTHABBREV|23}} returns
{{MONTHABBREV|24}} returns
{{MONTHABBREV|25}} returns
{{MONTHABBREV|1200}} returns
{{MONTHABBREV|1201}} returns
{{MONTHABBREV|1212}} returns
See also:
Template:MONTHNUMBER
Template:MONTHNAME