Template:MONTHNUMBER: Difference between revisions
Jump to navigation
Jump to search
Rexster930 (talk | contribs) Created page with "<includeonly>{{#if:{{{1|}}} |{{#switch:{{lc:{{{1}}}}} |january|jan=1 |february|feb=2 |march|mar=3 |apr|april=4 |may=5 |june|jun=6 |july|jul=7 |august|aug=8 |september|sep|sept=9 |october|oct=10 |november|nov=11 |december|dec=12 |{{#ifexpr:{{{1}}}<0 |{{#ifexpr:(({{{1}}})round 0)!=({{{1}}}) |{{#expr:12-(((0.5-({{{1}}}))round 0)mod 12)}} |{{#expr:12-(((11.5-({{{1}}}))round 0)mod 12)}} }} |{{#expr:(((10.5+{{{1}}})round 0)mod 12)+1}}..." |
Fix date formatting, validate calendar dates and calculate completed age |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#invoke:Expanded dates|monthnumber}}</includeonly><noinclude> | ||
;Description | |||
:Returns a month number from 1 to 12. Accepts leading zeros, English month names and abbreviations, without regard to case. | |||
;Syntax | |||
:{{t|MONTHNUMBER|month}} | |||
;Example | |||
:{{MONTHNUMBER|February}} | |||
[[Category:General templates]] | |||
</noinclude> | |||
</ | |||
Latest revision as of 03:03, 12 October 2026
- Description
- Returns a month number from 1 to 12. Accepts leading zeros, English month names and abbreviations, without regard to case.
- Syntax
{{MONTHNUMBER|<month>}}- Example
- 2