Template:Cronos list/doc
This is a documentation subpage for Template:Cronos list. It contains usage information, categories, and other content that is not part of the original template page. |
Uses Lua: |
This is the {{Cronos list}} template that automagically generates a list of events.
You can try also the {{Cronos month}} that is very similar but with different rendering.
About
editCronos is a really accessible calendar for MediaWiki. It's wiki-based. It's simple. It works even with JavaScript disabled.
You can customize this calendar for various reasons. For example, you can have it in your user page.
Usage
editBasic usage, default calendar with approximately 30 days:
{{Cronos list}}
Here the default look:
When | Event | Where | Category | |
---|---|---|---|---|
26/11/2024 | 10:00 | Journée contributive à l'Insee | Europe, France, Île-de-France and Paris | Event |
30/11/2024 | 14:00 | Wikipermanence | Europe, France, Brittany and Brest | Event |
05/12/2024 | 09:00 | Wikimédia France à l'Open Sour… | Europe and France | Event |
07/12/2024 | 14:00 | Atelier Wiki aux Archives de R… | Europe, France, Brittany and Rennes | Event |
08/12/2024 | 10:00 | Atelier Wikisource Autrices | Europe, France, Île-de-France and Paris | Event |
11/12/2024 | 19:00 | [Wiki'Live] Actualités sur l’organisation de la Wikimania 2026 à Paris | Europe and France | Event |
14/12/2024 | 11:00 | Atelier Wikisource Autrices | Europe, France, Île-de-France and Paris | Event |
18/12/2024 | 16:00 | Atelier découverte de Wikipédi… | Europe, France, Occitanie and Canet-en-Roussillon | Event |
In the following sections all the available options.
Personalization
editYou can change the text of the blue Add Event! button with:
{{Cronos list|add_button_text = Add Meeting! }}
You can even hide it with:
{{Cronos list|add_button = no }}
Filter by interests
editYou can choose to display just the events under your interests using the tags
argument.
For example, to only show announces about an hackathon or a meetup, you may try:
{{Cronos list|tags = hackathon, meetup }}
If you cannot see anything, maybe there is not any Event associated to that Tag.
It's up to the Event creators to be kind and always put some useful tags to their Event.
Anyway, everyone can contribute to the Event page to add some reasonable Tags.
Next/Previous month
editYou can display future or past months using the month_shift
argument.
Examples:
{{Cronos list|month_shift = -1 }}
{{Cronos list|month_shift = 1 }}
Monday/Sunday preference
editAs default the calendar starts from Monday, but you may want to disable this behavior to start from Sunday.
Example:
{{Cronos list|start_from_monday = 1 }}
{{Cronos list|start_from_monday = 0 }}
Show more days
editYou can change how much days (expressed in number of weeks) are displayed in the calendar.
For example:
{{Cronos list|weeks = 10 }}
Please be kind with the environment and do not try to request too much days. A low number will mean that the page generation will be very cheap.
Style
editActually the style is handled by Template:Cronos month/Head/style.css.
See also
edit