Template:Static-calendar-month

From Angelina Jordan Wiki
Revision as of 07:47, 14 December 2020 by Dcljr (talk | contribs) (default to current month; refactor to use the 28 possible months just once each; dummy cases for unseen months -- yet to do 2007–2017-11, 2018–2019, 2022 onwards)
January 2026
SuMoTuWeThFrSa

Documentation

This template displays a calendar for a specified month. By default, the calendar is floated to the right side of the page, but it can be floated to the left or not floated at all if desired, as explained below.

This template has been replaced by a module-based version, found at Template:Calendar-month. (That used to be name of this template, but it has been renamed.)

Usage

  • {{static-calendar-month}}
  • {{static-calendar-month|YYYY|MM}}
  • {{static-calendar-month|YYYY|MM|float=}}
  • {{static-calendar-month|YYYY|MM|float=none}}

YYYY must be a year between 2006 and 2026. No other years are supported yet (except for certain isolated months for significant dates in our Timeline before Angelina was born). MM must be a 2-digit number between 01 and 12.

float controls the floating of the calendar. As mentioned before, the calendar is floated to the right by default. float=none (or nofloat=y) can be used to prevent floating of the calendar, in which case the calendar shows up on a line by itself, as seen in the examples below. float=left can be used to float the calendar to the left, with text "flowing" around it on its right side; however, note that, as seen in one of the examples below, text before the template call but on the same line might end up appearing after it.

Examples

January 2026
SuMoTuWeThFrSa
  • {{static-calendar-month}}

When called with no input, a calendar for the current month is displayed.

February 2020
SuMoTuWeThFrSa
1
2345678
9101112131415
16171819202122
23242526272829
  • {{static-calendar-month|2020|02}}
February 2020
SuMoTuWeThFrSa
  • {{static-calendar-month|2020|2}}

As seen in this example, 1-digit month numbers don't work.

January 2020-02
SuMoTuWeThFrSa
  • {{static-calendar-month|2020-02}}

And whole YYYY-MM year-month values don't work either.

  • text before{{static-calendar-month|2020|02|float=none}}text after

    text before
    February 2020
    SuMoTuWeThFrSa
    1
    2345678
    9101112131415
    16171819202122
    23242526272829
    text after
  • text before{{static-calendar-month|2020|02|float=left}}text after
text before
February 2020
SuMoTuWeThFrSa
1
2345678
9101112131415
16171819202122
23242526272829
text after