Wikipedia:EditNoticesOnMobile

This gadget does exactly what it says on the tin. It was made as a workaround due to this functionality not being supported by the Mobile Frontend system at the time. (A feature request for this had been open since 2018.) In Q3 2023 support for edit notices on Mobile Frontend came to MediaWiki: T316178. This implementation is lacking some features when compared to EditNoticesOnMobile, see.

Usage
A default gadget is enabled for users. This gadget uses client-side javascript to check for, and then display edit notices when editing pages. This gadget only runs on mobile versions of pages using the Minerva skin. This gadget is default for all users.

For edit notice creators: if you add an element with the "nopopupnotice" class anywhere in the notice, automatic popups will be suppressed for that notice. (but the user could still view them using the button)

How can I opt-out of this?
Registered users may disable the gadget in preferences. This is not recommended, as edit notices provide important information for editors. You may disable the automatic pop-up using the popup dialog controls. Note, as disabling the automatic pop-up relies on local storage this setting is specific to each browser. Once opted-out, you may opt-in again by using the same process.

Where do I report feature requests and bugs?
On the talk page. Please ping the author if you want a quick response.

Installation on other projects
First copy the contents of MediaWiki:Gadget-EditNoticesOnMobile.js to your wiki. For language support besides English, copy MediaWiki:Gadget-EditNoticesOnMobile.js/i18n.json as well.

If the Editnotice load template on your project (d:Q6854142) includes the "nomobile" class you need to remove that. (like Special:diff/1097074576)

As a gadget
Users will be able to turn off the script in their preferences. (if they are logged in) EditNoticesOnMobile supports both mobile and desktop Minerva.
 * Create MediaWiki:Gadget-EditNoticesOnMobile with for example
 * Add this line in a relevant section in MediaWiki:Gadgets-definition:

Desktop Minerva

 * Note: The desktop version of Minerva (not via mobile front end) is rarely used by editors.


 * Copy contents of User:Alexis Jazz/EditNoticesOnMobile-desktop.js to MediaWiki:Gadget-EditNoticesOnMobile-desktop.js on your wiki.
 * Create MediaWiki:Gadget-EditNoticesOnMobile-desktop with for example
 * Add this line in a relevant section in MediaWiki:Gadgets-definition:

In Mobile.js
Add  to MediaWiki:Mobile.js. Users won't be able to turn the script off.

You need to be an interface administrator to install a script for all users.

Projects using EditNoticesOnMobile

 * (contact: Yahya, testing phase)
 * (you are here)
 * (contact: Lam-ang)
 * (contact: Edu!)
 * w:shn: (contact: Saimawnkham)

See.

Translations
Translations are stored in MediaWiki:Gadget-EditNoticesOnMobile.js/i18n.json. (currently just Bengali and Dutch) They are loaded from the project you are on, not English Wikipedia. (unless you are on English Wikipedia) To translate, copy the "qqq" language, change "qqq" to your language code and translate the messages.

Test links

 * Betacommons User talk:
 * Betacommons User: (with nopopupnotice class)
 * enwiki TestEN
 * enwiki Joe Biden
 * enwiki WP:HD
 * enwiki WP:Sandbox
 * enwiki Talk:Goofy

Comparison
Comparison of EditNoticesOnMobile and the functionality that was added to MediaWiki (T316178):

Background
Some historical background: in a very limited sense, EditNoticesOnMobile could be considered a kind-of spinoff from Factotum. The projects didn't initially share a lot of code but the author was able to reuse functionality on how to display an edit notice from that tool. Once EditNoticesOnMobile was in a reasonably matured state most of it got ported back into Factotum, to the point where the two tools now share the same localStorage object.