Board Thread:Support Requests - Getting Technical/@comment-7656200-20150103070709/@comment-4018164-20150107103437

Script tags cannot be included in wiki code, so MediaWiki:Common.js is where a script such as this should be stroed. The wiki code, however, allows you to both tell the script where you want the additional content to be inserted, and also allow your script, if constructed this way, to get data from the page content.

I'll give you an example. Suppose you want to add to the page a table with an item name, its ID and its image URL (just an example- if you want some sort of different info or not in a table, i could see what i can do). A good way to implement it is by adding to the article, in the place on which you want the table to be placed, the following wiki code (which can also be added as a wiki template): Loading... On that example,   is a comma-separated list of item IDs for the table to load. Then, some additional javascript could be used to make the table: '); }

$("span.itemdata").each(function {	var currNode = this;	console.info("currNode:");	console.info(currNode);	loadItemJSON($(currNode).attr("data-ids").replace(/[^\d\,]/g, ""), function(data) { itemToTable(currNode, data); }); }); I haven't gone through what the API offers in a very detailed manner, but there are probably other useful things to get from it and more useful than the english name and the icon URL.