Wikimedia

Control-clicking on an image should open the image in a new browser tab in the mobile frontend

This task is about the MediaWiki extension called MobileFrontend. It also uses a skin called Minerva-Neue. You can see them both in action when you go to (for example) https://m.mediawiki.org/ instead of https://www.mediawiki.org/ (note the "m" instead of "www" in the URL).

=== Steps to Reproduce

=== Expected Results

  • Image opens in new tab just as it does for middle-clicking

=== Actual Results

  • Image opens in the current tab and destroys browsing context

= Developer notes

Follow the logic of the MultimediaViewer extension: https://github.com/wikimedia/mediawiki-extensions-MultimediaViewer/blob/master/resources/mmv.head/mmv.head.js#L38

Do not interfere with non-left clicks or if modifier keys are pressed.

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

  • mobile-frontend
  • javascript
  • php

Students who completed this task

LukasA

Task type

  • code Code
close

2018