Been trying to figure out where to even find information on this.
Got a wiki up and running, and added semantic to be able to do some more stuff. Now I want the data that I added using semantic to generate some fancy graphics using javascript. My problem is as follows.
I can't find much in the way of information how to embed javascript in mediawiki. Got as far as that it needs to be added to MediaWiki:Common.js.
But are there examples. In my case, how to call a function deffined in Common.js Secondly (and this probably does not belong here, but thought I might be lucky) How would I go about running a SMW ask and get the data to the javascipt rather than generate the page. I have managed to get it into an array, but just don't know if that array can be accessed or if I need to do some JSON magic or similar.