On all wikis where I've used the VisualEditor, a drop-down appears when editing a wikilink, as shown in the manual. Except not on nds-nlwiki. What's wrong?
Description
Description
Related Objects
Related Objects
Event Timeline
Comment Actions
This is because of the method Array.prototype.intersects defined in https://nds-nl.wikipedia.org/wiki/MediaWiki:Common.js. Extending the native object's prototypes is not supported by MediaWiki: https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_(users)#Prototyping.
Comment Actions
This is the same issue as T252421 (probably copy-pasted code).
Looks like a few other projects also have it: https://global-search.toolforge.org/?q="Array.prototype.intersects"&namespaces=2%2C4%2C8&title=%28Gadgets-definition%7C.*%5C.%28js%7Ccss%7Cjson%29%29
Wiki | Page title |
---|---|
diq.wikipedia | https://diq.wikipedia.org/wiki/MediaWiki:Common.js |
gag.wikipedia | https://gag.wikipedia.org/wiki/MediaWiki:Common.js |
hr.wikisource | https://hr.wikisource.org/wiki/MediaWiki:Common.js |
nds-nl.wikipedia | https://nds-nl.wikipedia.org/wiki/MediaWiki:Common.js |
th.wikipedia | https://th.wikipedia.org/wiki/มีเดียวิกิ:Common.js |
th.wikibooks | https://th.wikibooks.org/wiki/มีเดียวิกิ:Common.js |
th.wikisource | https://th.wikisource.org/wiki/มีเดียวิกิ:Common.js |
zh.wikipedia | https://zh.wikipedia.org/wiki/User:高文海/edit.js |
zh.wikipedia | https://zh.wikipedia.org/wiki/User:WhitePhosphorus/磷原子4号/edit.js |
Comment Actions
I updated the page on mw.org which was the source of that code: https://www.mediawiki.org/w/index.php?title=Manual:Force_preview&diff=4470155&oldid=4294352&diffmode=source
And all of the other projects:
- https://diq.wikipedia.org/w/index.php?title=MediaWiki:Common.js&diff=475571&oldid=365816
- https://gag.wikipedia.org/w/index.php?title=MediaWiki:Common.js&diff=65465&oldid=64961
- https://hr.wikisource.org/w/index.php?title=MediaWiki:Common.js&diff=58937&oldid=58916
- https://th.wikipedia.org/w/index.php?title=มีเดียวิกิ:Common.js&diff=9313951&oldid=9274697
- https://th.wikibooks.org/w/index.php?title=มีเดียวิกิ:Common.js&diff=58242&oldid=58087
- https://th.wikisource.org/w/index.php?title=มีเดียวิกิ:Common.js&diff=148918&oldid=146339
- https://zh.wikipedia.org/w/index.php?title=User:高文海/edit.js&diff=64879002&oldid=59137610
- https://zh.wikipedia.org/w/index.php?title=User:WhitePhosphorus/磷原子4号/edit.js&diff=64879006&oldid=59458195