如何更改 MediaWiki 站点的侧边栏?

发布于 2024-12-27 12:05:30 字数 180 浏览 2 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

星星的轨迹 2025-01-03 12:05:30

无需编码,只需在 wiki 中编辑页面“MediaWiki:Sidebar”即可。显然,需要管理员权限。

No coding needed, just edit the page "MediaWiki:Sidebar" in your wiki. Admin rights required, obviously.

残月升风 2025-01-03 12:05:30

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.)

决绝 2025-01-03 12:05:30

另一种选择是将链接更改为:

http://yourdomain/yourwiki/index.php?title=MediaWiki:Sidebar&action=submit

Another alternative is to just change the link to:

http://yourdomain/yourwiki/index.php?title=MediaWiki:Sidebar&action=submit
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文