|
|
(16 intermediate revisions by 11 users not shown) |
Line 1: |
Line 1: |
| <includeonly>{{#if:{{{1|}}}|{{#switch:{{MONTHNUMBER|{{{1}}}}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=''month''!}}|Missing required parameter 1=''month''!}}</includeonly><noinclude>{{Template documentation}} | | <includeonly>{{#if:{{{1|}}}|{{#switch:{{MONTHNUMBER|{{{1}}}}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=''month''!}}|Missing required parameter 1=''month''!}}</includeonly><noinclude> |
| 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.
| | {{documentation}} |
| ; Syntax<nowiki>:</nowiki>
| | [[Category:Templates]] |
| : <tt><nowiki>{{</nowiki>MONTHNAME|</tt>''month''<tt>}}</tt>
| |
| * The ''month'' value is interpreted modulo 12 (extra leading zeroes and decimals are ignored).
| |
| | |
| ; Synonym<nowiki>:</nowiki>
| |
| * [[Template:Month name]]
| |
| | |
| ; Examples for all standard English month names<nowiki>:</nowiki>
| |
| : <tt><nowiki>{{MONTHNAME|JANUARY}}</nowiki></tt> returns {{MONTHNAME|JANUARY}}
| |
| : <tt><nowiki>{{MONTHNAME|FEBRUARY}}</nowiki></tt> returns {{MONTHNAME|FEBRUARY}}
| |
| : <tt><nowiki>{{MONTHNAME|MARCH}}</nowiki></tt> returns {{MONTHNAME|MARCH}}
| |
| : <tt><nowiki>{{MONTHNAME|APRIL}}</nowiki></tt> returns {{MONTHNAME|APRIL}}
| |
| : <tt><nowiki>{{MONTHNAME|MAY}}</nowiki></tt> returns {{MONTHNAME|MAY}}
| |
| : <tt><nowiki>{{MONTHNAME|JUNE}}</nowiki></tt> returns {{MONTHNAME|JUNE}}
| |
| : <tt><nowiki>{{MONTHNAME|JULY}}</nowiki></tt> returns {{MONTHNAME|JULY}}
| |
| : <tt><nowiki>{{MONTHNAME|AUGUST}}</nowiki></tt> returns {{MONTHNAME|AUGUST}}
| |
| : <tt><nowiki>{{MONTHNAME|SEPTEMBER}}</nowiki></tt> returns {{MONTHNAME|SEPTEMBER}}
| |
| : <tt><nowiki>{{MONTHNAME|OCTOBER}}</nowiki></tt> returns {{MONTHNAME|OCTOBER}}
| |
| : <tt><nowiki>{{MONTHNAME|NOVEMBER}}</nowiki></tt> returns {{MONTHNAME|NOVEMBER}}
| |
| : <tt><nowiki>{{MONTHNAME|DECEMBER}}</nowiki></tt> returns {{MONTHNAME|DECEMBER}}
| |
| | |
| ; Examples for all abbreviated English month names<nowiki>:</nowiki>
| |
| : <tt><nowiki>{{MONTHNAME|jan}}</nowiki></tt> returns {{MONTHNAME|jan}}
| |
| : <tt><nowiki>{{MONTHNAME|feb}}</nowiki></tt> returns {{MONTHNAME|feb}}
| |
| : <tt><nowiki>{{MONTHNAME|mar}}</nowiki></tt> returns {{MONTHNAME|mar}}
| |
| : <tt><nowiki>{{MONTHNAME|apr}}</nowiki></tt> returns {{MONTHNAME|apr}}
| |
| : <tt><nowiki>{{MONTHNAME|may}}</nowiki></tt> returns {{MONTHNAME|may}}
| |
| : <tt><nowiki>{{MONTHNAME|jun}}</nowiki></tt> returns {{MONTHNAME|jun}}
| |
| : <tt><nowiki>{{MONTHNAME|jul}}</nowiki></tt> returns {{MONTHNAME|jul}}
| |
| : <tt><nowiki>{{MONTHNAME|aug}}</nowiki></tt> returns {{MONTHNAME|aug}}
| |
| : <tt><nowiki>{{MONTHNAME|sep}}</nowiki></tt> returns {{MONTHNAME|sep}}
| |
| : <tt><nowiki>{{MONTHNAME|oct}}</nowiki></tt> returns {{MONTHNAME|oct}}
| |
| : <tt><nowiki>{{MONTHNAME|nov}}</nowiki></tt> returns {{MONTHNAME|nov}}
| |
| : <tt><nowiki>{{MONTHNAME|dec}}</nowiki></tt> returns {{MONTHNAME|dec}}
| |
| | |
| ; Examples for all standard month numbers<nowiki>:</nowiki>
| |
| : <tt><nowiki>{{MONTHNAME|1}}</nowiki></tt> returns {{MONTHNAME|1}}
| |
| : <tt><nowiki>{{MONTHNAME|2}}</nowiki></tt> returns {{MONTHNAME|2}}
| |
| : <tt><nowiki>{{MONTHNAME|3}}</nowiki></tt> returns {{MONTHNAME|3}}
| |
| : <tt><nowiki>{{MONTHNAME|4}}</nowiki></tt> returns {{MONTHNAME|4}}
| |
| : <tt><nowiki>{{MONTHNAME|5}}</nowiki></tt> returns {{MONTHNAME|5}}
| |
| : <tt><nowiki>{{MONTHNAME|6}}</nowiki></tt> returns {{MONTHNAME|6}}
| |
| : <tt><nowiki>{{MONTHNAME|7}}</nowiki></tt> returns {{MONTHNAME|7}}
| |
| : <tt><nowiki>{{MONTHNAME|8}}</nowiki></tt> returns {{MONTHNAME|8}}
| |
| : <tt><nowiki>{{MONTHNAME|9}}</nowiki></tt> returns {{MONTHNAME|9}}
| |
| : <tt><nowiki>{{MONTHNAME|10}}</nowiki></tt> returns {{MONTHNAME|10}}
| |
| : <tt><nowiki>{{MONTHNAME|11}}</nowiki></tt> returns {{MONTHNAME|11}}
| |
| : <tt><nowiki>{{MONTHNAME|12}}</nowiki></tt> returns {{MONTHNAME|12}}
| |
| | |
| ; Examples for month numbers with extra leading zero<nowiki>:</nowiki>
| |
| : <tt><nowiki>{{MONTHNAME|01}}</nowiki></tt> returns {{MONTHNAME|01}}
| |
| : <tt><nowiki>{{MONTHNAME|02}}</nowiki></tt> returns {{MONTHNAME|02}}
| |
| : <tt><nowiki>{{MONTHNAME|03}}</nowiki></tt> returns {{MONTHNAME|03}}
| |
| : <tt><nowiki>{{MONTHNAME|04}}</nowiki></tt> returns {{MONTHNAME|04}}
| |
| : <tt><nowiki>{{MONTHNAME|05}}</nowiki></tt> returns {{MONTHNAME|05}}
| |
| : <tt><nowiki>{{MONTHNAME|06}}</nowiki></tt> returns {{MONTHNAME|06}}
| |
| : <tt><nowiki>{{MONTHNAME|07}}</nowiki></tt> returns {{MONTHNAME|07}}
| |
| : <tt><nowiki>{{MONTHNAME|08}}</nowiki></tt> returns {{MONTHNAME|08}}
| |
| : <tt><nowiki>{{MONTHNAME|09}}</nowiki></tt> returns {{MONTHNAME|09}}
| |
| | |
| ; Examples for month number cyclic underflows and overflows, from computed values<nowiki>:</nowiki>
| |
| : <tt><nowiki>{{MONTHNAME|-12}}</nowiki></tt> returns {{MONTHNAME|-12}}
| |
| : <tt><nowiki>{{MONTHNAME|-11}}</nowiki></tt> returns {{MONTHNAME|-11}}
| |
| : <tt><nowiki>{{MONTHNAME|-10}}</nowiki></tt> returns {{MONTHNAME|-10}}
| |
| : <tt><nowiki>{{MONTHNAME|-9}}</nowiki></tt> returns {{MONTHNAME|-9}}
| |
| : <tt><nowiki>{{MONTHNAME|-3}}</nowiki></tt> returns {{MONTHNAME|-2}}
| |
| : <tt><nowiki>{{MONTHNAME|-2}}</nowiki></tt> returns {{MONTHNAME|-2}}
| |
| : <tt><nowiki>{{MONTHNAME|-1}}</nowiki></tt> returns {{MONTHNAME|-1}}
| |
| : <tt><nowiki>{{MONTHNAME|0}}</nowiki></tt> returns {{MONTHNAME|0}}
| |
| : <tt><nowiki>{{MONTHNAME|13}}</nowiki></tt> returns {{MONTHNAME|13}}
| |
| : <tt><nowiki>{{MONTHNAME|14}}</nowiki></tt> returns {{MONTHNAME|14}}
| |
| : <tt><nowiki>{{MONTHNAME|15}}</nowiki></tt> returns {{MONTHNAME|15}}
| |
| : <tt><nowiki>{{MONTHNAME|16}}</nowiki></tt> returns {{MONTHNAME|16}}
| |
| : <tt><nowiki>{{MONTHNAME|23}}</nowiki></tt> returns {{MONTHNAME|23}}
| |
| : <tt><nowiki>{{MONTHNAME|24}}</nowiki></tt> returns {{MONTHNAME|24}}
| |
| : <tt><nowiki>{{MONTHNAME|25}}</nowiki></tt> returns {{MONTHNAME|25}}
| |
| : <tt><nowiki>{{MONTHNAME|1200}}</nowiki></tt> returns {{MONTHNAME|1200}}
| |
| : <tt><nowiki>{{MONTHNAME|1201}}</nowiki></tt> returns {{MONTHNAME|1201}}
| |
| : <tt><nowiki>{{MONTHNAME|1212}}</nowiki></tt> returns {{MONTHNAME|1212}}
| |
| | |
| ; See also<nowiki>:</nowiki>
| |
| : [[Template:MONTHNUMBER]]
| |
| : [[Template:MONTHABBREV]]
| |
| : [[Template:CURRENTMONTHNAME]]
| |
| | |
| [[Category:Date computing template|MONTHNAME]] | |
| | |
| [[fr:Modèle:MONTHNAME]]
| |
| </noinclude> | | </noinclude> |