MediaWiki talk:Utilities.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Prevent double loading

[edit]

I see this is used in many different scripts. Could we add something like

if (utilities_loaded) return;

at the beginning and something like

var utilities_loaded = true;

at the end? --The Evil IP address (talk) 12:41, 25 August 2010 (UTC)[reply]

Dependencies

[edit]

Since the script loads MediaWiki:Utilities.js and MediaWiki:ImageLinks.js it would be nice to make them registered gadget modules and declare them properly as dependencies in MediaWiki:Gadgets-definition. Eran (talk) 19:17, 12 February 2017 (UTC)[reply]

I want to import part of the gadget to he.wiki. only the option of showing list of a files in category in one side and the files detail near. Just the way it shows in Commons. but seems that there is some issue with it. Can someone can help her?
@Rillke: , @Lupo: . -- Geagea -- Geagea (talk) 13:14, 6 March 2017 (UTC)[reply]

Broken JavaScript

[edit]

MediaWiki developers found that this page probably breaks JavaScript for users (example: not seeing the buttons when editing a page). You probably need to edit this .js page and/or MediaWiki:Gadgets-definition as in the examples at phabricator:T122755. List more pages to check.

If you have questions or need help, please ask at phabricator:T164242. You can login with your wiki account. Best wishes, Nemo 09:49, 14 May 2017 (UTC)[reply]