This template displays either the yearly or monthly calendar (from 1970-2037).
Parameters
edit
- month
- To display the single month the parameter
month
must be defined. This parameter can be the month name or number, the current month use month=current
(next
and last
are also accepted).
- year
- The parameter
year
sets the year of the calendar the default being the current year.
- format
- To start the week on Monday use either
format=Mon1st
or, to include iso week numbers, format=iso
.
- show_year
- To display the year use
show_year=on
. To show the year after the month use show_year=with month
.
- txt_pref_m
- This adds the prefix to the month name.
- txt_suff_m
- This adds the suffix to the month name.
- float
- To float the calendar left or right use
float=left
or float=right
.
- lk
- To link days, months and years use
lk=on
.
- To link days and months use
lk=dm
.
- To link months and years use
lk=my
.
- To link days and years use
lk=dy
.
- To link days only use
lk=d
.
- To link months only use
lk=m
.
- To link years only use
lk=y
.
- lk_pref
- This adds the prefix to all links.
- lk_pref_d
- This adds the prefix to day links.
- lk_pref_m
- This adds the prefix to month links.
- lk_pref_mnext
- This adds the prefix to the next month's link.
- lk_pref_mprev
- This adds the prefix to the previous month's link.
- lk_suff
- This adds the suffix to all links.
- lk_suff_d
- This adds the suffix to day links.
- lk_suff_m
- This adds the suffix to month links.
- lk_suff_mnext
- This adds the suffix to the next month's link.
- lk_suff_mprev
- This adds the suffix to the previous month's link.
- prevnext
- To add links to the previous and next months use
prevnext=on
.
- title_colour
- Use this to change the background colour of the title bar with name of the month, and the bottom bar (e.g.
title_colour=#2e8b57
).
- week_colour
- Use this to change the colour of the bar listing the days of the week (e.g.
week_colour=#2e8b57
).
- colour
- This is shorthand for both of the above.
- EndNote
- This adds text to the bottom bar.
Examples
edit
{{calendar|lk=on|show_year=on|float=right|month=current}}
produces the calendar above and {{calendar}}
produces the calendar below.