I'd like to insert a flattr image in my mediawiki installation. That requires to insert a <script>...</script>
section into the header of the html file. I have no clue, where I can insert this, for I can't find a <head>
-tag in the file MonoBook.php
. I use the current mediawiki software (1.16.2) and the MonoBook style. Can someone give me a clue where I can insert the required javascript?
Mediawiki: how to insert a <script>-Tag
8.8k views Asked by topskip At
2
There are 2 answers
4
On
If you want to insert <script>
tags using the editor, the only way to do so is to use an extension... in my case, I use WikiScript.
I have found a good solution: I enable JavaScript with
$wgUseSiteJs = true;
and insert the flattr js inMediaWiki:Common.js
.