Template:Cronos month/doc
This is a documentation subpage for Template:Cronos month. It contains usage information, categories, and other content that is not part of the original template page. |
Uses Lua: |
This is the {{Cronos month}} template that automagically generates a calendar of events.
You can try also the {{Cronos list}} that is very similar but with different rendering.
About edit
Cronos 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 edit
Basic usage, default calendar with approximately 30 days:
{{Cronos month}}
Here the default look:
April | ||||||
---|---|---|---|---|---|---|
Monday | Thursday | Wednesday | Thursday | Friday | Saturday | Sunday |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25
Formation Rev@ntiq14:26
|
26 | 27 | 28 |
29 | 30 | |||||
May | ||||||
Monday | Thursday | Wednesday | Thursday | Friday | Saturday | Sunday |
01 | 02 | 03 | 04 | 05 | ||
06 | 07 | 08 | 09 | 10
ESEAP Conference 2024 01:00
|
11
ESEAP Conference 2024 01:00
|
12
ESEAP Conference 2024 01:00
London meetup 14:00
|
In the following sections all the available options.
Personalization edit
You can change the text of the blue Add Event! button with:
{{Cronos month|add_button_text = Add Meeting! }}
You can even hide it with:
{{Cronos month|add_button = no }}
Filter by interests edit
You 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 month|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 edit
You can display future or past months using the month_shift
argument.
Examples:
{{Cronos month|month_shift = -1 }}
{{Cronos month|month_shift = 1 }}
Monday/Sunday preference edit
As default the calendar starts from Monday, but you may want to disable this behavior to start from Sunday.
Example:
{{Cronos month|start_from_monday = 1 }}
{{Cronos month|start_from_monday = 0 }}
Show more days edit
You can change how much days (expressed in weeks) are displayed in the calendar.
For example:
{{Cronos month|weeks = 10 }}
Please be kind with the environment and do not try to request too much weeks. A low number will mean that the page generation will be very cheap.
Short week names edit
You can change how the names of the day of the weeks are displayed. For example, you may want shorter names.
Example:
{{Cronos month|short_weekname = 1 }}
This will mean a smaller calendar!
Style edit
Actually the style is inherited by the template {{Cronos month}} who enqueues this stylesheet: style.css.
See also edit