开发者

Mediawiki: how to insert a <script>-Tag

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?


I have found a good solution: I enable JavaScript with $wgUseSiteJs = true; and insert the flattr js in MediaWiki:Common.js.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜