Template:MONTHNAME: Difference between revisions
Template page
More actions
Created page with "<includeonly><!-- Template:MONTHNAME --> {{#switch: {{{1|}}} | 1 = January | 2 = February | 3 = March | 4 = April | 5 = May | 6 = June | 7 = July | 8 = August | 9 = September | 10 = October | 11 = November | 12 = December | #default = }}</includeonly><noinclude> {{clear}} == Usage == This template returns the name of a month from its number. <pre> {{MONTHNAME|Month Number}} </pre> * '''Example:''' `{{MONTHNAME|5}}` will display "May". Category:Date templates Cat..." |
|||
| Line 22: | Line 22: | ||
{{MONTHNAME|Month Number}} | {{MONTHNAME|Month Number}} | ||
</pre> | </pre> | ||
* '''Example:''' | * '''Example:''' <code><nowiki>{{MONTHNAME|5}}</nowiki></code> will display "May". | ||
[[Category:Date templates]] | [[Category:Date templates]] | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 21:33, 12 July 2025
Usage edit source
This template returns the name of a month from its number.
{{MONTHNAME|Month Number}}
- Example:
{{MONTHNAME|5}}will display "May".