Template:Month-by-num

From Angelina Jordan Wiki

Documentation

This template simply translates month numbers to month names (where 1 is January, 2 is February, and so on). It is used by other templates and shouldn't need to be called directly in articles.

Usage

  • {{month-by-num|number}}

For January through September, number can be either a 1-digit or 2-digit number (i.e., 19 or 0109). For October through December, ony 2-digit numbers can be used (1012).

Interestingly, longer zero-padded numbers, like 007, can be used (as seen below), but this behavior probably should not be relied upon.

Examples

  • {{month-by-num}}
  • {{month-by-num|}}
  • {{month-by-num|7}} ⇒ July
  • {{month-by-num|07}} ⇒ July
  • {{month-by-num|007}} ⇒ July
  • {{month-by-num|13}}
  • {{month-by-num|January}}