Template:Events calendar

From Wikimedia Canada
Jump to navigation Jump to search

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}}

September 2020
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Online 16:00 Atelier Wiki X arts actuels V
25
26
27
28
29
Online 14:00 Wikipedia Speaker Series: Public accountability & transparency in Wikipedia
30
1
2
3
4
Display all the events as a list

{{Events calendar|display=list}}

September 2020

Thursday 24

Online 16:00 Atelier Wiki X arts actuels V
Atelier en ligne organisé par le Réseau Art Actuel, le Conseil québécois des arts médiatiques et Artexte sur le thème des centres d'artistes autogérés.

Tuesday 29

Online 14:00 Wikipedia Speaker Series: Public accountability & transparency in Wikipedia
Online presentation part of the Diving Deeper into Wikipedia Speaker Series

Display the events taking place in Montreal as a list

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

September 2020
Display the events taking place in Montréal and Toronto, displaying the interface in French

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

septembre 2020
lundi mardi mercredi jeudi vendredi samedi dimanche
31
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
1
2
3
4
Display the events taking place in Manawan, displaying the interface in Atikamekw language

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

Kakone pisimw 2020
ockorkananiwon nicw kicikaw nicto kicikaw new kicikaw tcipaiatikw kicikaw mari kicikaw Manactakaniwon
31
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
1
2
3
4
Display the events taking place in Ontario

{{Events calendar|locations=Ontario}}

September 2020
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
31
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
1
2
3
4
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}}

September 2020
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
31
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
1
2
3
4

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.