Difference between revisions of "Template:MonthName"

From Nookipedia, the Animal Crossing wiki
m
m (Protected "Template:MonthName": Important template ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{#if:{{{2|}}}
 
{{#if:{{{2|}}}
|{{#switch:{{{1|{{CURRENTMONTH}}}}}
+
|{{#switch:{{{1|{{LOCALMONTH}}}}}
 
|1|01= Jan
 
|1|01= Jan
 
|2|02= Feb
 
|2|02= Feb
Line 14: Line 14:
 
|12= Dec
 
|12= Dec
 
}}
 
}}
|{{#switch:{{{1|{{CURRENTMONTH}}}}}
+
|{{#switch:{{{1|{{LOCALMONTH}}}}}
 
|1|01= January
 
|1|01= January
 
|2|02= February
 
|2|02= February
Line 28: Line 28:
 
|12= December
 
|12= December
 
}}
 
}}
}}
+
}}<noinclude>
<noinclude>
 
 
==Usage==
 
==Usage==
 
This template is used to convert a number into the appropriate month name. To use this template, type:
 
This template is used to convert a number into the appropriate month name. To use this template, type:

Latest revision as of 14:20, January 28, 2016

December

Usage

This template is used to convert a number into the appropriate month name. To use this template, type:

{{MonthName| Month Number | Abbreviated?}}
  • If nothing is entered it "Month Number", the current month is used
  • If nothing is entered in "Abbreviated?", the full name of the month is used

Examples

{{MonthName|1}}
January
{{MonthName}}
December
{{MonthName||Yes}}