Call MediaWiki script from Wikipedia

0

I created a new MediaWiki project and it's likely I'll need to call some MediaWiki JS scripts from English Wikipedia (I'd prefer to call them instead copy-paste them in MedaiWiki:Common.js).

Is it possible to call a MediaWiki JS script from Wikipedia?

JohnDoea

Posted 2019-04-19T12:29:07.303

Reputation: 1 029

Answers

1

Possible although not necessarily a good practice. You can use mw.loader.load or jQuery.getScript or any other normal script loading method.

Tgr

Posted 2019-04-19T12:29:07.303

Reputation: 2 363