.

Template:MONTHNUMBER: Difference between revisions

Wikicars, a place to share your automotive knowledge
Jump to navigationJump to search
mNo edit summary
 
mNo edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}
<includeonly>
|{{#switch:{{lc:{{{1}}}}}
   |january|jan=1
   |january|jan=1
   |february|feb=2
   |february|feb=2
Line 13: Line 12:
   |november|nov=11
   |november|nov=11
   |december|dec=12
   |december|dec=12
   |{{#ifexpr:{{{1}}}<0
   |</includeonly><noinclude>
  |{{#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''!
}}</includeonly><noinclude>
[[Category:Templates]]
[[Category:Templates]]
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 20:09, 19 December 2010