Page MenuHomeMiraheze

Add slick to my wiki
Closed, InvalidPublic

Description

https://wiki.warfra.ml/wiki/Main_Page

Hello there I'd like the jquery plugin slick (https://github.com/kenwheeler/slick/) to be added to my wiki

Thanks in advance

Event Timeline

Is it hard to add is as a on demand feature? I have added both the css and js to my wiki, and is there anyway that a tag, extension or template could load it?

https://wiki.warfra.ml/wiki/MediaWiki:Slick.js
https://wiki.warfra.ml/wiki/MediaWiki:Slick.css

AmandaCath changed the task status from Open to Stalled.Jan 10 2019, 22:54
AmandaCath edited projects, added Extensions, Extension-Review; removed Configuration.

Hmm.. not sure if this quite qualifies as an extension, but it will still need to pass security review due to it being something external from the MediaWiki core.

Why would this need to pass a security review? Anything loaded on the page would be restricted to the warfra.ml wiki and wouldn't affect the rest of Miraheze.

Unless there's some kind of global rule against using MediaWiki pages to do imports that I'm not aware of?

@Corey We have an HTTP Content Security Policy, which prevents loading external sources that aren’t whitelisted

Even if its code is hosted under the wiki? as pointed in

Is it hard to add is as a on demand feature? I have added both the css and js to my wiki, and is there anyway that a tag, extension or template could load it?

https://wiki.warfra.ml/wiki/MediaWiki:Slick.js
https://wiki.warfra.ml/wiki/MediaWiki:Slick.css

You could load it in as a gadget, by moving MediaWiki:Slick.js and MediaWiki:Slick.css to MediaWiki:Gadget-Slick.js and MediaWiki:Gadget-Slick.css. Then add the following to MediaWiki:Gadgets-definition:
* Slick[ResourceLoader]|default|Slick.js|Slick.css
Then, you could create MediaWiki:Gadget-Slick with information on what it does.

John subscribed.

Gadget