Template:Term and Template:MONTHNUMBER: Difference between pages

From Frontierpedia, the Microsoft Agent encyclopedia
(Difference between pages)
en>SMcCandlish
(adding style parameter)
 
en>Amorymeltzer
m (Changed protection level for "Template:MONTHNUMBER": Allow template editor access, see Template:MONTHNAME ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
Line 1: Line 1:
<dt class="glossary" id="{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}"  {{#if:{{{style|}}}|style="{{{style}}}"|}} {{#if:{{{lang|}}}|lang="{{{lang}}}" xml:lang="{{{lang}}}"|}}><!--<dfn>-->{{{1}}}<!--</dfn>--></dt><noinclude>
<includeonly>{{#if:{{{1|}}}
<!--Categories and interwikis go in the /doc subpage.-->
|{{#switch:{{lc:{{{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|sept=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''!
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 15:25, 17 December 2018