Diferencia entre revisiones de «Plantilla:MONTHNUMBER»
De Familia Sanchez Arjona
m (Protected Template:MONTHNUMBER: High use/high risk template [edit=sysop:move=sysop]) |
m (21 revisiones importadas) |
||
(No se muestran 6 ediciones intermedias de 6 usuarios) | |||
Línea 1: | Línea 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> | + | <includeonly>{{#if:{{{1|}}} |
− | {{/doc | + | |{{#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}} | ||
+ | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Revisión actual del 14:22 27 may 2016
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |