MediaWiki:基于用户类型的搜索结果的系统消息
当您的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果用户无权创建文章,则应自动使用系统消息
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