Basically, we seem to have three sorts of logo layout:
- Long banner/wordmark, in which it's either just the text logo, or an image plus the text logo (Minerva, BlueSky, CologneBlue, Timeless header/on mobile)
- Square logo with text/wordmark underneath (MonoBook, Vector)
- Square logo one place, text/banner/wordmark elsewhere in interface (Timeless desktop - text in header, square in sidebar, GreyStuff - banner/text in header, square logo in footer, or at least that was the idea...)
By splitting the logo into two distinct images, a square image logo if applicable and a long text/wordmark version, we could thus minimise the number of uploads required for branding different types of skins while consistently supporting all of them:
- Assemble the MonoBook/Vector logos by placing a 135-150px square logo image above a 135-150px centered/text wordmark
- Allow skins to use only text/wordmark or logo image in different places as appropriate
For backwards compatibility:
- Fall back to $wgLogo etc if none of the new stuff is specified (what Timeless currently does for the square sidebar logo)
- Fall back to styled text message containing by default (sitetitle) or whatever if no wordmark image is specified (Minerva uses (mobile-frontend-footer-sitename) and Timeless uses (timeless-sitetitle) custom messages as wrappers currently, but we likely do want to standardise this as well)
Developer notes
We'll introduce a wgLogos array which will replace wgLogo and wgLogoHD.
QA steps
ASAP
- Confirm a logo shows on https://en.wikipedia.beta.wmflabs.org/wiki/Main_Page
- Confirm a logo shows on https://en.m.wikipedia.beta.wmflabs.org/wiki/Main_Page
Using an old device (IE7 on browserstack suggested)
- Take a screenshot of the broken logo on https://en.m.wikipedia.beta.wmflabs.org/wiki/Main_Page and attach to this ticket
On Thursday, February 27:
- Open Wikipedia, Commons, and Wikidata (in any language) from a modern browser. Confirm there is no changes to the logos.
- Open Wikipedia, Commons, and Wikidata (in any language) from IE 8. Take a screenshot of the logo (we are expecting it to look broken)
Sign off notes
- Setup a task for a config change to replace MinervaCustomLogos with wgLogos
- Setup a task to make a configuration change to merge MinervaCustomLogos, wgLogo and wgLogoHD
QA Results
AC | Status | Details |
---|---|---|
1 | ✅ | T232140#5931250 |
2 | ❓ | T232140#5931250 |
3 | ❓ | T232140#5931250 |
4 | ✅ | T232140#5931250 |
5 | ✅ | T232140#5931250 |