Meta:Wikimedia CH/Cronos/Reference
Some information about the components behind Cronos.
Front end specifications
[edit]Feature | Solution | who in charge ? | Status |
---|---|---|---|
Calendar can be viewed simultaneously on de, en, fr, it, and meta. On which pages ? To be see later. | adding Cronos templates on de, en, fr, it ? | To be see later. | |
Clicking on calendar day on de, en, fr, it, and meta opens form that allows to add event | Which extension can provide such form ?
Template Data and Visual Editor |
||
Form relies on visual editor contains
Edit of the template : Cronos event |
use https://www.mediawiki.org/wiki/Help:Extension:TemplateWizard | Wiki Valley | |
Add a button to add an event (as a popup or new tab ?) | Already a + close to the number of the of the day | done | |
when creating a new with VE the title of event to create should be "To create event" and not "Pizza party" et "time" instead of 16:30
In template data put after title, description, Display by default the link to event field, Dislay all the field by default. |
done | ||
With template Data check if if we can use a date time fields to put the end of the event. | Wiki Valley | Not possible | |
Put the + (to put a new event) more comprehensible. | done | ||
Managing multiple days event. | Create an event per day. | Valerio | |
Managing multiple events during the same day. | Visual Editor add a new section to an existing page See current situation below. | ||
Display the icon of either COM, GLAM, EDU, or WIKIVERSE on
and display as a dropdown 2020-09-17 NN it's not possible
|
Wiki Valley | Not possible to display as a dropdown | |
Import remaining event from Wikimedia_CH/Calendar from most ancient (closest in the futur) to more recent (far away in the futur)
already 3 imported |
Wiki Valley | doing |
- What should stay the same
- Calendar can be modified on meta
Variables name table
[edit]start date and hour, | end date and hour, | title of event, | location of event | Link to event | Type of event | Tags | ||
---|---|---|---|---|---|---|---|---|
Values | text | Online or place name | external or internal link | icon of either COM, GLAM, EDU, or WIKIVERSE | ||||
New Form | to add | to add
only one value |
to add with https://materializecss.com/chips.html | |||||
On Module:Cronos month | ||||||||
Example | 2019-05-14 14:00 | Wikimidi des sans pagEs | Online | Midis de contribution ouvert aux débutant·e·s | ||||
On Template:Cronos_event | end of page name + when
|
end
|
abstract | where
|
link
|
type
|
||
On Wikimedia CH/Calendar | Start Date | End Date | Event | Where | Link | Type |
Template and modules used on Cronos
[edit]Scope | Template or module name on Cronos | css | Used... | TODO |
---|---|---|---|---|
Daily page | Template:Cronos event | Page · TagChips | "The" block of information of each single event in a Meta:Cronos daily page (the two events here) | |
Template:Cronos event/doc | to design the form (thanks to templatedata) used for adding an event. | Done : change order of fields thanks to "paramOrder": ["title", "when", "abstract", "where", "url", "type", "end", "tags"],
| ||
Template:Cronos day | Yes | Top banner for each Meta:Cronos daily page (the top banner here) | ||
Template:Cronos day brief | Yes | In the monthly calendar allows to add a new event with '+' | make more clear the + to add a new event
in css remove dashed separator Change the ➕ by 🖊️ or any other emoji | |
Template:Cronos day/Example | content preloaded for new day pages | DONE replace the title ""Create new event" by "
click here to add an event" | ||
Template:Cronos event/Example | used by the "add event to an already existing page" feature (example) | T253048: VisualEditor lacks | ||
Template:Cronos event/Preload | to be loaded by input box (duplicate of Template:Cronos event/Example?) | |||
Calendar | Template:Cronos month | to generate a Meta:Cronos calendar basing of some options. | Display the icon of either COM, GLAM, EDU, or WIKIVERSE | |
Template:Cronos month/Head (doc) | Yes | as calendar heading. For now, it just add styles to the calendar. | Remove the orange color in the css, Nicolas proposes "Lavande"
Flor or Ilario : which color do you want among : https://web-color.aliasdmc.fr/couleurs-hexa-rgb-hsl-predefini-html-css.php | |
Utilities | Template:Purge | to refresh the page | ||
Template:Tl | to Display a bracketed link to a template page. |
- Desired front-end aspects
- Possible solutions
Visual Editor add a new section to an existing page
[edit]- https://phabricator.wikimedia.org discussion about this feature
- Main Task on Phabricator with many subtasks
- already Ok for mobile
- still currently deploying for desktop https://phabricator.wikimedia.org/T221908
- To test on a wiki add
$wgVisualEditorEnableVisualSectionEditing = true
New Form
[edit]Using https://materializecss.com/text-inputs.html
test it on : https://wmch.toolforge.org/cronos/
Editing the form :
https://gitpull.it/diffusion/47/browse/master/www/index.php from line 312
https://gitpull.it/diffusion/47/wmch-cronos-form.git
https://gitpull.it/source/boz-mw/
https://gitpull.it/source/suckless-php
https://github.com/wikimedia/mediawiki-oauthclient-php/tree/master/
Pushing the changes :
Questions
[edit]- On which page on IT, FR, DE and EN Wikipedias should be displayed the calendar ?
- Don't know yet.
- Where is the MediaWiki API bot ?
- No bot exists yet but useful in the future if synchronisation needed with other Wikipedias
- Provide some filters
- Why another calendar?
- allow everyone to view and edit their events in an easy and wiki way (for example using VisualEditor)
- avoid to build key features over gadgets or MediaWiki extensions to avoid bureaucratic deployment delays (e.g. being an interface admin in all the wikis)
Decisions
[edit]Time typed will be London Time and Javascript will displayed the time according to the user prefs.
2020-08-07 Valerio and Nicolas : when
and end
fields must contains hour and minutes with this format HH:MM (24h) example 12:00 for noon.