Hutchy68 / Purge

MediaWiki Purge Extension
GNU General Public License v2.0
8 stars 7 forks source link

Add a config option to display as tab or as UTC clock? #16

Open samwilson opened 6 years ago

samwilson commented 6 years ago

Another common form of purge link is the UTC clock in the "personal tools" menu, as seen on Wikimedia sites: https://www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js

Would this be something that this extension would like to handle? It could either be a site-wide config variable, or a per-user preference, or a gadget (see also #15).

samwilson commented 6 years ago

A similar thing has also been proposed as part of the Wishlist Survey: https://meta.wikimedia.org/wiki/2017_Community_Wishlist_Survey/Bots_and_gadgets/Turn_UTCLiveClock_into_an_extension

samwilson commented 6 years ago

I think the best interface for this would be to have a new user preference, to choose between displaying the purge link as either a navigation action, a UTC clock, or not displayed. (It'd default to not displayed.)

This I think would render #15 moot, as there's no point in making it available as a gadget if its already able to be turned on and off in the preferences form.

The UTC clock option would need a sensible no-JS fallback — perhaps just display 'Purge' in that spot?

kaldari commented 6 years ago

But see discussion at https://meta.wikimedia.org/wiki/2017_Community_Wishlist_Survey/Bots_and_gadgets/Turn_UTCLiveClock_into_an_extension#Discussion.