Add functionality for a banner that shows information for a limited time on wikipedia.se.
Description
Details
Title | Reference | Author | Source Branch | Dest Branch | |
---|---|---|---|---|---|
Add banner to the top of the page | sebastian-berlin-wmse/wikipedia-homepage!18 | sebastian-berlin-wmse | banner | main |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T321004 ☂ Improve wikipedia.se | |||
Resolved | Lokal_Profil | T329613 Add banner functionality on wikipedia.se | |||
Open | Anna_Jegeus_WMSE | T359777 Test banner functionality | |||
Open | Anna_Jegeus_WMSE | T359778 Develop banner campaigns for wikipedia.se | |||
Open | Anna_Jegeus_WMSE | T359779 Engage volunteers in the campaign design for wikipedia.se |
Event Timeline
At a meeting we discussed how to get the information to the site. There are (at least) to ways to go here:
- Manually
- Edit files on server by hand.
- Requires someone with access to server to do the actual update which may cause delays.
- Easiest to do and suitable if we only want to change a few time per year.
- Automatically
- Read information from somewhere. Either checked periodically or update through a request.
- Needs somewhere to store the the information. Could be our wiki. Would require a way to prevent vandalism.
- Requires more development. Suitable if we want to be able to update quickly and frequently.
@Lokal_Profil, @Jopparn, @AxelPettersson_WMSE: do you think it would be enough to write protect the page and only allow admins to edit?
If we want to use a wikipage it looks like the parse action of the API is the best way to go. It'll give you HTML, though it requires a bit of tidying up to get rid of unwanted elements (like the edit links) and comments about rendering. It's possible that there is a way to get "clean" (non wiki specific) HTML from the API with some parameters, but I couldn't find them.
That should work. https://se.wikimedia.org/wiki/Wikipedia.se/Banner created for discussions and storage of banner text.
We've decided to go with wiki page for content for now. We'll also have the appearance of the banner specified on the wiki and use templates to make it easier to edit.
sebastian-berlin-wmse opened https://gitlab.wikimedia.org/sebastian-berlin-wmse/wikipedia-homepage/-/merge_requests/18
Add banner to the top of the page
sebastian-berlin-wmse merged https://gitlab.wikimedia.org/sebastian-berlin-wmse/wikipedia-homepage/-/merge_requests/18
Add banner to the top of the page
Page for banner content, instructions and templates have been added under Wikipedia.se/Banner.
It would be good to have some instructions around how to use matomo to track impact of a banner-campaign. Can be a separate task instead if you prefer.
Short section with link added to https://se.wikimedia.org/wiki/Wikipedia.se/Banner#Meddelanden.