Template:Month Number: Difference between revisions

The Emma M. Lion Wiki
Created page with "<noinclude> This template returns the month number based on the provided input. <pre> {{Friendly Month|January}} -> 1 {{Friendly Month|Aug}} -> 8 {{Friendly Month|12}} -> 12 </pre> </noinclude> {{#switch:{{{1|}}} |1=1 |2=2 |3=3 |4=4 |5=5 |6=6 |7=7 |8=8 |9=9 |10=10 |11=11 |12=12 |January=1 |Jan=1 |Feb=2 |February=2 |March=3 |Mar=3 |April=4 |Apr=4 |May=5 |June=6 |Jun=6 |July=7 |Jul=7 |August=8 |Aug=8 |September=9 |Sep=9 |October=10 |Oct=10 |November=11 |Nov=11 |December=1..."
 
removed spaces
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


<pre>
<pre>
{{Friendly Month|January}} -> 1
{{Month Number|January}} -> 1
{{Friendly Month|Aug}} -> 8
{{Month Number|Aug}} -> 8
{{Friendly Month|12}} -> 12
{{Month Number|12}} -> 12
</pre>
</pre>
</noinclude>
</noinclude>{{#switch:{{{1|}}}
{{#switch:{{{1|}}}
|1=1
|1=1
|2=2
|2=2

Latest revision as of 18:55, 8 January 2025

This template returns the month number based on the provided input.

{{Month Number|January}} -> 1
{{Month Number|Aug}} -> 8
{{Month Number|12}} -> 12