Template:Static-calendar-month

From Angelina Jordan Wiki
Revision as of 05:13, 14 December 2020 by Dcljr (talk | contribs) (template created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
January 2006
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031

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 2006
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031
  • {{static-calendar-month}}

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

February 2020
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031
  • {{static-calendar-month|2020|02}}
February 2020
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031
  • {{static-calendar-month|2020|2}}

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

January 2020-02
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031
  • {{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
    1234567
    891011121314
    15161718192021
    22232425262728
    293031
    text after
  • text before{{static-calendar-month|2020|02|float=left}}text after
text before
February 2020
SuMoTuWeThFrSa
1234567
891011121314
15161718192021
22232425262728
293031
text after