更改为不存在的 MediaWiki 页面显示的页面
Change page shown for non existing MediaWiki page
我想更改在维基页面不存在时显示的页面内容。
参见示例:
现在我的 wiki 只显示 "There is currently no text in this page. You can search for this page title in other pages, search the related logs, or edit this page"。
更新:正如@Tgr 在下面的评论中指出的,在 MediaWiki 软件本身内编辑 MediaWiki:noarticletext
页面更容易也更安全。
如果您可以访问托管 wiki 的文件系统,您可以使用 [your wiki location in filesystem]/languages/i18n/en.json
(或您当前使用的语言)编辑 noarticletext
键。
为了让生活更轻松,您可以让 noarticletext
消息包含一个 {{No article text}}
模板(如 Wikipedia looks to have done),以便稍后可以通过编辑该模板从 MediaWiki 中编辑该消息。
谷歌搜索发现 Special404 MediaWiki extension 但它看起来也需要文件系统访问权限,至少要先安装它。
我想更改在维基页面不存在时显示的页面内容。 参见示例:
现在我的 wiki 只显示 "There is currently no text in this page. You can search for this page title in other pages, search the related logs, or edit this page"。
更新:正如@Tgr 在下面的评论中指出的,在 MediaWiki 软件本身内编辑 MediaWiki:noarticletext
页面更容易也更安全。
如果您可以访问托管 wiki 的文件系统,您可以使用 [your wiki location in filesystem]/languages/i18n/en.json
(或您当前使用的语言)编辑 noarticletext
键。
为了让生活更轻松,您可以让 noarticletext
消息包含一个 {{No article text}}
模板(如 Wikipedia looks to have done),以便稍后可以通过编辑该模板从 MediaWiki 中编辑该消息。
谷歌搜索发现 Special404 MediaWiki extension 但它看起来也需要文件系统访问权限,至少要先安装它。