Template:MONTHNUMBER: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (New Page: <includeonly>{{#if:{{{1|}}} |{{#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|se...)
 
No edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}
<includeonly>{{#if:{{{1|}}}|{{#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=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>
|{{#switch:{{lc:{{{1}}}}}
This is the MONTHNUMBER template from Wikipedia, and is available under the GFDL. It's required for [[Template:DoB|another template]] to work <!-- (apparently, though if you can find a way to make DoB work without it, it'd be a lot easier) -->.
  |january|jan=1
 
  |february|feb=2
[[Category:Meta-templates]]</noinclude>
  |march|mar=3
  |apr|april=4
  |may=5
  |june|jun=6
  |july|jul=7
  |august|aug=8
  |september|sep=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>This is the MONTHNUMBER template from Wikipedia, and is available under the GFDL. It's required for [[Template:DoB|another template]] to work <!-- (apparently, though if you can find a way to make DoB work without it, it'd be a lot easier) -->.</noinclude>

Latest revision as of 04:15, March 8, 2021

This is the MONTHNUMBER template from Wikipedia, and is available under the GFDL. It's required for another template to work .