Minecraft Wiki
Minecraft Wiki
Game widow (Συζήτηση | συνεισφορές)
μ (Εισήχθη 1 αναθεώρηση)
MajrBot (Συζήτηση | συνεισφορές)
(Replace long obsolete <tt> with <code>)
 
Γραμμή 7: Γραμμή 7:
   
 
; Syntax<nowiki>:</nowiki>
 
; Syntax<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHNUMBER|</nowiki></tt>''month''<tt><nowiki>}}</nowiki></tt>
+
: <code><nowiki>{{MONTHNUMBER|</nowiki></code>''month''<code><nowiki>}}</nowiki></code>
 
* The ''month'' value is interpreted modulo 12 (extra leading zeroes are ignored, negative numbers are accepted, all numbers are rounded to floor).
 
* The ''month'' value is interpreted modulo 12 (extra leading zeroes are ignored, negative numbers are accepted, all numbers are rounded to floor).
 
* If the month name is unspecified, it defaults to the current month.
 
* If the month name is unspecified, it defaults to the current month.
   
 
; Examples for all standard English month names<nowiki>:</nowiki>
 
; Examples for all standard English month names<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHNUMBER|january}}</nowiki></tt> returns {{MONTHNUMBER|january}}
+
: <code><nowiki>{{MONTHNUMBER|january}}</nowiki></code> returns {{MONTHNUMBER|january}}
: <tt><nowiki>{{MONTHNUMBER|february}}</nowiki></tt> returns {{MONTHNUMBER|february}}
+
: <code><nowiki>{{MONTHNUMBER|february}}</nowiki></code> returns {{MONTHNUMBER|february}}
: <tt><nowiki>{{MONTHNUMBER|march}}</nowiki></tt> returns {{MONTHNUMBER|march}}
+
: <code><nowiki>{{MONTHNUMBER|march}}</nowiki></code> returns {{MONTHNUMBER|march}}
: <tt><nowiki>{{MONTHNUMBER|april}}</nowiki></tt> returns {{MONTHNUMBER|april}}
+
: <code><nowiki>{{MONTHNUMBER|april}}</nowiki></code> returns {{MONTHNUMBER|april}}
: <tt><nowiki>{{MONTHNUMBER|may}}</nowiki></tt> returns {{MONTHNUMBER|may}}
+
: <code><nowiki>{{MONTHNUMBER|may}}</nowiki></code> returns {{MONTHNUMBER|may}}
: <tt><nowiki>{{MONTHNUMBER|june}}</nowiki></tt> returns {{MONTHNUMBER|june}}
+
: <code><nowiki>{{MONTHNUMBER|june}}</nowiki></code> returns {{MONTHNUMBER|june}}
: <tt><nowiki>{{MONTHNUMBER|july}}</nowiki></tt> returns {{MONTHNUMBER|july}}
+
: <code><nowiki>{{MONTHNUMBER|july}}</nowiki></code> returns {{MONTHNUMBER|july}}
: <tt><nowiki>{{MONTHNUMBER|august}}</nowiki></tt> returns {{MONTHNUMBER|august}}
+
: <code><nowiki>{{MONTHNUMBER|august}}</nowiki></code> returns {{MONTHNUMBER|august}}
: <tt><nowiki>{{MONTHNUMBER|september}}</nowiki></tt> returns {{MONTHNUMBER|september}}
+
: <code><nowiki>{{MONTHNUMBER|september}}</nowiki></code> returns {{MONTHNUMBER|september}}
: <tt><nowiki>{{MONTHNUMBER|october}}</nowiki></tt> returns {{MONTHNUMBER|october}}
+
: <code><nowiki>{{MONTHNUMBER|october}}</nowiki></code> returns {{MONTHNUMBER|october}}
: <tt><nowiki>{{MONTHNUMBER|november}}</nowiki></tt> returns {{MONTHNUMBER|november}}
+
: <code><nowiki>{{MONTHNUMBER|november}}</nowiki></code> returns {{MONTHNUMBER|november}}
: <tt><nowiki>{{MONTHNUMBER|december}}</nowiki></tt> returns {{MONTHNUMBER|december}}
+
: <code><nowiki>{{MONTHNUMBER|december}}</nowiki></code> returns {{MONTHNUMBER|december}}
   
 
; Examples for all abbreviated English month names<nowiki>:</nowiki>
 
; Examples for all abbreviated English month names<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHNUMBER|jan}}</nowiki></tt> returns {{MONTHNUMBER|jan}}
+
: <code><nowiki>{{MONTHNUMBER|jan}}</nowiki></code> returns {{MONTHNUMBER|jan}}
: <tt><nowiki>{{MONTHNUMBER|feb}}</nowiki></tt> returns {{MONTHNUMBER|feb}}
+
: <code><nowiki>{{MONTHNUMBER|feb}}</nowiki></code> returns {{MONTHNUMBER|feb}}
: <tt><nowiki>{{MONTHNUMBER|mar}}</nowiki></tt> returns {{MONTHNUMBER|mar}}
+
: <code><nowiki>{{MONTHNUMBER|mar}}</nowiki></code> returns {{MONTHNUMBER|mar}}
: <tt><nowiki>{{MONTHNUMBER|apr}}</nowiki></tt> returns {{MONTHNUMBER|apr}}
+
: <code><nowiki>{{MONTHNUMBER|apr}}</nowiki></code> returns {{MONTHNUMBER|apr}}
: <tt><nowiki>{{MONTHNUMBER|may}}</nowiki></tt> returns {{MONTHNUMBER|may}}
+
: <code><nowiki>{{MONTHNUMBER|may}}</nowiki></code> returns {{MONTHNUMBER|may}}
: <tt><nowiki>{{MONTHNUMBER|jun}}</nowiki></tt> returns {{MONTHNUMBER|jun}}
+
: <code><nowiki>{{MONTHNUMBER|jun}}</nowiki></code> returns {{MONTHNUMBER|jun}}
: <tt><nowiki>{{MONTHNUMBER|jul}}</nowiki></tt> returns {{MONTHNUMBER|jul}}
+
: <code><nowiki>{{MONTHNUMBER|jul}}</nowiki></code> returns {{MONTHNUMBER|jul}}
: <tt><nowiki>{{MONTHNUMBER|aug}}</nowiki></tt> returns {{MONTHNUMBER|aug}}
+
: <code><nowiki>{{MONTHNUMBER|aug}}</nowiki></code> returns {{MONTHNUMBER|aug}}
: <tt><nowiki>{{MONTHNUMBER|sep}}</nowiki></tt> returns {{MONTHNUMBER|sep}}
+
: <code><nowiki>{{MONTHNUMBER|sep}}</nowiki></code> returns {{MONTHNUMBER|sep}}
: <tt><nowiki>{{MONTHNUMBER|oct}}</nowiki></tt> returns {{MONTHNUMBER|oct}}
+
: <code><nowiki>{{MONTHNUMBER|oct}}</nowiki></code> returns {{MONTHNUMBER|oct}}
: <tt><nowiki>{{MONTHNUMBER|nov}}</nowiki></tt> returns {{MONTHNUMBER|nov}}
+
: <code><nowiki>{{MONTHNUMBER|nov}}</nowiki></code> returns {{MONTHNUMBER|nov}}
: <tt><nowiki>{{MONTHNUMBER|dec}}</nowiki></tt> returns {{MONTHNUMBER|dec}}
+
: <code><nowiki>{{MONTHNUMBER|dec}}</nowiki></code> returns {{MONTHNUMBER|dec}}
   
 
; Examples for all standard month numbers<nowiki>:</nowiki>
 
; Examples for all standard month numbers<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHNUMBER|1}}</nowiki></tt> returns {{MONTHNUMBER|1}}
+
: <code><nowiki>{{MONTHNUMBER|1}}</nowiki></code> returns {{MONTHNUMBER|1}}
: <tt><nowiki>{{MONTHNUMBER|2}}</nowiki></tt> returns {{MONTHNUMBER|2}}
+
: <code><nowiki>{{MONTHNUMBER|2}}</nowiki></code> returns {{MONTHNUMBER|2}}
: <tt><nowiki>{{MONTHNUMBER|3}}</nowiki></tt> returns {{MONTHNUMBER|3}}
+
: <code><nowiki>{{MONTHNUMBER|3}}</nowiki></code> returns {{MONTHNUMBER|3}}
: <tt><nowiki>{{MONTHNUMBER|4}}</nowiki></tt> returns {{MONTHNUMBER|4}}
+
: <code><nowiki>{{MONTHNUMBER|4}}</nowiki></code> returns {{MONTHNUMBER|4}}
: <tt><nowiki>{{MONTHNUMBER|5}}</nowiki></tt> returns {{MONTHNUMBER|5}}
+
: <code><nowiki>{{MONTHNUMBER|5}}</nowiki></code> returns {{MONTHNUMBER|5}}
: <tt><nowiki>{{MONTHNUMBER|6}}</nowiki></tt> returns {{MONTHNUMBER|6}}
+
: <code><nowiki>{{MONTHNUMBER|6}}</nowiki></code> returns {{MONTHNUMBER|6}}
: <tt><nowiki>{{MONTHNUMBER|7}}</nowiki></tt> returns {{MONTHNUMBER|7}}
+
: <code><nowiki>{{MONTHNUMBER|7}}</nowiki></code> returns {{MONTHNUMBER|7}}
: <tt><nowiki>{{MONTHNUMBER|8}}</nowiki></tt> returns {{MONTHNUMBER|8}}
+
: <code><nowiki>{{MONTHNUMBER|8}}</nowiki></code> returns {{MONTHNUMBER|8}}
: <tt><nowiki>{{MONTHNUMBER|9}}</nowiki></tt> returns {{MONTHNUMBER|9}}
+
: <code><nowiki>{{MONTHNUMBER|9}}</nowiki></code> returns {{MONTHNUMBER|9}}
: <tt><nowiki>{{MONTHNUMBER|10}}</nowiki></tt> returns {{MONTHNUMBER|10}}
+
: <code><nowiki>{{MONTHNUMBER|10}}</nowiki></code> returns {{MONTHNUMBER|10}}
: <tt><nowiki>{{MONTHNUMBER|11}}</nowiki></tt> returns {{MONTHNUMBER|11}}
+
: <code><nowiki>{{MONTHNUMBER|11}}</nowiki></code> returns {{MONTHNUMBER|11}}
: <tt><nowiki>{{MONTHNUMBER|12}}</nowiki></tt> returns {{MONTHNUMBER|12}}
+
: <code><nowiki>{{MONTHNUMBER|12}}</nowiki></code> returns {{MONTHNUMBER|12}}
   
 
; Examples for month numbers with extra leading zero<nowiki>:</nowiki>
 
; Examples for month numbers with extra leading zero<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHNUMBER|01}}</nowiki></tt> returns {{MONTHNUMBER|01}}
+
: <code><nowiki>{{MONTHNUMBER|01}}</nowiki></code> returns {{MONTHNUMBER|01}}
: <tt><nowiki>{{MONTHNUMBER|02}}</nowiki></tt> returns {{MONTHNUMBER|02}}
+
: <code><nowiki>{{MONTHNUMBER|02}}</nowiki></code> returns {{MONTHNUMBER|02}}
: <tt><nowiki>{{MONTHNUMBER|03}}</nowiki></tt> returns {{MONTHNUMBER|03}}
+
: <code><nowiki>{{MONTHNUMBER|03}}</nowiki></code> returns {{MONTHNUMBER|03}}
: <tt><nowiki>{{MONTHNUMBER|04}}</nowiki></tt> returns {{MONTHNUMBER|04}}
+
: <code><nowiki>{{MONTHNUMBER|04}}</nowiki></code> returns {{MONTHNUMBER|04}}
: <tt><nowiki>{{MONTHNUMBER|05}}</nowiki></tt> returns {{MONTHNUMBER|05}}
+
: <code><nowiki>{{MONTHNUMBER|05}}</nowiki></code> returns {{MONTHNUMBER|05}}
: <tt><nowiki>{{MONTHNUMBER|06}}</nowiki></tt> returns {{MONTHNUMBER|06}}
+
: <code><nowiki>{{MONTHNUMBER|06}}</nowiki></code> returns {{MONTHNUMBER|06}}
: <tt><nowiki>{{MONTHNUMBER|07}}</nowiki></tt> returns {{MONTHNUMBER|07}}
+
: <code><nowiki>{{MONTHNUMBER|07}}</nowiki></code> returns {{MONTHNUMBER|07}}
: <tt><nowiki>{{MONTHNUMBER|08}}</nowiki></tt> returns {{MONTHNUMBER|08}}
+
: <code><nowiki>{{MONTHNUMBER|08}}</nowiki></code> returns {{MONTHNUMBER|08}}
: <tt><nowiki>{{MONTHNUMBER|09}}</nowiki></tt> returns {{MONTHNUMBER|09}}
+
: <code><nowiki>{{MONTHNUMBER|09}}</nowiki></code> returns {{MONTHNUMBER|09}}
   
 
; Examples for month number underflows and overflows, from computed values<nowiki>:</nowiki>
 
; Examples for month number underflows and overflows, from computed values<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHNUMBER|-1200}}</nowiki></tt> returns {{MONTHNUMBER|-1200}}
+
: <code><nowiki>{{MONTHNUMBER|-1200}}</nowiki></code> returns {{MONTHNUMBER|-1200}}
: <tt><nowiki>{{MONTHNUMBER|-1201}}</nowiki></tt> returns {{MONTHNUMBER|-1201}}
+
: <code><nowiki>{{MONTHNUMBER|-1201}}</nowiki></code> returns {{MONTHNUMBER|-1201}}
: <tt><nowiki>{{MONTHNUMBER|-1212}}</nowiki></tt> returns {{MONTHNUMBER|-1212}}
+
: <code><nowiki>{{MONTHNUMBER|-1212}}</nowiki></code> returns {{MONTHNUMBER|-1212}}
: <tt><nowiki>{{MONTHNUMBER|-12}}</nowiki></tt> returns {{MONTHNUMBER|-12}}
+
: <code><nowiki>{{MONTHNUMBER|-12}}</nowiki></code> returns {{MONTHNUMBER|-12}}
: <tt><nowiki>{{MONTHNUMBER|-11}}</nowiki></tt> returns {{MONTHNUMBER|-11}}
+
: <code><nowiki>{{MONTHNUMBER|-11}}</nowiki></code> returns {{MONTHNUMBER|-11}}
: <tt><nowiki>{{MONTHNUMBER|-10}}</nowiki></tt> returns {{MONTHNUMBER|-10}}
+
: <code><nowiki>{{MONTHNUMBER|-10}}</nowiki></code> returns {{MONTHNUMBER|-10}}
: <tt><nowiki>{{MONTHNUMBER|-9}}</nowiki></tt> returns {{MONTHNUMBER|-9}}
+
: <code><nowiki>{{MONTHNUMBER|-9}}</nowiki></code> returns {{MONTHNUMBER|-9}}
: <tt><nowiki>{{MONTHNUMBER|-8}}</nowiki></tt> returns {{MONTHNUMBER|-8}}
+
: <code><nowiki>{{MONTHNUMBER|-8}}</nowiki></code> returns {{MONTHNUMBER|-8}}
: <tt><nowiki>{{MONTHNUMBER|-7}}</nowiki></tt> returns {{MONTHNUMBER|-7}}
+
: <code><nowiki>{{MONTHNUMBER|-7}}</nowiki></code> returns {{MONTHNUMBER|-7}}
: <tt><nowiki>{{MONTHNUMBER|-6}}</nowiki></tt> returns {{MONTHNUMBER|-6}}
+
: <code><nowiki>{{MONTHNUMBER|-6}}</nowiki></code> returns {{MONTHNUMBER|-6}}
: <tt><nowiki>{{MONTHNUMBER|-5}}</nowiki></tt> returns {{MONTHNUMBER|-5}}
+
: <code><nowiki>{{MONTHNUMBER|-5}}</nowiki></code> returns {{MONTHNUMBER|-5}}
: <tt><nowiki>{{MONTHNUMBER|-4}}</nowiki></tt> returns {{MONTHNUMBER|-4}}
+
: <code><nowiki>{{MONTHNUMBER|-4}}</nowiki></code> returns {{MONTHNUMBER|-4}}
: <tt><nowiki>{{MONTHNUMBER|-3}}</nowiki></tt> returns {{MONTHNUMBER|-3}}
+
: <code><nowiki>{{MONTHNUMBER|-3}}</nowiki></code> returns {{MONTHNUMBER|-3}}
: <tt><nowiki>{{MONTHNUMBER|-2}}</nowiki></tt> returns {{MONTHNUMBER|-2}}
+
: <code><nowiki>{{MONTHNUMBER|-2}}</nowiki></code> returns {{MONTHNUMBER|-2}}
: <tt><nowiki>{{MONTHNUMBER|-1}}</nowiki></tt> returns {{MONTHNUMBER|-1}}
+
: <code><nowiki>{{MONTHNUMBER|-1}}</nowiki></code> returns {{MONTHNUMBER|-1}}
: <tt><nowiki>{{MONTHNUMBER|-0.9999}}</nowiki></tt> returns {{MONTHNUMBER|-0.9999}}
+
: <code><nowiki>{{MONTHNUMBER|-0.9999}}</nowiki></code> returns {{MONTHNUMBER|-0.9999}}
: <tt><nowiki>{{MONTHNUMBER|-0.5}}</nowiki></tt> returns {{MONTHNUMBER|-0.5}}
+
: <code><nowiki>{{MONTHNUMBER|-0.5}}</nowiki></code> returns {{MONTHNUMBER|-0.5}}
: <tt><nowiki>{{MONTHNUMBER|-0.0001}}</nowiki></tt> returns {{MONTHNUMBER|-0.0001}}
+
: <code><nowiki>{{MONTHNUMBER|-0.0001}}</nowiki></code> returns {{MONTHNUMBER|-0.0001}}
: <tt><nowiki>{{MONTHNUMBER|0}}</nowiki></tt> returns {{MONTHNUMBER|0}}
+
: <code><nowiki>{{MONTHNUMBER|0}}</nowiki></code> returns {{MONTHNUMBER|0}}
: <tt><nowiki>{{MONTHNUMBER|0.0001}}</nowiki></tt> returns {{MONTHNUMBER|0.0001}}
+
: <code><nowiki>{{MONTHNUMBER|0.0001}}</nowiki></code> returns {{MONTHNUMBER|0.0001}}
: <tt><nowiki>{{MONTHNUMBER|0.5}}</nowiki></tt> returns {{MONTHNUMBER|0}}
+
: <code><nowiki>{{MONTHNUMBER|0.5}}</nowiki></code> returns {{MONTHNUMBER|0}}
: <tt><nowiki>{{MONTHNUMBER|0.9999}}</nowiki></tt> returns {{MONTHNUMBER|0.9999}}
+
: <code><nowiki>{{MONTHNUMBER|0.9999}}</nowiki></code> returns {{MONTHNUMBER|0.9999}}
: <tt><nowiki>{{MONTHNUMBER|12.0001}}</nowiki></tt> returns {{MONTHNUMBER|12.0001}}
+
: <code><nowiki>{{MONTHNUMBER|12.0001}}</nowiki></code> returns {{MONTHNUMBER|12.0001}}
: <tt><nowiki>{{MONTHNUMBER|12.5}}</nowiki></tt> returns {{MONTHNUMBER|12.5}}
+
: <code><nowiki>{{MONTHNUMBER|12.5}}</nowiki></code> returns {{MONTHNUMBER|12.5}}
: <tt><nowiki>{{MONTHNUMBER|12.9999}}</nowiki></tt> returns {{MONTHNUMBER|12.9999}}
+
: <code><nowiki>{{MONTHNUMBER|12.9999}}</nowiki></code> returns {{MONTHNUMBER|12.9999}}
: <tt><nowiki>{{MONTHNUMBER|13}}</nowiki></tt> returns {{MONTHNUMBER|13}}
+
: <code><nowiki>{{MONTHNUMBER|13}}</nowiki></code> returns {{MONTHNUMBER|13}}
: <tt><nowiki>{{MONTHNUMBER|14}}</nowiki></tt> returns {{MONTHNUMBER|14}}
+
: <code><nowiki>{{MONTHNUMBER|14}}</nowiki></code> returns {{MONTHNUMBER|14}}
: <tt><nowiki>{{MONTHNUMBER|24}}</nowiki></tt> returns {{MONTHNUMBER|24}}
+
: <code><nowiki>{{MONTHNUMBER|24}}</nowiki></code> returns {{MONTHNUMBER|24}}
: <tt><nowiki>{{MONTHNUMBER|1200}}</nowiki></tt> returns {{MONTHNUMBER|1200}}
+
: <code><nowiki>{{MONTHNUMBER|1200}}</nowiki></code> returns {{MONTHNUMBER|1200}}
: <tt><nowiki>{{MONTHNUMBER|1201}}</nowiki></tt> returns {{MONTHNUMBER|1201}}
+
: <code><nowiki>{{MONTHNUMBER|1201}}</nowiki></code> returns {{MONTHNUMBER|1201}}
: <tt><nowiki>{{MONTHNUMBER|1212}}</nowiki></tt> returns {{MONTHNUMBER|1212}}
+
: <code><nowiki>{{MONTHNUMBER|1212}}</nowiki></code> returns {{MONTHNUMBER|1212}}
   
 
; Example for invalid month name<nowiki>:</nowiki>
 
; Example for invalid month name<nowiki>:</nowiki>
: <tt><nowiki>{{MONTHNUMBER|xx}}</nowiki></tt> returns {{MONTHNUMBER|xx}}
+
: <code><nowiki>{{MONTHNUMBER|xx}}</nowiki></code> returns {{MONTHNUMBER|xx}}
   
 
=== See also ===
 
=== See also ===

Τελευταία αναθεώρηση της 02:38, 14 Νοεμβρίου 2018

This is the documentation page, it should be transcluded into the main template page. See Πρότυπο:Documentation for more information

This template returns the cyclic integer month number (between 1 and 12) of the month whose real number is in parameter. Alternatively, the month can be given with its English name (complete or abbreviated to 3 characters, with capitals or small letters).

Usage

Does not play nicely with "subst:"

Syntax:
{{MONTHNUMBER|month}}
  • The month value is interpreted modulo 12 (extra leading zeroes are ignored, negative numbers are accepted, all numbers are rounded to floor).
  • If the month name is unspecified, it defaults to the current month.
Examples for all standard English month names:
{{MONTHNUMBER|january}} returns 1
{{MONTHNUMBER|february}} returns 2
{{MONTHNUMBER|march}} returns 3
{{MONTHNUMBER|april}} returns 4
{{MONTHNUMBER|may}} returns 5
{{MONTHNUMBER|june}} returns 6
{{MONTHNUMBER|july}} returns 7
{{MONTHNUMBER|august}} returns 8
{{MONTHNUMBER|september}} returns 9
{{MONTHNUMBER|october}} returns 10
{{MONTHNUMBER|november}} returns 11
{{MONTHNUMBER|december}} returns 12


Examples for all abbreviated English month names:
{{MONTHNUMBER|jan}} returns 1
{{MONTHNUMBER|feb}} returns 2
{{MONTHNUMBER|mar}} returns 3
{{MONTHNUMBER|apr}} returns 4
{{MONTHNUMBER|may}} returns 5
{{MONTHNUMBER|jun}} returns 6
{{MONTHNUMBER|jul}} returns 7
{{MONTHNUMBER|aug}} returns 8
{{MONTHNUMBER|sep}} returns 9
{{MONTHNUMBER|oct}} returns 10
{{MONTHNUMBER|nov}} returns 11
{{MONTHNUMBER|dec}} returns 12


Examples for all standard month numbers:
{{MONTHNUMBER|1}} returns 1
{{MONTHNUMBER|2}} returns 2
{{MONTHNUMBER|3}} returns 3
{{MONTHNUMBER|4}} returns 4
{{MONTHNUMBER|5}} returns 5
{{MONTHNUMBER|6}} returns 6
{{MONTHNUMBER|7}} returns 7
{{MONTHNUMBER|8}} returns 8
{{MONTHNUMBER|9}} returns 9
{{MONTHNUMBER|10}} returns 10
{{MONTHNUMBER|11}} returns 11
{{MONTHNUMBER|12}} returns 12


Examples for month numbers with extra leading zero:
{{MONTHNUMBER|01}} returns 1
{{MONTHNUMBER|02}} returns 2
{{MONTHNUMBER|03}} returns 3
{{MONTHNUMBER|04}} returns 4
{{MONTHNUMBER|05}} returns 5
{{MONTHNUMBER|06}} returns 6
{{MONTHNUMBER|07}} returns 7
{{MONTHNUMBER|08}} returns 8
{{MONTHNUMBER|09}} returns 9


Examples for month number underflows and overflows, from computed values:
{{MONTHNUMBER|-1200}} returns 12
{{MONTHNUMBER|-1201}} returns 11
{{MONTHNUMBER|-1212}} returns 12
{{MONTHNUMBER|-12}} returns 12
{{MONTHNUMBER|-11}} returns 1
{{MONTHNUMBER|-10}} returns 2
{{MONTHNUMBER|-9}} returns 3
{{MONTHNUMBER|-8}} returns 4
{{MONTHNUMBER|-7}} returns 5
{{MONTHNUMBER|-6}} returns 6
{{MONTHNUMBER|-5}} returns 7
{{MONTHNUMBER|-4}} returns 8
{{MONTHNUMBER|-3}} returns 9
{{MONTHNUMBER|-2}} returns 10
{{MONTHNUMBER|-1}} returns 11
{{MONTHNUMBER|-0.9999}} returns 11
{{MONTHNUMBER|-0.5}} returns 11
{{MONTHNUMBER|-0.0001}} returns 11
{{MONTHNUMBER|0}} returns 12
{{MONTHNUMBER|0.0001}} returns 12
{{MONTHNUMBER|0.5}} returns 12
{{MONTHNUMBER|0.9999}} returns 12
{{MONTHNUMBER|12.0001}} returns 12
{{MONTHNUMBER|12.5}} returns 12
{{MONTHNUMBER|12.9999}} returns 12
{{MONTHNUMBER|13}} returns 1
{{MONTHNUMBER|14}} returns 2
{{MONTHNUMBER|24}} returns 12
{{MONTHNUMBER|1200}} returns 12
{{MONTHNUMBER|1201}} returns 1
{{MONTHNUMBER|1212}} returns 12


Example for invalid month name:
{{MONTHNUMBER|xx}} returns Unrecognized month "xx".


See also