Template:MONTHNUMBER: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#ifexpr:{{{1|}}}<0|{{#ifexpr:(({{{1|}}}) round 0)!=({{{1|}}})|{{#expr:(((9.5-({{{1|}}}))round 0)mod 12)+1}}|{{#expr:(((8.5-({{{1|}}}))round 0)mod 12)+1}}}}|{{#expr:(((10.5+{{{1|}}})round 0)mod 12)+1}}}}|Missing required parameter 1=''month''!}}</includeonly><noinclude>{{Template documentation}}
<includeonly>{{#if:{{{1|}}}|{{#ifexpr:{{{1|}}}<0|{{#ifexpr:(({{{1|}}})round 0)!=({{{1|}}})|{{#expr:
  12-(((0.5-({{{1|}}}))round 0)mod 12)
}}|{{#expr:
  12-(((0.5-({{{1|}}}))round 0)mod 12)
}}}}|{{#expr:(((10.5+{{{1|}}})round 0)mod 12)+1}}}}|Missing required parameter 1=''month''!}}</includeonly><noinclude>{{Template documentation}}
This template returns the cyclic integer month number (between 1 and 12) of the month whose real number is in parameter.
This template returns the cyclic integer month number (between 1 and 12) of the month whose real number is in parameter.
; Syntax<nowiki>:</nowiki>
; Syntax<nowiki>:</nowiki>
Anonymous user