Template:MONTHNAME: Difference between revisions
m
no edit summary
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
: <tt><nowiki>{{</nowiki>MONTHNAME|</tt>''month''<tt>}}</tt> | : <tt><nowiki>{{</nowiki>MONTHNAME|</tt>''month''<tt>}}</tt> | ||
* The ''month'' value is interpreted modulo 12 (extra leading zeroes and decimals are ignored). | * The ''month'' value is interpreted modulo 12 (extra leading zeroes and decimals are ignored). | ||
; Examples for all months<nowiki>:</nowiki> | ; Examples for all months<nowiki>:</nowiki> | ||
: <tt><nowiki>{{MONTHNAME|1}}</nowiki></tt> returns {{MONTHNAME|1}} | : <tt><nowiki>{{MONTHNAME|1}}</nowiki></tt> returns {{MONTHNAME|1}} | ||
: <tt><nowiki>{{MONTHNAME|2}}</nowiki></tt> returns {{MONTHNAME|2}} | : <tt><nowiki>{{MONTHNAME|2}}</nowiki></tt> returns {{MONTHNAME|2}} | ||
Line 18: | Line 18: | ||
: <tt><nowiki>{{MONTHNAME|11}}</nowiki></tt> returns {{MONTHNAME|11}} | : <tt><nowiki>{{MONTHNAME|11}}</nowiki></tt> returns {{MONTHNAME|11}} | ||
: <tt><nowiki>{{MONTHNAME|12}}</nowiki></tt> returns {{MONTHNAME|12}} | : <tt><nowiki>{{MONTHNAME|12}}</nowiki></tt> returns {{MONTHNAME|12}} | ||
; Examples for months 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 underflow and overflow, from computed values<nowiki>:</nowiki> | |||
: <tt><nowiki>{{MONTHNAME|-1}}</nowiki></tt> returns {{MONTHNAME|-1}} | |||
: <tt><nowiki>{{MONTHNAME|-0.9999}}</nowiki></tt> returns {{MONTHNAME|-0.9999}} | |||
: <tt><nowiki>{{MONTHNAME|-0.5}}</nowiki></tt> returns {{MONTHNAME|-0.5}} | |||
: <tt><nowiki>{{MONTHNAME|-0.0001}}</nowiki></tt> returns {{MONTHNAME|-0.0001}} | |||
: <tt><nowiki>{{MONTHNAME|0}}</nowiki></tt> returns {{MONTHNAME|0}} | |||
: <tt><nowiki>{{MONTHNAME|0.0001}}</nowiki></tt> returns {{MONTHNAME|0.0001}} | |||
: <tt><nowiki>{{MONTHNAME|0.5}}</nowiki></tt> returns {{MONTHNAME|0}} | |||
: <tt><nowiki>{{MONTHNAME|0.9999}}</nowiki></tt> returns {{MONTHNAME|0.9999}} | |||
: <tt><nowiki>{{MONTHNAME|12.0001}}</nowiki></tt> returns {{MONTHNAME|12.0001}} | |||
: <tt><nowiki>{{MONTHNAME|12.5}}</nowiki></tt> returns {{MONTHNAME|12.5}} | |||
: <tt><nowiki>{{MONTHNAME|12.9999}}</nowiki></tt> returns {{MONTHNAME|12.9999}} | |||
: <tt><nowiki>{{MONTHNAME|13}}</nowiki></tt> returns {{MONTHNAME|13}} | : <tt><nowiki>{{MONTHNAME|13}}</nowiki></tt> returns {{MONTHNAME|13}} | ||