Template:MONTH/doc

This template returns the cyclic integer month number in ISO format (between 01 and 12) of the month whose real number is in parameter. Alternatively, the month…

Template:MONTH/doc

This template returns the cyclic integer month number in ISO format (between 01 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).

Syntax:
{{MONTH|month}}
  • The month value is interpreted modulo 12 (extra leading zeroes are ignored, negative numbers are accepted, all numbers are rounded to floor).
Examples for all standard English month names:
{{MONTH|january}} returns 01
{{MONTH|february}} returns 02
{{MONTH|march}} returns 03
{{MONTH|april}} returns 04
{{MONTH|may}} returns 05
{{MONTH|june}} returns 06
{{MONTH|july}} returns 07
{{MONTH|august}} returns 08
{{MONTH|september}} returns 09
{{MONTH|october}} returns 10
{{MONTH|november}} returns 11
{{MONTH|december}} returns 12
Examples for all abbreviated English month names:
{{MONTH|jan}} returns 01
{{MONTH|feb}} returns 02
{{MONTH|mar}} returns 03
{{MONTH|apr}} returns 04
{{MONTH|may}} returns 05
{{MONTH|jun}} returns 06
{{MONTH|jul}} returns 07
{{MONTH|aug}} returns 08
{{MONTH|sep}} returns 09
{{MONTH|oct}} returns 10
{{MONTH|nov}} returns 11
{{MONTH|dec}} returns 12
Examples for all standard month numbers:
{{MONTH|1}} returns 01
{{MONTH|2}} returns 02
{{MONTH|3}} returns 03
{{MONTH|4}} returns 04
{{MONTH|5}} returns 05
{{MONTH|6}} returns 06
{{MONTH|7}} returns 07
{{MONTH|8}} returns 08
{{MONTH|9}} returns 09
{{MONTH|10}} returns 10
{{MONTH|11}} returns 11
{{MONTH|12}} returns 12
Examples for month numbers with extra leading zero:
{{MONTH|01}} returns 01
{{MONTH|02}} returns 02
{{MONTH|03}} returns 03
{{MONTH|04}} returns 04
{{MONTH|05}} returns 05
{{MONTH|06}} returns 06
{{MONTH|07}} returns 07
{{MONTH|08}} returns 08
{{MONTH|09}} returns 09
Examples for month number underflows and overflows, from computed values:
{{MONTH|-1200}} returns 12
{{MONTH|-1201}} returns 11
{{MONTH|-1212}} returns 12
{{MONTH|-12}} returns 12
{{MONTH|-11}} returns 01
{{MONTH|-10}} returns 02
{{MONTH|-9}} returns 03
{{MONTH|-8}} returns 04
{{MONTH|-7}} returns 05
{{MONTH|-6}} returns 06
{{MONTH|-5}} returns 07
{{MONTH|-4}} returns 08
{{MONTH|-3}} returns 09
{{MONTH|-2}} returns 10
{{MONTH|-1}} returns 11
{{MONTH|-0.9999}} returns 11
{{MONTH|-0.5}} returns 11
{{MONTH|-0.0001}} returns 11
{{MONTH|0}} returns 12
{{MONTH|0.0001}} returns 12
{{MONTH|0.5}} returns 12
{{MONTH|0.9999}} returns 12
{{MONTH|12.0001}} returns 12
{{MONTH|12.5}} returns 12
{{MONTH|12.9999}} returns 12
{{MONTH|13}} returns 01
{{MONTH|14}} returns 02
{{MONTH|24}} returns 12
{{MONTH|1200}} returns 12
{{MONTH|1201}} returns 01
{{MONTH|1212}} returns 12
Example for invalid month name:
{{MONTH|xxx}} returns Expression error: Unrecognized word "xxx".


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.