Page MenuHomePhabricator

Add banner functionality on wikipedia.se
Closed, ResolvedPublic

Description

Add functionality for a banner that shows information for a limited time on wikipedia.se.

Details

TitleReferenceAuthorSource BranchDest Branch
Add banner to the top of the pagesebastian-berlin-wmse/wikipedia-homepage!18sebastian-berlin-wmsebannermain
Customize query in GitLab

Event Timeline

At a meeting we discussed how to get the information to the site. There are (at least) to ways to go here:

  1. 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.
  2. 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.
  • Needs somewhere to store the the information. Could be our wiki. Would require a way to prevent vandalism.

@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.

  • Needs somewhere to store the the information. Could be our wiki. Would require a way to prevent vandalism.

@Lokal_Profil, @Jopparn, @AxelPettersson_WMSE: do you think it would be enough to write protect the page and only allow admins to edit?

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.

Previewing and setting banner content has been deployed on wikipedia.se.

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.

Also, I apparently created a task for that🙂: T332683.

Lokal_Profil claimed this task.
Jopparn renamed this task from Add banner to Add banner functionality.Mar 10 2024, 10:46 PM
Jopparn updated the task description. (Show Details)
Jopparn renamed this task from Add banner functionality to Add banner functionality on wikipedia.se.Mar 10 2024, 10:51 PM
Jopparn updated the task description. (Show Details)