Board Thread:Support Requests - Getting Technical/@comment-995176-20190108231324/@comment-995176-20190111200454

Andrewds1021 wrote: You import the script using your wiki's MediaWiki:ImportJS (help page). The line you would add is dev:CategoryIcon/code.js This has been explained on the page Fngplg linked to.

As for window.fng.cicon, I am guessing that your need to create that in MediaWiki:Wikia.js. There is an example on the page that was linked to. Thank you for directing me towards that page. But Im super confused on how the initial Skelton of the code actually works.

https://xianb.wikia.com/wiki/Category:Teams?sort=alphabetical

Like I want to change the display image of Category Agrabah from Megara to Jasmine.

https://xianb.wikia.com/wiki/Category:Agrabah?sort=alphabetical

On the script skelton I dont know how to properly fill out the details to make the change.

//create settings object window.fng = $.extend(window.fng, {cicon:{}}); //set file extension to .svg window.fng.cicon.ext = '.svg'; //append 'Map ' to all filenames ('Map Earth' etc) window.fng.cicon.iprepend = 'Map '; //request downscaling to 50px window.fng.cicon.scale = '/scale-to-width-down/50';