Difference between revisions of "Template:MonthName"

From Nookipedia, the Animal Crossing wiki
m (Last time, promise)
m (Text replace - "{{CURRENT" to "{{LOCAL")
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

Revision as of 21:02, January 28, 2012

April

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}}
April
{{MonthName||Yes}}