Difference between revisions of "Template:MonthName"

From Nookipedia, the Animal Crossing wiki
(Created page with "{{#if:{{{2}}} |{{#switch:{{{1|{{CURRENTMONTH}}}}} |1|01= January |2|02= February |3|03= March |4|04= April |5|05= May |6|06= June |7|07= July |8|08= August |9|09= September |10= ...")
 
m (Protected "Template:MonthName": Important template ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if:{{{2}}}
+
{{#if:{{{2|}}}
|{{#switch:{{{1|{{CURRENTMONTH}}}}}
+
|{{#switch:{{{1|{{LOCALMONTH}}}}}
|1|01= January
 
|2|02= February
 
|3|03= March
 
|4|04= April
 
|5|05= May
 
|6|06= June
 
|7|07= July
 
|8|08= August
 
|9|09= September
 
|10= October
 
|11= November
 
|12= December
 
}}
 
|{{#switch:{{{1|{{CURRENTMONTH}}}}}
 
 
|1|01= Jan
 
|1|01= Jan
 
|2|02= Feb
 
|2|02= Feb
Line 28: Line 14:
 
|12= Dec
 
|12= Dec
 
}}
 
}}
 +
|{{#switch:{{{1|{{LOCALMONTH}}}}}
 +
|1|01= January
 +
|2|02= February
 +
|3|03= March
 +
|4|04= April
 +
|5|05= May
 +
|6|06= June
 +
|7|07= July
 +
|8|08= August
 +
|9|09= September
 +
|10= October
 +
|11= November
 +
|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

November

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