Template:Static-calendar-month/doc

From Angelina Jordan Wiki
Revision as of 13:22, 5 January 2021 by Dcljr (talk | contribs) (doc nofloat & float; use of 'ul' and 'li' are to prevent bug where list elements are not closed after tables)
This is a subpage documenting Template:Static-calendar-month. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

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.

Usage

  • {{calendar-month}}
  • {{calendar-month|YYYY|MM}}
  • {{calendar-month|YYYY|MM|nofloat=y}}
  • {{calendar-month|YYYY|MM|float=left}}

YYYY must be a year between 2006 and 2021. No other years are supported (yet). MM must be a 2-digit number between 01 and 12.

nofloat can be used to disable the floating of the calendar (in which case, the calendar shows up on a line by itself, and any text that follows the temlpate call at the position in the page that the template call is made). The value y can actually be any string containing at least one non-whitespace character (like true or even false — both of these have exactly the same effect).

Examples

January 2026
Su Mo Tu We Th Fr Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
  • {{calendar-month}}

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


February 2020
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
  • {{calendar-month|2020|02}}


February 2020
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
  • {{calendar-month|2020|2}}

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

  • before{{calendar-month|2020|02|nofloat=y}}after

    before
    February 2020
    Su Mo Tu We Th Fr Sa
    1
    2 3 4 5 6 7 8
    9 10 11 12 13 14 15
    16 17 18 19 20 21 22
    23 24 25 26 27 28 29
    after
  • before{{calendar-month|2020|02|float=left}}after

before

February 2020
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
after