Difference between revisions of "Template:MONTHNUMBER"

From FamilyTree
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}
+
<includeonly>{{#if:{{{1|}}}
 
  |{{#switch:{{lc:{{{1}}}}}
 
  |{{#switch:{{lc:{{{1}}}}}
 
   |january|jan=1
 
   |january|jan=1
Line 13: Line 13:
 
   |november|nov=11
 
   |november|nov=11
 
   |december|dec=12
 
   |december|dec=12
   |{{#ifexpr:{{{1}}}&lt;0
+
   |{{#ifexpr:{{{1}}}<0
 
   |{{#ifexpr:(({{{1}}})round 0)!=({{{1}}})
 
   |{{#ifexpr:(({{{1}}})round 0)!=({{{1}}})
 
     |{{#expr:12-(((0.5-({{{1}}}))round 0)mod 12)}}
 
     |{{#expr:12-(((0.5-({{{1}}}))round 0)mod 12)}}
 
     |{{#expr:12-(((11.5-({{{1}}}))round 0)mod 12)}}
 
     |{{#expr:12-(((11.5-({{{1}}}))round 0)mod 12)}}
 
   }}
 
   }}
   |{{#expr:(((10.5 {{{1}}})round 0)mod 12) 1}}
+
   |{{#expr:(((10.5+{{{1}}})round 0)mod 12)+1}}
 
   }}
 
   }}
 
  }}
 
  }}
 
  |Missing required parameter 1=''month''!
 
  |Missing required parameter 1=''month''!
}}&lt;/includeonly&gt;&lt;noinclude&gt;
+
}}</includeonly><noinclude>
 
{{pp-template|small=yes}}
 
{{pp-template|small=yes}}
 
{{Documentation}}
 
{{Documentation}}
&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
&lt;/noinclude&gt;
+
</noinclude>

Latest revision as of 16:24, 10 October 2010

[create] 50px Template documentation