Thread:Mathmagician/@comment-5333460-20131022043931/@comment-4674838-20131102031905

Okay, so from looking at what your code does – it looks like you have a template that you want to load with JavaScript. And you only want this template to be used by a certain list of websites – namely, the various PSBKIDS wikis.

It looks like the problem you're running into is you're using  to write the template to the webpage. There are more reliable ways to add your template to the page. I could suggest one, but first, can you show me a screenshot of the template behaving normally as you want it to? Particularly, I'd like to see a screenshot of one of your PBSKids wiki with the template on it, so I can see exactly where you want it to appear on the page.

Edit: Question #2 – are you loading this script from MediaWiki:Wikia.js, or with &lt;verbatim&gt; tags on a specific page (e.g. your homepage)?