Jump to content

Template:Events calendar

From Wikimedia Canada

This template displays a calendar containing all or a set of events of the common calendar.

Unlock advanced features

[edit]

The calendar of events is visible publicly, connected or not. To unlock advanced features, navigate between months, filter and manage events (add, edit, or delete events), you will need to copy-paste these two lines into your common.js page:

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:0x010C/Events-calendar-editor.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:0x010C/Events-calendar-navigation.js&action=raw&ctype=text/javascript');

Import into your calendar

[edit]

You can easily import the Wikimedia Canada calendar into your personal calendar (Framagenda, Outlook, Google Calendar, etc.) and it will update in real time. Copy and paste this webcal link into your personal calendar settings: : https://ca.wikimedia.org/wiki/Main_Page/Calendar?action=raw&templates=expand

Tags

[edit]

This calendar uses labels to categorize events: cities, projects, and so on.

This list of labels is editable on this page: Events calendar/parameters.json.

Stockage des événements

[edit]

The entries made in the calendar are stored on this page: Events calendar/events.json.

Usage

[edit]

This centralized calendar[1] can be displayed on several pages of this wiki, and present itself in several ways. For example, on the home page it is in calendar format, and on the WikiClub page of Montreal comes in list format. It is also possible to filter by labels[2].

Parameters

[edit]
{{Events calendar
 | month      = Number of the month to display (default value: Current month's number)
 | year       = Year to display (default value: Current year)
 | display    = Display mode to be used: either grid, list or map (défault value: grid)
 | tags       = Display only events tagged with at least one of the given comma-separated tags
 | locations  = Display only events taking place in a location of the given comma-separated locations name
 | lang       = Lang-code in which to display the interface of the calendar (default value: en)
}}

Exemples

[edit]
Display all events

{{Events calendar}}

December 2024
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
25
26
27
28
29
30
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
1
2
3
4
5
Display all the events as a list

{{Events calendar|display=list}}

December 2024
Display the events taking place in Montreal as a list

{{Events calendar|locations=Montréal|display=list}}

December 2024
Display the events taking place in Montréal and Toronto, displaying the interface in French

{{Events calendar|locations=Montréal,Toronto|lang=fr}}

décembre 2024
lundi mardi mercredi jeudi vendredi samedi dimanche
25
26
27
28
29
30
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
1
2
3
4
5
Display the events taking place in Manawan, displaying the interface in Atikamekw language

{{Events calendar|locations=Manawan|lang=atj}}

Pitcipipon pisimw 2024
ockorkananiwon nicw kicikaw nicto kicikaw new kicikaw tcipaiatikw kicikaw mari kicikaw Manactakaniwon
25
26
27
28
29
30
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
1
2
3
4
5
Display the events taking place in Ontario

{{Events calendar|locations=Ontario}}

December 2024
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
25
26
27
28
29
30
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
1
2
3
4
5
Display the events taking place in August 2017

{{Events calendar|month=8|year=2017}}

August 2017
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
31
1
Montréal 18:30 Mardi, c'est Wiki à BAnQ
2
3
4
5
6
7
8
9
Montréal 18:30 Wikimania Montréal 2019
10
Montréal 18:30 Wikimania Montréal 2019
11
Montréal 18:30 Wikimania Montréal 2019
12
Montréal 18:30 Wikimania Montréal 2019
13
Montréal 18:30 Wikimania Montréal 2019
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
Display the events related to Wikidata

{{Events calendar|tags=Wikidata}}

December 2024
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
25
26
27
28
29
30
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
1
2
3
4
5

Notes

[edit]
  1. Events are central and are stored on Events calendar/events.json page.
  2. Labels are editable on the Events calendar/parameters.json page.