如何更改 MediaWiki 站点的侧边栏?
MediaWiki 支持的侧边栏的默认左侧边栏包含“随机页面”和“当前事件”等链接。我想隐藏这些。
除了使用 CSS (display:none;
) 之外,还有其他方法可以做到这一点吗? 相应地,有没有办法将页面添加到这个列表中?
这需要编辑任何 PhP 文件吗?
谢谢。
The default left sidebar for a MediaWiki powered sidebar contains such links as "Random Page" and "Current Events." I want to hide these.
Is there a way to do this aside from using CSS (display:none;
)?
Correspondingly, is there a way to add pages to this list?
Would this require editing any PhP files?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
无需编码,只需在 wiki 中编辑页面“MediaWiki:Sidebar”即可。显然,需要管理员权限。
No coding needed, just edit the page "MediaWiki:Sidebar" in your wiki. Admin rights required, obviously.
MediaWiki 手册可能包含您正在寻找的信息。 (这是搜索引擎上“mediawiki 自定义侧边栏”的热门搜索结果。)
The MediaWiki manual may have the information you're looking for. (That was the top hit for "mediawiki customize sidebar" on a search engine.)
另一种选择是将链接更改为:
Another alternative is to just change the link to: