Talk:CentralNotice
Translate CNBanner
editI don't know how to have a permission for Translate the banners in my local language (madhurâ), does anyone have any recommendations, otherwise I'll have to delete this discussion. Munajad.MH (talk) 23:55, 8 November 2024 (UTC)
- @Munajad.MH:
- you have to use the translation interface not editing the pages directly with edit button.
- https://meta.wikimedia.org/wiki/Special:MessageGroupStats?group=Centralnotice-tgroup-2017WishlistSurveyVoting&messages=&suppressempty=1&language=fr&x=D
- change the message group to match whatever banner you're interested in. click any language. on the next page then you can switch to the language you actually want to translate to. --Jeremyb (talk) 19:07, 3 January 2025 (UTC)
Info stalker
editHow to prevent your info from the thieves Forat Hamdy elsayid Ramadan Ahmed (talk) 14:41, 3 January 2025 (UTC)
CentralNotice documentation
editTL;DR: we need better documentation.
I recently suspected that API requests from a banner should be avoided. I followed the recent site-wide instability pretty closely and many other outages/incidents over the years. I also have experience configuring Varnish instances unrelated to MediaWiki. But someone wanted help with a banner and I couldn't find another way to get what they wanted.
So next I checked the banner guidelines and saw nothing about API usage. or even performance. Then I was still hesitant and asked for thoughts on the hackathon telegram channel. maybe not the best place to ask but I haven't been on IRC much recently. no one said not to do it. I was given stewvote as an precedent of API requests from a banner. That was logged-in only and mine would be anon too but mine would be cached in Varnish and the query wouldn't vary by user. and then banner was turned on and I flooded logs interrupting the weekly deployment train. That was not caused by the API request but now that more people noticed the API request there appears to be a consensus that it's not a good idea. (the same way I was leaning to begin with)
there's a decent chance this search matches all banners that have used the API. looks like none were for anons except maybe in a clock handler. insource:/[^A-Za-z0-9](mw\.(Foreign)?(Api|Rest)|api\.php)[^A-Za-z0-9]/ intitle:centralnotice
so anyway back to documentation:
- looks like a handful of stewvotes did API requests and a handful of other banners. we should document API expectations and definitely needs a link to mw:API:Etiquette.
- where are mixins configured? I found
$wgCentralNoticeCampaignMixins
in the extension but I couldn't see where that was set to anything e.g. not in CommonSettings § Banner notice system alterImpressionData()
was commented as legacy 9 years ago. does that mean I need to use the legacy mixin to use it? is there any documentation about what to use instead?- different but related
failCampaign()
(formerlycancelBanner()
) also seems to be rather undocumented? a comment says call it frompreBannerMixinHook()
but I can't find anywhere on codesearch or in banners on meta (via special:search like above) that references that hook. (failCampaign seems most appropriate for my use case if it can be used from a banner. among other reasons I would want aborted impressions to not count against impression diet.) - I found another banner using
mw.centralNotice.bannerData.hideResult
andmw.centralNotice.bannerData.hideReason
and I copied that but I don't know if that actually accomplished anything. - Banner editing page says Check each mixin that you want to be included during banner delivery. (See Banner mixins for more information.) and then there's no checkboxes. link goes to a page which redirects to add a (deprecated) suffix. mixins are now on campaigns instead of banners but it seems like there's no corresponding documentation page like there was for banner mixins.
That's it for now. now I'm off to file a bug. :) Jeremyb (talk) 04:41, 11 September 2024 (UTC)
also how do we get access to that impression data? WMDE recently had a banner link to a page with a form for the user to submit. so they should see how many opened the form and definitely can see how many filled the form. then based on form submission counts they ended the campaign a bit early.
I could see possibly having a similar use case for ending a campaign early but also other uses for this data. It can be used to give a better idea what the implications are for certain diet and other settings. --Jeremyb (talk) 16:40, 11 September 2024 (UTC)
- If I'm not mistaken wikitech:Data Platform/Systems/Turnilo can be used to get impression data on CN banners. But I don’t think there are any volunteer CN admins with access?
- I agree that we should either get access or at least get some data from the WMF to get more insights on our banner actions, currently banner impression diet is mostly based on past banners and gut feeling instead of actual numbers. Johannnes89 (talk) 17:26, 11 September 2024 (UTC)
What share of clients support compression a la Content-Encoding: gzip
? what share of actual requests are served with compression? (I bet this last one could be had with public grafana data. working on some other things now, maybe later.) --Jeremyb (talk) 20:01, 11 September 2024 (UTC)
still need answers here. want to do another banner limiting geography with JS, use impression diet, and also not hog impressions that could be used by other banners when I've decided to cancel and also not count those impressions for diet. more important if we decide to do another try for subject matter banner (e.g. film) but also matters without that because this is an event a lot of people will be traveling for, we want to be able to catch them later when they're in town.
trying to remember who I was referred to when I was talking to people in Indianapolis at WCNA. @Pcoombe (WMF): when's a good time to chat? --Jeremyb (talk) 20:25, 3 January 2025 (UTC)
- @Pharos: Could you have been that person to whom Jermyb was referred? Peaceray (talk) 21:10, 3 January 2025 (UTC)
- No, was WMF staff. --Jeremyb (talk) 21:14, 3 January 2025 (UTC)
Date error in Central Notice
editI'm seeing a Central Notice that reads "You are invited to celebrate Wikipedia Day with the Toronto WikiClub on Sunday, January 14! Sign up here". The date is wrong. It should be Sunday January 19. Can someone fix it? OhanaUnitedTalk page 04:23, 7 January 2025 (UTC)