:User:Alexis Jazz/EditNoticesOnMobile#Desktop Minerva
{{Infobox user script
| logo = Ambox important.svg
| logoupright = 0.5
| name = EditNoticesOnMobile
| desc = It gives you edit notices.. on mobile
| author = User:Alexis Jazz
| updated = {{start date and age|2022|7|3}}
| status = It works
| source = User:Alexis Jazz/EditNoticesOnMobile.js
| skins = minerva
}}
{{Historical|category=no|comment=This page lives on at Wikipedia:EditNoticesOnMobile minus some sassy comments.}}
{{notice|Per the Showing Editnotices to mobile editors RfC this gadget will soon be deployed on English Wikipedia.}}
When it takes an unpaid volunteer less than a day to do client-side what a team of paid WMF-developers couldn't accomplish on their end in more than 3 years (maybe 5) despite the community begging them to do it. Which caused the community to beg them to do it.. again. Yeah, there's absolutely no chasm between the WMF/developers and the community.
Do not use script-installer! Script-installer uses importScript() which is unavailable on mobile.
Some historical background: in a very limited sense, EditNoticesOnMobile could be considered a kind-of spinoff from Bawl. The projects don't share a lot of code but I had already figured out how to display an edit notice for that project. Admittedly, this explains in part how the initial version of EditNoticesOnMobile could have been written in a day.
File:EditNoticesOnMobile screenshot.png |
Where do I report feature requests and bugs?
On the talk page. Please ping me if you want a quick response.
{{../Script installation instructions|mobileonly=1}}
How do I install this wiki-wide for all users?
First copy the contents of User:Alexis Jazz/EditNoticesOnMobile.js to MediaWiki:Gadget-EditNoticesOnMobile.js on your wiki.
=As a gadget=
- Create MediaWiki:Gadget-EditNoticesOnMobile with for example
Enable editnotices on the mobile site. (source) - Add this line in a relevant section in MediaWiki:Gadgets-definition:
EditNoticesOnMobile[ResourceLoader|targets=mobile|skins=minerva|supportsUrlLoad=true|default]|EditNoticesOnMobile.js
Users will be able to turn off the script in their preferences. (if they are logged in) EditNoticesOnMobile supports both mobile and desktop Minerva.
==Desktop Minerva==
Just FYI, nobody uses desktop Minerva.
- 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
Enable editnotices on desktop Minerva. (source) - Add this line in a relevant section in MediaWiki:Gadgets-definition:
EditNoticesOnMobile-desktop[ResourceLoader|targets=desktop|skins=minerva|actions=edit|supportsUrlLoad=true|default]|EditNoticesOnMobile-desktop.js
=In Mobile.js=
Add
You need to be an interface administrator to install a script for all users.
Test links
- [https://commons.m.wikimedia.beta.wmflabs.org/wiki/User_talk:AJ/Sandbox4?withgadget=EditNoticesOnMobile#/editor/all Betacommons User talk:]
- [https://commons.m.wikimedia.beta.wmflabs.org/wiki/User:AJ/Sandbox4?withgadget=EditNoticesOnMobile#/editor/all Betacommons User:] (with nopopupnotice class)
- [https://en.m.wikipedia.org/wiki/User:CX_Zoom/TestEN?withgadget=EditNoticesOnMobile#/editor/all enwiki TestEN]
- [https://en.m.wikipedia.org/wiki/Joe_Biden?withgadget=EditNoticesOnMobile#/editor/all enwiki Joe Biden]
- [https://en.m.wikipedia.org/wiki/Wikipedia:Help_desk?withgadget=EditNoticesOnMobile#/editor/all enwiki WP:HD]
- [https://en.m.wikipedia.org/wiki/Wikipedia:Sandbox?withgadget=EditNoticesOnMobile#/editor/all enwiki WP:Sandbox]
{{../My scripts}}