Can someone with enough permissions (admin?) put this in Mediawiki:Wikia.js:
// For Template:Adventure_Reward/Table_Row // converts <span class"itemlink">[[Page]]</span> to <span class"itemlink">{{:Template:Page}}</span> $( document ).ready( function () { var url_links = {}; // url -> [link, ...] $( '.itemlink a' ).each( function ( idx, link ) { var url = link.getAttribute('href'); url = url.replace('/wiki/', '/wiki/Template:'); url += '?action=render'; if ( ! url_links.hasOwnProperty(url) ) { url_links[url] = []; } url_links[url].push(link); }); for ( var url in url_links ) { $(url_links[url]).closest('.itemlink').load(url); } });
It is for Category:Adventure_Rewards. It will load the images by converting the item links to their icon views. Ex: converts Stone to To Do List/@comment-3134670-20160309133640
It was hitting the template post-expand include size when it had the images directly (probably because of all the inline styles).
Ideally it should go to MediaWiki:Common.js but there is no point in that unless someone with enough permissions edits the css as I described in Thread:49618 (I don't have the required permissions so can't do it).