Open main menu

Changes

Changed the headings from <nowiki>; heading <nowiki>:</nowiki></nowiki> to use Headings, which are editable by section
{{Documentation subpage}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->

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 ===
: <tt><nowiki>{{</nowiki>MONTHABBREV|</tt>''month''<tt>}}</tt>
* The ''month'' value is interpreted modulo 12 (extra leading zeroes and decimals are ignored).

=== Examples for all standard English month names ===
: <tt><nowiki>{{MONTHABBREV|january}}</nowiki></tt> returns {{MONTHABBREV|january}}
: <tt><nowiki>{{MONTHABBREV|february}}</nowiki></tt> returns {{MONTHABBREV|february}}
: <tt><nowiki>{{MONTHABBREV|march}}</nowiki></tt> returns {{MONTHABBREV|march}}
: <tt><nowiki>{{MONTHABBREV|april}}</nowiki></tt> returns {{MONTHABBREV|april}}
: <tt><nowiki>{{MONTHABBREV|may}}</nowiki></tt> returns {{MONTHABBREV|may}}
: <tt><nowiki>{{MONTHABBREV|june}}</nowiki></tt> returns {{MONTHABBREV|june}}
: <tt><nowiki>{{MONTHABBREV|july}}</nowiki></tt> returns {{MONTHABBREV|july}}
: <tt><nowiki>{{MONTHABBREV|august}}</nowiki></tt> returns {{MONTHABBREV|august}}
: <tt><nowiki>{{MONTHABBREV|september}}</nowiki></tt> returns {{MONTHABBREV|september}}
: <tt><nowiki>{{MONTHABBREV|october}}</nowiki></tt> returns {{MONTHABBREV|october}}
: <tt><nowiki>{{MONTHABBREV|november}}</nowiki></tt> returns {{MONTHABBREV|november}}
: <tt><nowiki>{{MONTHABBREV|december}}</nowiki></tt> returns {{MONTHABBREV|december}}

=== Examples for all abbreviated English month names ===
: <tt><nowiki>{{MONTHABBREV|JAN}}</nowiki></tt> returns {{MONTHABBREV|JAN}}
: <tt><nowiki>{{MONTHABBREV|FEB}}</nowiki></tt> returns {{MONTHABBREV|FEB}}
: <tt><nowiki>{{MONTHABBREV|MAR}}</nowiki></tt> returns {{MONTHABBREV|MAR}}
: <tt><nowiki>{{MONTHABBREV|APR}}</nowiki></tt> returns {{MONTHABBREV|APR}}
: <tt><nowiki>{{MONTHABBREV|MAY}}</nowiki></tt> returns {{MONTHABBREV|MAY}}
: <tt><nowiki>{{MONTHABBREV|JUN}}</nowiki></tt> returns {{MONTHABBREV|JUN}}
: <tt><nowiki>{{MONTHABBREV|JUL}}</nowiki></tt> returns {{MONTHABBREV|JUL}}
: <tt><nowiki>{{MONTHABBREV|AUG}}</nowiki></tt> returns {{MONTHABBREV|AUG}}
: <tt><nowiki>{{MONTHABBREV|SEP}}</nowiki></tt> returns {{MONTHABBREV|SEP}}
: <tt><nowiki>{{MONTHABBREV|OCT}}</nowiki></tt> returns {{MONTHABBREV|OCT}}
: <tt><nowiki>{{MONTHABBREV|NOV}}</nowiki></tt> returns {{MONTHABBREV|NOV}}
: <tt><nowiki>{{MONTHABBREV|DEC}}</nowiki></tt> returns {{MONTHABBREV|DEC}}

=== Examples for all standard month numbers ===
: <tt><nowiki>{{MONTHABBREV|1}}</nowiki></tt> returns {{MONTHABBREV|1}}
: <tt><nowiki>{{MONTHABBREV|2}}</nowiki></tt> returns {{MONTHABBREV|2}}
: <tt><nowiki>{{MONTHABBREV|3}}</nowiki></tt> returns {{MONTHABBREV|3}}
: <tt><nowiki>{{MONTHABBREV|4}}</nowiki></tt> returns {{MONTHABBREV|4}}
: <tt><nowiki>{{MONTHABBREV|5}}</nowiki></tt> returns {{MONTHABBREV|5}}
: <tt><nowiki>{{MONTHABBREV|6}}</nowiki></tt> returns {{MONTHABBREV|6}}
: <tt><nowiki>{{MONTHABBREV|7}}</nowiki></tt> returns {{MONTHABBREV|7}}
: <tt><nowiki>{{MONTHABBREV|8}}</nowiki></tt> returns {{MONTHABBREV|8}}
: <tt><nowiki>{{MONTHABBREV|9}}</nowiki></tt> returns {{MONTHABBREV|9}}
: <tt><nowiki>{{MONTHABBREV|10}}</nowiki></tt> returns {{MONTHABBREV|10}}
: <tt><nowiki>{{MONTHABBREV|11}}</nowiki></tt> returns {{MONTHABBREV|11}}
: <tt><nowiki>{{MONTHABBREV|12}}</nowiki></tt> returns {{MONTHABBREV|12}}

=== Examples for month numbers with extra leading zero ===
: <tt><nowiki>{{MONTHABBREV|01}}</nowiki></tt> returns {{MONTHABBREV|01}}
: <tt><nowiki>{{MONTHABBREV|02}}</nowiki></tt> returns {{MONTHABBREV|02}}
: <tt><nowiki>{{MONTHABBREV|03}}</nowiki></tt> returns {{MONTHABBREV|03}}
: <tt><nowiki>{{MONTHABBREV|04}}</nowiki></tt> returns {{MONTHABBREV|04}}
: <tt><nowiki>{{MONTHABBREV|05}}</nowiki></tt> returns {{MONTHABBREV|05}}
: <tt><nowiki>{{MONTHABBREV|06}}</nowiki></tt> returns {{MONTHABBREV|06}}
: <tt><nowiki>{{MONTHABBREV|07}}</nowiki></tt> returns {{MONTHABBREV|07}}
: <tt><nowiki>{{MONTHABBREV|08}}</nowiki></tt> returns {{MONTHABBREV|08}}
: <tt><nowiki>{{MONTHABBREV|09}}</nowiki></tt> returns {{MONTHABBREV|09}}

=== Examples for month number underflows and overflows, from computed values ===
: <tt><nowiki>{{MONTHABBREV|-1200}}</nowiki></tt> returns {{MONTHABBREV|-1200}}
: <tt><nowiki>{{MONTHABBREV|-1201}}</nowiki></tt> returns {{MONTHABBREV|-1201}}
: <tt><nowiki>{{MONTHABBREV|-1212}}</nowiki></tt> returns {{MONTHABBREV|-1212}}
: <tt><nowiki>{{MONTHABBREV|-12}}</nowiki></tt> returns {{MONTHABBREV|-12}}
: <tt><nowiki>{{MONTHABBREV|-11}}</nowiki></tt> returns {{MONTHABBREV|-11}}
: <tt><nowiki>{{MONTHABBREV|-10}}</nowiki></tt> returns {{MONTHABBREV|-10}}
: <tt><nowiki>{{MONTHABBREV|-9}}</nowiki></tt> returns {{MONTHABBREV|-9}}
: <tt><nowiki>{{MONTHABBREV|-3}}</nowiki></tt> returns {{MONTHABBREV|-2}}
: <tt><nowiki>{{MONTHABBREV|-2}}</nowiki></tt> returns {{MONTHABBREV|-2}}
: <tt><nowiki>{{MONTHABBREV|-1}}</nowiki></tt> returns {{MONTHABBREV|-1}}
: <tt><nowiki>{{MONTHABBREV|0}}</nowiki></tt> returns {{MONTHABBREV|0}}
: <tt><nowiki>{{MONTHABBREV|13}}</nowiki></tt> returns {{MONTHABBREV|13}}
: <tt><nowiki>{{MONTHABBREV|14}}</nowiki></tt> returns {{MONTHABBREV|14}}
: <tt><nowiki>{{MONTHABBREV|15}}</nowiki></tt> returns {{MONTHABBREV|15}}
: <tt><nowiki>{{MONTHABBREV|16}}</nowiki></tt> returns {{MONTHABBREV|16}}
: <tt><nowiki>{{MONTHABBREV|23}}</nowiki></tt> returns {{MONTHABBREV|23}}
: <tt><nowiki>{{MONTHABBREV|24}}</nowiki></tt> returns {{MONTHABBREV|24}}
: <tt><nowiki>{{MONTHABBREV|25}}</nowiki></tt> returns {{MONTHABBREV|25}}
: <tt><nowiki>{{MONTHABBREV|1200}}</nowiki></tt> returns {{MONTHABBREV|1200}}
: <tt><nowiki>{{MONTHABBREV|1201}}</nowiki></tt> returns {{MONTHABBREV|1201}}
: <tt><nowiki>{{MONTHABBREV|1212}}</nowiki></tt> returns {{MONTHABBREV|1212}}

=== See also ===
{{Calendar, clock, date and time computing templates}}

<includeonly>
[[Category:Date-computing templates|MONTHABBREV]]

<!-- Interwiki links below here -->
</includeonly>
Anonymous user