Jump to content

MediaWiki talk:Gadget-WikiMiniAtlas.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Interface-protected edit request on 27 December 2023

Please create this page with the text

mw.loader.load('//meta.wikimedia.org/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript');

and register a definition for a hidden gadget in MediaWiki:Gadgets-definition:

* ondemand-WikiMiniAtlas [ ResourceLoader | hidden ] | ondemand-WikiMiniAtlas.js

The same code is currently run from MediaWiki:Common.js. Registering it as a gadget helps integrate it with the proposed WP:On-demand gadgets system so that the Common.js snippet can be removed.

For now, the above changes are a no-op. – SD0001 (talk) 17:30, 27 December 2023 (UTC)[reply]

 Done * Pppery * it has begun... 18:29, 27 December 2023 (UTC)[reply]

Hosting locally

Per the idea brought up in MediaWiki talk:Common.js#c-SD0001-20240130174500-Amorymeltzer-20240130134000, I'm proposing that we host this locally for performance and security benefits, and use SDZeroBot 13 task to ensure that it remains in sync with the upstream version at meta:MediaWiki:Wikiminiatlas.js. – SD0001 (talk) 15:44, 11 March 2024 (UTC)[reply]

I have now set up the bot job to do this. – SD0001 (talk) 14:16, 3 May 2024 (UTC)[reply]

Sync request 2024-05-03

Please sync MediaWiki:Gadget-ondemand-WikiMiniAtlas.js with User:SDZeroBot/sync/MediaWiki:Gadget-ondemand-WikiMiniAtlas.js (diff). This brings it in sync with the upstream changes at meta:MediaWiki:Wikiminiatlas.js (hist).

This edit request is raised automatically based on the configuration at User:SDZeroBot/Gadgets-sync-config.json. Thanks, SDZeroBot (talk) 14:18, 3 May 2024 (UTC)[reply]

 Done * Pppery * it has begun... 15:13, 3 May 2024 (UTC)[reply]

Sync request 2024-05-03

Please sync MediaWiki:Gadget-ondemand-WikiMiniAtlas.js with User:SDZeroBot/sync/MediaWiki:Gadget-ondemand-WikiMiniAtlas.js (diff). This brings it in sync with the upstream changes at meta:MediaWiki:Wikiminiatlas.js (hist).

This edit request is raised automatically based on the configuration at User:SDZeroBot/Gadgets-sync-config.json. Thanks, SDZeroBot (talk) 15:18, 3 May 2024 (UTC)[reply]

@SD0001: This request is broken - the compare gives an error and I appear to have handled the previous request already. * Pppery * it has begun... 15:47, 3 May 2024 (UTC)[reply]
Ah, there was a bug in the bot. Fixed in dd1b7. – SD0001 (talk) 17:49, 3 May 2024 (UTC)[reply]

Interface-protected edit request 16 June 2024

It's been some time since Module:Coordinates and Module:Attached KML were updated. The parser caches have mostly caught on and Category:Pages using gadget WikiMiniAtlas now has 1.2 million pages.

To convert this to a template gadget,

  • Rename MediaWiki:Gadget-ondemand-WikiMiniAtlas.js to MediaWiki:Gadget-WikiMiniAtlas.js. The prefix is no longer required.
  • Update definition in MediaWiki:Gadgets-definition to * WikiMiniAtlas [ ResourceLoader | default | categories = Pages using gadget WikiMiniAtlas] | WikiMiniAtlas.js and put it in the template gadgets section.
  • Change the mw.loader statement (line 69) in MediaWiki:Common.js to mw.loader.load( 'ext.gadget.WikiMiniAtlas' ); as it might take some time for CDN caches for logged-out users to update. Until then, the template gadget won't load for them. There won't be any double-loading as mw.loader.load is a no-op if module was already present.
    • After 2-4 weeks, we can remove WikiMiniAtlas from Common.js entirely.
  • Update the entry in User:SDZeroBot/Gadgets-sync-config.json (page and talkPage) .

SD0001 (talk) 10:53, 16 June 2024 (UTC)[reply]

 Done * Pppery * it has begun... 00:59, 18 June 2024 (UTC)[reply]