将CSS或JS文件添加到MediaWiki? [英] Adding CSS or JS file to MediaWiki?

查看:1159
本文介绍了将CSS或JS文件添加到MediaWiki?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在mediawiki.org上一直在使用一些教程,但我没有做。我需要添加一个新的CSS或JS代码在所有我的wiki(基本上是因为我需要添加一些div标签)。

I've been following some tutorials at mediawiki.org but I didn't make it. I need to add a new CSS or JS code to be available in all my wiki (basically be cause I need to add some div tags).

你们可以帮助我?

请感谢。

推荐答案

您可以编辑wiki使用的CSS或JS文件的页面名称:

You can edit the CSS or JS files used by your wiki at the page names:

MediaWiki:Common.css
MediaWiki:Common.js

例如, Wikipedia使用的Common.css

还有用于特定主题的类似页面。例如,如果您的wiki使用Vector主题,您可以将特定于该主题的代码放置在:

There are also similar pages used for specific themes. For instance, if your wiki is using the Vector theme, you can place code specific to that theme at:

MediaWiki:Vector.css
MediaWiki:Vector.js

页面需要管理员权限。

这篇关于将CSS或JS文件添加到MediaWiki?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆