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

Agency wrote: Sorry to ask, did you find a solution?

Sorry, I haven't been online until just now. So, I see that you're using &lt;verbatim&gt; to load the script – there are some potential problems with this that you might run into in the future if you want to do things like access the MediaWiki API, or use Wikia's installation of jQuery – but for right now, with your script, verbatim is OK.

To move on to the issue at hand, you want to replace  with something else that will insert your HTML code for the template into a specific location in the webpage.

Here is a basic example of what you could replace  with in your script. This will insert your template at the very bottom of the webpage.

Now, if you want to insert your template into a different location in the webpage – not the bottom – you will need to modify the code a little bit.

Generally speaking, jQuery makes inserting elements into the document much easier – but because you are using verbatim, you don't have access to jQuery (your script will execute *before* Wikia's JavaScript and jQuery wakes up, causing an error)