Wikimedia

Do not output <sup>β</sup> as part of the logo on all pages, but only on our beta (testing) sites

To work on this task you should probably already have worked on a MobileFrontend/Minerva task before.

MediaWiki has an extension called MobileFrontend which uses a skin called Minerva-Neue.

Outputting ' ` as part of logo link, seen f.e. on https://en.m.wikipedia.org/wiki/Jade_Terrapin_from_Allahabad today, is a bad idea, as it is code for our "beta" (testing) sites and not meant for "production" (the real Wikipedias).

Beta should probably be output via beta-specific Javascript.

Acceptance criteria:

  • includes/skins/MinervaTemplate.php should not be directly accessing MobileContext
  • The beta character should not appear in the HTML for stable. The &beta; character is defined in the template includes/skins/minerva.mustache

The template will be passed a property "isBeta" and add this conditionally. This value will come from the value of SkinMinerva::OPTIONS_MOBILE_BETA

echo $templateParser->processTemplate( 'minerva', $templateData );

it's important not to use MobileContext directly as this goes against our attempts to separate Minerva from MobileFrontend.

Please also see the Phabricator task for images and more information!

You are expected to provide a patch in Wikimedia Gerrit. See https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.

Task tags

  • php
  • mustache
  • javascript

Students who completed this task

Jan Rosa

Task type

  • code Code
  • web Design
close

2018