MediaWiki:基于用户类型的搜索结果的系统消息

发布于 2024-12-17 10:50:11 字数 204 浏览 2 评论 0原文

当您的 MediaWiki 搜索未找到结果时,您作为用户收到的默认系统消息是“在此 Wiki 上创建页面“{您输入的任何搜索词}”。

现在,我知道如何修改系统消息(针对搜索结果页面)但我希望以一种方式,当管理员登录时,我仍然看到“创建页面...”链接,但是当我以普通用户身份登录时,我需要隐藏该链接。或消失了

最简单的方法是什么 。这个?

谢谢!

The default system message you get as a user when your MediaWiki search found no result is "Create the page "{whatever search term you entered}" on this wiki.

Now, I know how to modify the system message (for search results page) to my liking. But I want it in a way such that when Admins are logged in, I still see the "Create the page..." link, but when I'm logged in as a normal user, I need the link hidden or gone.

What's the easiest way to achieve this?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

缱倦旧时光 2024-12-24 10:50:11

如果用户无权创建文章,则应自动使用系统消息 MediaWiki:noexactmatch-nocreate ,因此听起来您的匿名用户确实有该权利。以下是阻止它们的方法:

http://www.mediawiki.org/wiki/Manual:Preventing_access #Restrict_page_creation

System message MediaWiki:noexactmatch-nocreate should automatically be used if the user does not have the right to create articles, so it sounds like your anonymous users do have that right. Here's how to stop them:

http://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_page_creation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文