Page MenuHomePhabricator

Banner module on the Growth homepage
Closed, ResolvedPublic

Description

We want to provide an opportunity for wiki communities to advertise ongoing newcomer-oriented events on the newcomer homepage. At least for the first iteration, this will be a simple homepage module shown at the top of the homepage, with text determined by a system message that can be defined via the relevant MediaWiki: page.

Mockup:

Growth homepage banner module.png (1×3 px, 698 KB)

https://www.figma.com/file/2SONd8P1tsexIB5coMOp8h/Growth-Structured-tasks?node-id=792%3A59774

Event Timeline

Change 647385 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/extensions/GrowthExperiments@master] Add banner module to the homepage

https://gerrit.wikimedia.org/r/647385

To test, edit the page MediaWiki:Growth-homepage-banner and set it to something like

'''[[File:مشروع المعرفة.svg|52px|frameless|link=ويكيبيديا:مشروع المعرفة]] Do you want to participate in the Project Al-Ma’refa editing contest? [[ويكيبيديا:مشروع المعرفة|Click here!]]'''

It will look slightly uglier than the mockup as the module content is defined on the wiki where formatting tools are limited, not in the extension code. (Also, I didn't cut off the icon like it's seen in the mock, but wiki editors can do that.)

growth homepage banner desktop.png (618×1 px, 142 KB)
growth homepage banner mobile.png (548×453 px, 54 KB)

@Tgr -- thank you! I think we would like to backport this tomorrow if possible. The community members are writing the copy now. A couple questions:

  • Would this be immediately usable on any wiki?
  • What turns it on and off? Is it just that having any content on the MediaWiki config page turns it on, and having no content turns it off?

@Tgr -- thank you! I think we would like to backport this tomorrow if possible. The community members are writing the copy now. A couple questions:

  • Would this be immediately usable on any wiki?

Yes. Community members can also put the copy on the MediaWiki config page preemptively, before we deploy this feature tomorrow, and the banner text will appear immediately. In fact, that would be preferred, for ease of testing.

  • What turns it on and off? Is it just that having any content on the MediaWiki config page turns it on, and having no content turns it off?

Yes, that's right.

Change 647385 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Add banner module to the homepage

https://gerrit.wikimedia.org/r/647385

@Dyolf77_WMF is putting the copy at MediaWiki:Growth-homepage-banner in preparation for the backport in a few hours.

@Dyolf77_WMF confirms that this is working right in ar.beta.

Change 647635 had a related patch set uploaded (by Catrope; owner: Gergő Tisza):
[mediawiki/extensions/GrowthExperiments@wmf/1.36.0-wmf.21] Add banner module to the homepage

https://gerrit.wikimedia.org/r/647635

Change 647635 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@wmf/1.36.0-wmf.21] Add banner module to the homepage

https://gerrit.wikimedia.org/r/647635

Mentioned in SAL (#wikimedia-operations) [2020-12-10T20:07:52Z] <catrope@deploy1001> Synchronized php-1.36.0-wmf.21/extensions/GrowthExperiments/: Add banner module to the homepage (T269804) (duration: 01m 03s)

Checked in production -arwiki wmf.21. Moving to Needs PM review just to inform @MMiller_WMF.

desktopmobile
Screen Shot 2020-12-10 at 3.58.59 PM.png (548×727 px, 54 KB)
Screen Shot 2020-12-10 at 3.59.28 PM.png (633×387 px, 55 KB)

Thank you! @Dyolf77_WMF, if it looks good to you and the campaign organizer, then we resolve this.

@Dyolf77_WMF confirmed that this is working right. The next step is to make sure that the community turns the banner off when the campaign is over.

Next step is also to document this.

  • Is this feature available to any wiki where the homepage is deployed?
  • What are the current limitations (length of messages, size of images)?

Based on the replies, I'll create a task about documentation.

Next step is also to document this.

  • Is this feature available to any wiki where the homepage is deployed?

Yes, just as any other module available at the homepage.

  • What are the current limitations (length of messages, size of images)?

Technically speaking, none. I don't see any technical limitation on length, so whatever MediaWiki can parse can be used technically. I just tried (at beta obv) to create a banner with a monumental image and a very long (5 paragraphs) banner text, and it rendered properly:

image.png (907×1 px, 222 KB)

image.png (801×1 px, 95 KB)

That being said, such a large banner probably isn't wanted from the product perspective. For the documentation, I assume something like "reasonable length" should work?

Based on the replies, I'll create a task about documentation.

In a meeting, the team reached the agreement of not publicizing this feature beyond the 4 polit wikis. This way, we can check if communities are interested, use it and then know what to prioritize about banners and campaigns.

This comment was removed by Dyolf77_WMF.