Board Thread:Support Requests - Getting Technical/@comment-28171460-20160709020954/@comment-28171460-20160709025844

Thanks for your input Saftzie!

You said that I probably would't need to get each item (in this case television episode) approved individually, but don't all of the ratings have a completely different embed code?

For example, one television episode's JavaScript embed code looks like this:   (function(d,s,id){var js,stags=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}js=d.createElement(s);js.id=id;js.src="http://g-ec2.images-amazon.com/images/G/01/imdb/plugins/rating/js/rating.min.js";stags.parentNode.insertBefore(js,stags);})(document,'script','imdb-rating-api');

If I wanted to get another episode's rating, wouldn't I need to get a completely different piece of JavaScript? Is there a way of making a JavaScript code on the MediaWiki that can be changed depending on which Wiki page it is being used on?