Category:Calendar template: Difference between revisions
No edit summary |
m Protected "Category:Calendar template" [edit=sysop:move=sysop] |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Calendar template | Calendar template | ||
== Usage == | |||
This template displays a {{{month|January}}} calendar for a specified year from 1970 to 2037 (it defaults to the current year). | |||
Calls [[Template:Calendar/Sun1stMonthStart{{#time:D|{{CURRENTYEAR}}0101}}]] or one of its sister templates, with the starting day for the calendar calculated using #time. | |||
==Optional parameters== | |||
===Year=== | |||
{| class="wikitable" | |||
! style="text-align: left" | Parameter | |||
! style="text-align: left" | Explanation | |||
|- | |||
|'''year''' | |||
| The four digit year of the specified year to be displayed (e.g. <code>year=2008</code>). Valid years are 1970–2037 (due to technical restrictions regarding [[Unix time]]) . The template currently defaults to <nowiki>{{CURRENTYEAR}}</nowiki>. | |||
|} | |||
===Layout=== | |||
The following parameters can be used to change the layout of the calendar: | |||
{| class="wikitable" | |||
! style="text-align: left" | Parameter | |||
! style="text-align: left" | Explanation | |||
|- | |||
| '''float''' | |||
| Use to float the calendar left or right (e.g. <code>float=left</code> or <code>float=right</code>). It defaults to <code>float=none</code>. | |||
|- | |||
| '''color''' | |||
| Use to change the default background color of the title bar with name of the month, and the bottom bar (e.g. <code>color=#2e8b57</code>). | |||
|- | |||
| '''color2''' | |||
| Use to change the default background color of the bar listing the days of the week (e.g. <code>color2=#2e8b57</code>). | |||
|} | |||
===Parameters to change the displayed links=== | |||
The template contains the following default links: | |||
*The Month links to the specified month's respective article. | |||
*The left arrows link to the previous month's respective article. | |||
*The right arrows link to the next month's respective article. | |||
*The days link to each ''day’s'' respective article. | |||
*The bottom bar shows a [[Help:Piped link|piped link]] that points to the specified month's respective article, but displays roman numerals without looking redundant with the<br />Arabic-numeral expression of the year at the top. | |||
The following parameters can be used to change the links on the calendar: | |||
{| class="wikitable" | |||
! style="text-align: left" | Parameter | |||
! style="text-align: left" | Explanation | |||
|- | |||
| '''1''' | |||
| Adds a prefix to the days links. | |||
|- | |||
| '''1a''' | |||
| Adds a prefix to the links to the current month, previous month and the next month. | |||
|- | |||
| '''2''' | |||
| Adds a prefix to the link label in the piped link displaying the current month. | |||
|- | |||
| '''3''' | |||
| Adds a suffix to the links to the current month and the next month. | |||
|- | |||
| '''4''' | |||
| Adds a suffix to the days links. | |||
|- | |||
| '''5''' | |||
| Adds a suffix to the link to the previous month. | |||
|- | |||
| '''EndNote''' | |||
| Changes the text in the bottom bar. | |||
|} | |||
===Headings=== | |||
{| class="wikitable" | |||
! style="text-align: left" | Parameter | |||
! style="text-align: left" | Explanation | |||
|- | |||
| '''curr_month''' | |||
| Will change the current month link to the text specified | |||
|- | |||
| '''prev_month''' | |||
| Will change the previous month link to the text specified | |||
|- | |||
| '''next_month''' | |||
| Will change the next month link to the text specified | |||
|} | |||
==Examples== | |||
<code><nowiki>{{</nowiki>{{{month|January}}} calendar<nowiki>}}</nowiki></code> | |||
{{{{{month|January}}} calendar}} | |||
---- | |||
<code><nowiki>{{</nowiki>{{{month|January}}} calendar<nowiki>|year=2001|float=right|color=#ffcccc|color2=#cccccc}}</nowiki></code> | |||
{{{{{month|January}}} calendar|year=2001|float=right|color=#ffcccc|color2=#cccccc}} | |||
---- | |||
<code><nowiki>{{</nowiki>{{{month|January}}} calendar<nowiki>|year=2008|1=BoyWiki:Today's featured article/|1a=BoyWiki:Today's featured article/|2=Featured articles for |3= 2008|4=, 2008|5=2007|EndNote=<small>An archive of [[BoyWiki:Featured articles|BoyWiki's featured articles]] that appeared on the Main Page.</small>}}</nowiki></code> | |||
{{{{{month|January}}} calendar|year=2008|1=BoyWiki:Today's featured article/|1a=BoyWiki:Today's featured article/|2=Featured articles for |3= 2008|4=, 2008|5=2007|EndNote=<small>An archive of [[BoyWiki:Featured articles|BoyWiki's featured articles]] that appeared on the Main Page.</small>}} | |||
== See also == | |||
* {{tl|January calendar}} | |||
* {{tl|February calendar}} | |||
* {{tl|March calendar}} | |||
* {{tl|April calendar}} | |||
* {{tl|May calendar}} | |||
* {{tl|June calendar}} | |||
* {{tl|July calendar}} | |||
* {{tl|August calendar}} | |||
* {{tl|September calendar}} | |||
* {{tl|October calendar}} | |||
* {{tl|November calendar}} | |||
* {{tl|December calendar}} | |||
[[Category: Template index]] | [[Category: Template index]] |
Latest revision as of 21:07, 25 April 2013
Calendar template
Usage
This template displays a January calendar for a specified year from 1970 to 2037 (it defaults to the current year). Calls Template:Calendar/Sun1stMonthStartMon or one of its sister templates, with the starting day for the calendar calculated using #time.
Optional parameters
Year
Parameter | Explanation |
---|---|
year | The four digit year of the specified year to be displayed (e.g. year=2008 ). Valid years are 1970–2037 (due to technical restrictions regarding Unix time) . The template currently defaults to {{CURRENTYEAR}}.
|
Layout
The following parameters can be used to change the layout of the calendar:
Parameter | Explanation |
---|---|
float | Use to float the calendar left or right (e.g. float=left or float=right ). It defaults to float=none .
|
color | Use to change the default background color of the title bar with name of the month, and the bottom bar (e.g. color=#2e8b57 ).
|
color2 | Use to change the default background color of the bar listing the days of the week (e.g. color2=#2e8b57 ).
|
Parameters to change the displayed links
The template contains the following default links:
- The Month links to the specified month's respective article.
- The left arrows link to the previous month's respective article.
- The right arrows link to the next month's respective article.
- The days link to each day’s respective article.
- The bottom bar shows a piped link that points to the specified month's respective article, but displays roman numerals without looking redundant with the
Arabic-numeral expression of the year at the top.
The following parameters can be used to change the links on the calendar:
Parameter | Explanation |
---|---|
1 | Adds a prefix to the days links. |
1a | Adds a prefix to the links to the current month, previous month and the next month. |
2 | Adds a prefix to the link label in the piped link displaying the current month. |
3 | Adds a suffix to the links to the current month and the next month. |
4 | Adds a suffix to the days links. |
5 | Adds a suffix to the link to the previous month. |
EndNote | Changes the text in the bottom bar. |
Headings
Parameter | Explanation |
---|---|
curr_month | Will change the current month link to the text specified |
prev_month | Will change the previous month link to the text specified |
next_month | Will change the next month link to the text specified |
Examples
{{January calendar}}
<< | January 2024 | >> | ||||
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 | |||
MMXXIV |
{{January calendar|year=2001|float=right|color=#ffcccc|color2=#cccccc}}
<< | January 2001 | >> | ||||
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 | |||
MMXXIV |
{{January calendar|year=2008|1=BoyWiki:Today's featured article/|1a=BoyWiki:Today's featured article/|2=Featured articles for |3= 2008|4=, 2008|5=2007|EndNote=<small>An archive of [[BoyWiki:Featured articles|BoyWiki's featured articles]] that appeared on the Main Page.</small>}}
<< | BoyWiki:Today's featured article/January Featured articles for 2008 | >> | ||||
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 | ||
An archive of BoyWiki's featured articles that appeared on the Main Page. |
See also
{{January calendar}}
{{March calendar}}
{{April calendar}}
{{May calendar}}
{{June calendar}}
{{July calendar}}
{{August calendar}}
{{October calendar}}
Pages in category "Calendar template"
The following 22 pages are in this category, out of 22 total.
C
- Template:Calendar
- Template:Calendar/Sun1stMonthStartFri
- Template:Calendar/Sun1stMonthStartMon
- Template:Calendar/Sun1stMonthStartSat
- Template:Calendar/Sun1stMonthStartSun
- Template:Calendar/Sun1stMonthStartThu
- Template:Calendar/Sun1stMonthStartTue
- Template:Calendar/Sun1stMonthStartWed
- Template:CalendarCustom