Template:Month-by-num/doc

From Angelina Jordan Wiki
Revision as of 12:35, 5 January 2021 by Dcljr (talk | contribs) (template created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a subpage documenting Template:Month-by-num. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

This template simply translates month numbers to month names. 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}}