Mal:MONTHNAME

Fra ReidarWiki
Hopp til navigering Hopp til søk

{{#if:|{{#switch:{{#if:{{{1}}}|{{#switch:{{{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=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}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}

Documentation

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.

Syntax:
{{MONTHNAME|month}}
  • The month value is interpreted modulo 12 (extra leading zeroes and decimals are ignored).
Examples for all standard English month names:
{{MONTHNAME|JANUARY}} returns {{#if:JANUARY|{{#switch:{{#if:JANUARY|{{#switch:january|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:JANUARY<0|{{#ifexpr:((JANUARY)round 0)!=(JANUARY)|{{#expr:12-(((0.5-(JANUARY))round 0)mod 12)}}|{{#expr:12-(((11.5-(JANUARY))round 0)mod 12)}}}}|{{#expr:(((10.5+JANUARY)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|FEBRUARY}} returns {{#if:FEBRUARY|{{#switch:{{#if:FEBRUARY|{{#switch:february|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:FEBRUARY<0|{{#ifexpr:((FEBRUARY)round 0)!=(FEBRUARY)|{{#expr:12-(((0.5-(FEBRUARY))round 0)mod 12)}}|{{#expr:12-(((11.5-(FEBRUARY))round 0)mod 12)}}}}|{{#expr:(((10.5+FEBRUARY)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|MARCH}} returns {{#if:MARCH|{{#switch:{{#if:MARCH|{{#switch:march|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:MARCH<0|{{#ifexpr:((MARCH)round 0)!=(MARCH)|{{#expr:12-(((0.5-(MARCH))round 0)mod 12)}}|{{#expr:12-(((11.5-(MARCH))round 0)mod 12)}}}}|{{#expr:(((10.5+MARCH)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|APRIL}} returns {{#if:APRIL|{{#switch:{{#if:APRIL|{{#switch:april|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:APRIL<0|{{#ifexpr:((APRIL)round 0)!=(APRIL)|{{#expr:12-(((0.5-(APRIL))round 0)mod 12)}}|{{#expr:12-(((11.5-(APRIL))round 0)mod 12)}}}}|{{#expr:(((10.5+APRIL)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|MAY}} returns {{#if:MAY|{{#switch:{{#if:MAY|{{#switch:may|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:MAY<0|{{#ifexpr:((MAY)round 0)!=(MAY)|{{#expr:12-(((0.5-(MAY))round 0)mod 12)}}|{{#expr:12-(((11.5-(MAY))round 0)mod 12)}}}}|{{#expr:(((10.5+MAY)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|JUNE}} returns {{#if:JUNE|{{#switch:{{#if:JUNE|{{#switch:june|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:JUNE<0|{{#ifexpr:((JUNE)round 0)!=(JUNE)|{{#expr:12-(((0.5-(JUNE))round 0)mod 12)}}|{{#expr:12-(((11.5-(JUNE))round 0)mod 12)}}}}|{{#expr:(((10.5+JUNE)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|JULY}} returns {{#if:JULY|{{#switch:{{#if:JULY|{{#switch:july|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:JULY<0|{{#ifexpr:((JULY)round 0)!=(JULY)|{{#expr:12-(((0.5-(JULY))round 0)mod 12)}}|{{#expr:12-(((11.5-(JULY))round 0)mod 12)}}}}|{{#expr:(((10.5+JULY)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|AUGUST}} returns {{#if:AUGUST|{{#switch:{{#if:AUGUST|{{#switch:august|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:AUGUST<0|{{#ifexpr:((AUGUST)round 0)!=(AUGUST)|{{#expr:12-(((0.5-(AUGUST))round 0)mod 12)}}|{{#expr:12-(((11.5-(AUGUST))round 0)mod 12)}}}}|{{#expr:(((10.5+AUGUST)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|SEPTEMBER}} returns {{#if:SEPTEMBER|{{#switch:{{#if:SEPTEMBER|{{#switch:september|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:SEPTEMBER<0|{{#ifexpr:((SEPTEMBER)round 0)!=(SEPTEMBER)|{{#expr:12-(((0.5-(SEPTEMBER))round 0)mod 12)}}|{{#expr:12-(((11.5-(SEPTEMBER))round 0)mod 12)}}}}|{{#expr:(((10.5+SEPTEMBER)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|OCTOBER}} returns {{#if:OCTOBER|{{#switch:{{#if:OCTOBER|{{#switch:october|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:OCTOBER<0|{{#ifexpr:((OCTOBER)round 0)!=(OCTOBER)|{{#expr:12-(((0.5-(OCTOBER))round 0)mod 12)}}|{{#expr:12-(((11.5-(OCTOBER))round 0)mod 12)}}}}|{{#expr:(((10.5+OCTOBER)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|NOVEMBER}} returns {{#if:NOVEMBER|{{#switch:{{#if:NOVEMBER|{{#switch:november|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:NOVEMBER<0|{{#ifexpr:((NOVEMBER)round 0)!=(NOVEMBER)|{{#expr:12-(((0.5-(NOVEMBER))round 0)mod 12)}}|{{#expr:12-(((11.5-(NOVEMBER))round 0)mod 12)}}}}|{{#expr:(((10.5+NOVEMBER)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|DECEMBER}} returns {{#if:DECEMBER|{{#switch:{{#if:DECEMBER|{{#switch:december|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:DECEMBER<0|{{#ifexpr:((DECEMBER)round 0)!=(DECEMBER)|{{#expr:12-(((0.5-(DECEMBER))round 0)mod 12)}}|{{#expr:12-(((11.5-(DECEMBER))round 0)mod 12)}}}}|{{#expr:(((10.5+DECEMBER)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
Examples for all abbreviated English month names:
{{MONTHNAME|jan}} returns {{#if:jan|{{#switch:{{#if:jan|{{#switch:jan|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:jan<0|{{#ifexpr:((jan)round 0)!=(jan)|{{#expr:12-(((0.5-(jan))round 0)mod 12)}}|{{#expr:12-(((11.5-(jan))round 0)mod 12)}}}}|{{#expr:(((10.5+jan)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|feb}} returns {{#if:feb|{{#switch:{{#if:feb|{{#switch:feb|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:feb<0|{{#ifexpr:((feb)round 0)!=(feb)|{{#expr:12-(((0.5-(feb))round 0)mod 12)}}|{{#expr:12-(((11.5-(feb))round 0)mod 12)}}}}|{{#expr:(((10.5+feb)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|mar}} returns {{#if:mar|{{#switch:{{#if:mar|{{#switch:mar|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:mar<0|{{#ifexpr:((mar)round 0)!=(mar)|{{#expr:12-(((0.5-(mar))round 0)mod 12)}}|{{#expr:12-(((11.5-(mar))round 0)mod 12)}}}}|{{#expr:(((10.5+mar)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|apr}} returns {{#if:apr|{{#switch:{{#if:apr|{{#switch:apr|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:apr<0|{{#ifexpr:((apr)round 0)!=(apr)|{{#expr:12-(((0.5-(apr))round 0)mod 12)}}|{{#expr:12-(((11.5-(apr))round 0)mod 12)}}}}|{{#expr:(((10.5+apr)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|may}} returns {{#if:may|{{#switch:{{#if:may|{{#switch:may|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:may<0|{{#ifexpr:((may)round 0)!=(may)|{{#expr:12-(((0.5-(may))round 0)mod 12)}}|{{#expr:12-(((11.5-(may))round 0)mod 12)}}}}|{{#expr:(((10.5+may)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|jun}} returns {{#if:jun|{{#switch:{{#if:jun|{{#switch:jun|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:jun<0|{{#ifexpr:((jun)round 0)!=(jun)|{{#expr:12-(((0.5-(jun))round 0)mod 12)}}|{{#expr:12-(((11.5-(jun))round 0)mod 12)}}}}|{{#expr:(((10.5+jun)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|jul}} returns {{#if:jul|{{#switch:{{#if:jul|{{#switch:jul|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:jul<0|{{#ifexpr:((jul)round 0)!=(jul)|{{#expr:12-(((0.5-(jul))round 0)mod 12)}}|{{#expr:12-(((11.5-(jul))round 0)mod 12)}}}}|{{#expr:(((10.5+jul)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|aug}} returns {{#if:aug|{{#switch:{{#if:aug|{{#switch:aug|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:aug<0|{{#ifexpr:((aug)round 0)!=(aug)|{{#expr:12-(((0.5-(aug))round 0)mod 12)}}|{{#expr:12-(((11.5-(aug))round 0)mod 12)}}}}|{{#expr:(((10.5+aug)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|sep}} returns {{#if:sep|{{#switch:{{#if:sep|{{#switch:sep|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:sep<0|{{#ifexpr:((sep)round 0)!=(sep)|{{#expr:12-(((0.5-(sep))round 0)mod 12)}}|{{#expr:12-(((11.5-(sep))round 0)mod 12)}}}}|{{#expr:(((10.5+sep)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|oct}} returns {{#if:oct|{{#switch:{{#if:oct|{{#switch:oct|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:oct<0|{{#ifexpr:((oct)round 0)!=(oct)|{{#expr:12-(((0.5-(oct))round 0)mod 12)}}|{{#expr:12-(((11.5-(oct))round 0)mod 12)}}}}|{{#expr:(((10.5+oct)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|nov}} returns {{#if:nov|{{#switch:{{#if:nov|{{#switch:nov|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:nov<0|{{#ifexpr:((nov)round 0)!=(nov)|{{#expr:12-(((0.5-(nov))round 0)mod 12)}}|{{#expr:12-(((11.5-(nov))round 0)mod 12)}}}}|{{#expr:(((10.5+nov)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|dec}} returns {{#if:dec|{{#switch:{{#if:dec|{{#switch:dec|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:dec<0|{{#ifexpr:((dec)round 0)!=(dec)|{{#expr:12-(((0.5-(dec))round 0)mod 12)}}|{{#expr:12-(((11.5-(dec))round 0)mod 12)}}}}|{{#expr:(((10.5+dec)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
Examples for all standard month numbers:
{{MONTHNAME|1}} returns {{#if:1|{{#switch:{{#if:1|{{#switch: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=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}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|2}} returns {{#if:2|{{#switch:{{#if:2|{{#switch:2|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:2<0|{{#ifexpr:((2)round 0)!=(2)|{{#expr:12-(((0.5-(2))round 0)mod 12)}}|{{#expr:12-(((11.5-(2))round 0)mod 12)}}}}|{{#expr:(((10.5+2)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|3}} returns {{#if:3|{{#switch:{{#if:3|{{#switch:3|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:3<0|{{#ifexpr:((3)round 0)!=(3)|{{#expr:12-(((0.5-(3))round 0)mod 12)}}|{{#expr:12-(((11.5-(3))round 0)mod 12)}}}}|{{#expr:(((10.5+3)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|4}} returns {{#if:4|{{#switch:{{#if:4|{{#switch:4|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:4<0|{{#ifexpr:((4)round 0)!=(4)|{{#expr:12-(((0.5-(4))round 0)mod 12)}}|{{#expr:12-(((11.5-(4))round 0)mod 12)}}}}|{{#expr:(((10.5+4)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|5}} returns {{#if:5|{{#switch:{{#if:5|{{#switch:5|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:5<0|{{#ifexpr:((5)round 0)!=(5)|{{#expr:12-(((0.5-(5))round 0)mod 12)}}|{{#expr:12-(((11.5-(5))round 0)mod 12)}}}}|{{#expr:(((10.5+5)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|6}} returns {{#if:6|{{#switch:{{#if:6|{{#switch:6|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:6<0|{{#ifexpr:((6)round 0)!=(6)|{{#expr:12-(((0.5-(6))round 0)mod 12)}}|{{#expr:12-(((11.5-(6))round 0)mod 12)}}}}|{{#expr:(((10.5+6)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|7}} returns {{#if:7|{{#switch:{{#if:7|{{#switch:7|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:7<0|{{#ifexpr:((7)round 0)!=(7)|{{#expr:12-(((0.5-(7))round 0)mod 12)}}|{{#expr:12-(((11.5-(7))round 0)mod 12)}}}}|{{#expr:(((10.5+7)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|8}} returns {{#if:8|{{#switch:{{#if:8|{{#switch:8|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:8<0|{{#ifexpr:((8)round 0)!=(8)|{{#expr:12-(((0.5-(8))round 0)mod 12)}}|{{#expr:12-(((11.5-(8))round 0)mod 12)}}}}|{{#expr:(((10.5+8)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|9}} returns {{#if:9|{{#switch:{{#if:9|{{#switch:9|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:9<0|{{#ifexpr:((9)round 0)!=(9)|{{#expr:12-(((0.5-(9))round 0)mod 12)}}|{{#expr:12-(((11.5-(9))round 0)mod 12)}}}}|{{#expr:(((10.5+9)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|10}} returns {{#if:10|{{#switch:{{#if:10|{{#switch:10|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:10<0|{{#ifexpr:((10)round 0)!=(10)|{{#expr:12-(((0.5-(10))round 0)mod 12)}}|{{#expr:12-(((11.5-(10))round 0)mod 12)}}}}|{{#expr:(((10.5+10)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|11}} returns {{#if:11|{{#switch:{{#if:11|{{#switch:11|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:11<0|{{#ifexpr:((11)round 0)!=(11)|{{#expr:12-(((0.5-(11))round 0)mod 12)}}|{{#expr:12-(((11.5-(11))round 0)mod 12)}}}}|{{#expr:(((10.5+11)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|12}} returns {{#if:12|{{#switch:{{#if:12|{{#switch:12|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:12<0|{{#ifexpr:((12)round 0)!=(12)|{{#expr:12-(((0.5-(12))round 0)mod 12)}}|{{#expr:12-(((11.5-(12))round 0)mod 12)}}}}|{{#expr:(((10.5+12)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
Examples for month numbers with extra leading zero:
{{MONTHNAME|01}} returns {{#if:01|{{#switch:{{#if:01|{{#switch:01|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:01<0|{{#ifexpr:((01)round 0)!=(01)|{{#expr:12-(((0.5-(01))round 0)mod 12)}}|{{#expr:12-(((11.5-(01))round 0)mod 12)}}}}|{{#expr:(((10.5+01)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|02}} returns {{#if:02|{{#switch:{{#if:02|{{#switch:02|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:02<0|{{#ifexpr:((02)round 0)!=(02)|{{#expr:12-(((0.5-(02))round 0)mod 12)}}|{{#expr:12-(((11.5-(02))round 0)mod 12)}}}}|{{#expr:(((10.5+02)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|03}} returns {{#if:03|{{#switch:{{#if:03|{{#switch:03|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:03<0|{{#ifexpr:((03)round 0)!=(03)|{{#expr:12-(((0.5-(03))round 0)mod 12)}}|{{#expr:12-(((11.5-(03))round 0)mod 12)}}}}|{{#expr:(((10.5+03)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|04}} returns {{#if:04|{{#switch:{{#if:04|{{#switch:04|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:04<0|{{#ifexpr:((04)round 0)!=(04)|{{#expr:12-(((0.5-(04))round 0)mod 12)}}|{{#expr:12-(((11.5-(04))round 0)mod 12)}}}}|{{#expr:(((10.5+04)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|05}} returns {{#if:05|{{#switch:{{#if:05|{{#switch:05|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:05<0|{{#ifexpr:((05)round 0)!=(05)|{{#expr:12-(((0.5-(05))round 0)mod 12)}}|{{#expr:12-(((11.5-(05))round 0)mod 12)}}}}|{{#expr:(((10.5+05)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|06}} returns {{#if:06|{{#switch:{{#if:06|{{#switch:06|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:06<0|{{#ifexpr:((06)round 0)!=(06)|{{#expr:12-(((0.5-(06))round 0)mod 12)}}|{{#expr:12-(((11.5-(06))round 0)mod 12)}}}}|{{#expr:(((10.5+06)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|07}} returns {{#if:07|{{#switch:{{#if:07|{{#switch:07|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:07<0|{{#ifexpr:((07)round 0)!=(07)|{{#expr:12-(((0.5-(07))round 0)mod 12)}}|{{#expr:12-(((11.5-(07))round 0)mod 12)}}}}|{{#expr:(((10.5+07)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|08}} returns {{#if:08|{{#switch:{{#if:08|{{#switch:08|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:08<0|{{#ifexpr:((08)round 0)!=(08)|{{#expr:12-(((0.5-(08))round 0)mod 12)}}|{{#expr:12-(((11.5-(08))round 0)mod 12)}}}}|{{#expr:(((10.5+08)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|09}} returns {{#if:09|{{#switch:{{#if:09|{{#switch:09|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:09<0|{{#ifexpr:((09)round 0)!=(09)|{{#expr:12-(((0.5-(09))round 0)mod 12)}}|{{#expr:12-(((11.5-(09))round 0)mod 12)}}}}|{{#expr:(((10.5+09)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
Examples for month number cyclic underflows and overflows, from computed values:
{{MONTHNAME|-12}} returns {{#if:-12|{{#switch:{{#if:-12|{{#switch:-12|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:-12<0|{{#ifexpr:((-12)round 0)!=(-12)|{{#expr:12-(((0.5-(-12))round 0)mod 12)}}|{{#expr:12-(((11.5-(-12))round 0)mod 12)}}}}|{{#expr:(((10.5+-12)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|-11}} returns {{#if:-11|{{#switch:{{#if:-11|{{#switch:-11|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:-11<0|{{#ifexpr:((-11)round 0)!=(-11)|{{#expr:12-(((0.5-(-11))round 0)mod 12)}}|{{#expr:12-(((11.5-(-11))round 0)mod 12)}}}}|{{#expr:(((10.5+-11)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|-10}} returns {{#if:-10|{{#switch:{{#if:-10|{{#switch:-10|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:-10<0|{{#ifexpr:((-10)round 0)!=(-10)|{{#expr:12-(((0.5-(-10))round 0)mod 12)}}|{{#expr:12-(((11.5-(-10))round 0)mod 12)}}}}|{{#expr:(((10.5+-10)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|-9}} returns {{#if:-9|{{#switch:{{#if:-9|{{#switch:-9|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:-9<0|{{#ifexpr:((-9)round 0)!=(-9)|{{#expr:12-(((0.5-(-9))round 0)mod 12)}}|{{#expr:12-(((11.5-(-9))round 0)mod 12)}}}}|{{#expr:(((10.5+-9)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|-3}} returns {{#if:-2|{{#switch:{{#if:-2|{{#switch:-2|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:-2<0|{{#ifexpr:((-2)round 0)!=(-2)|{{#expr:12-(((0.5-(-2))round 0)mod 12)}}|{{#expr:12-(((11.5-(-2))round 0)mod 12)}}}}|{{#expr:(((10.5+-2)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|-2}} returns {{#if:-2|{{#switch:{{#if:-2|{{#switch:-2|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:-2<0|{{#ifexpr:((-2)round 0)!=(-2)|{{#expr:12-(((0.5-(-2))round 0)mod 12)}}|{{#expr:12-(((11.5-(-2))round 0)mod 12)}}}}|{{#expr:(((10.5+-2)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|-1}} returns {{#if:-1|{{#switch:{{#if:-1|{{#switch:-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=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}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|0}} returns {{#if:0|{{#switch:{{#if:0|{{#switch:0|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:0<0|{{#ifexpr:((0)round 0)!=(0)|{{#expr:12-(((0.5-(0))round 0)mod 12)}}|{{#expr:12-(((11.5-(0))round 0)mod 12)}}}}|{{#expr:(((10.5+0)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|13}} returns {{#if:13|{{#switch:{{#if:13|{{#switch:13|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:13<0|{{#ifexpr:((13)round 0)!=(13)|{{#expr:12-(((0.5-(13))round 0)mod 12)}}|{{#expr:12-(((11.5-(13))round 0)mod 12)}}}}|{{#expr:(((10.5+13)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|14}} returns {{#if:14|{{#switch:{{#if:14|{{#switch:14|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:14<0|{{#ifexpr:((14)round 0)!=(14)|{{#expr:12-(((0.5-(14))round 0)mod 12)}}|{{#expr:12-(((11.5-(14))round 0)mod 12)}}}}|{{#expr:(((10.5+14)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|15}} returns {{#if:15|{{#switch:{{#if:15|{{#switch:15|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:15<0|{{#ifexpr:((15)round 0)!=(15)|{{#expr:12-(((0.5-(15))round 0)mod 12)}}|{{#expr:12-(((11.5-(15))round 0)mod 12)}}}}|{{#expr:(((10.5+15)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|16}} returns {{#if:16|{{#switch:{{#if:16|{{#switch:16|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:16<0|{{#ifexpr:((16)round 0)!=(16)|{{#expr:12-(((0.5-(16))round 0)mod 12)}}|{{#expr:12-(((11.5-(16))round 0)mod 12)}}}}|{{#expr:(((10.5+16)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|23}} returns {{#if:23|{{#switch:{{#if:23|{{#switch:23|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:23<0|{{#ifexpr:((23)round 0)!=(23)|{{#expr:12-(((0.5-(23))round 0)mod 12)}}|{{#expr:12-(((11.5-(23))round 0)mod 12)}}}}|{{#expr:(((10.5+23)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|24}} returns {{#if:24|{{#switch:{{#if:24|{{#switch:24|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:24<0|{{#ifexpr:((24)round 0)!=(24)|{{#expr:12-(((0.5-(24))round 0)mod 12)}}|{{#expr:12-(((11.5-(24))round 0)mod 12)}}}}|{{#expr:(((10.5+24)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|25}} returns {{#if:25|{{#switch:{{#if:25|{{#switch:25|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:25<0|{{#ifexpr:((25)round 0)!=(25)|{{#expr:12-(((0.5-(25))round 0)mod 12)}}|{{#expr:12-(((11.5-(25))round 0)mod 12)}}}}|{{#expr:(((10.5+25)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|1200}} returns {{#if:1200|{{#switch:{{#if:1200|{{#switch:1200|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:1200<0|{{#ifexpr:((1200)round 0)!=(1200)|{{#expr:12-(((0.5-(1200))round 0)mod 12)}}|{{#expr:12-(((11.5-(1200))round 0)mod 12)}}}}|{{#expr:(((10.5+1200)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|1201}} returns {{#if:1201|{{#switch:{{#if:1201|{{#switch:1201|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:1201<0|{{#ifexpr:((1201)round 0)!=(1201)|{{#expr:12-(((0.5-(1201))round 0)mod 12)}}|{{#expr:12-(((11.5-(1201))round 0)mod 12)}}}}|{{#expr:(((10.5+1201)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}
{{MONTHNAME|1212}} returns {{#if:1212|{{#switch:{{#if:1212|{{#switch:1212|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=9|october|oct=10|november|nov=11|december|dec=12|{{#ifexpr:1212<0|{{#ifexpr:((1212)round 0)!=(1212)|{{#expr:12-(((0.5-(1212))round 0)mod 12)}}|{{#expr:12-(((11.5-(1212))round 0)mod 12)}}}}|{{#expr:(((10.5+1212)round 0)mod 12)+1}}}}}}|Missing required parameter 1=month!}}|1=Januar|2=Februar|3=Mars|4=April|5=Mai|6=Juni|7=Juli|8=August|9=September|10=Oktober|11=November|12=Desember|Incorrect required parameter 1=måned!}}|Missing required parameter 1=måned!}}

{{subst:monthname|6|subst=subst:}} gives the wikitext June.

Se også

en:Template:MONTHNAME fr:Modèle:MONTHNAME