7

Mediawiki provides a special page to view all "Wanted Pages" (pages that are linked to but that don't have existing articles yet) by visiting /Special:WantedPages on the wiki. Check out Wikipedia's Wanted pages to see what I'm talking about.

My issue is that the Wanted Pages list will quickly fill up with pages to special namespaces. At the moment my wiki is chock full of wanted pages in the Template, Talk, and Category namespaces, to name a few.

With so many links to special namespace pages, the articles in the Main namespace (the ones my users actually care about) are getting lost. Is there any way (through an extension or what have you) to create a list of wanted pages that are only in the Main namespace?

4

1 回答 1

4

请参阅WantedPagesFromNS扩展。但是,您必须对扩展源文件进行少量编辑,以便它可以与最新版本的 Mediawiki (1.20+) 一起使用。

  • 将下载的 .zip 文件重命名为 .7z,以便您可以正确展开它。
  • WantedPagesFromNS文件夹复制到extensionsMediawiki 安装文件夹中。
  • 打开WantedPagesFromNS.php文件并注释掉读取的行wfLoadExtensionMessages( 'WantedPagesFromNS' );。(该功能在 Mediawiki 中已被弃用,完全不需要。请参阅此处了解更多详细信息。)
  • 最后,添加include_once("$IP/extensions/WantedPagesFromNS/WantedPagesFromNS.php");LocalSettings.php.

要查看 wiki 中 Main 命名空间的 Wanted 页面,请将其放在您希望列表出现的任何页面上:

<wantedpagens>
    namespace = Main
</wantedpagens>
于 2013-07-31T18:39:22.047 回答