Jump to content

Help:隨機根頁面

From mediawiki.org
This page is a translated version of the page Help:Random root page and the translation is 48% complete.
左侧的默认变量,参见从上往下第五个链接

Randomrootpage (Special:Randomrootpage) allows the display of a random root page a wiki.

The regular random link generator (Special:Random) is not suitable for some wikis or namespaces where utilising subpage hierarchies (such as Wikibooks). 所以这个功能可以作为替代。 例如,它可用于在维基教科书中显示“随机书籍”,而不是随机页面。 In a namespace where there are no subpages then the functionality is the same as Special:Randompage.

By default, selection will be limited to pages from namespaces in $wgContentNamespaces . 用户可以选择要查看的命名空间。 For example, if they wanted to view a random file they could go to Special:Random/file. If they wanted to view a random mainspace page they could go to Special:Random/main, etc.

用法

[[Special:Randomrootpage]]
[[Special:Randomrootpage/{Namespace}]]
[[Special:Randomrootpage]] [[Special:Random]]
内容名字空间 Random rootpage on wiki
Special:Randomrootpage
Random page on wiki
Special:Random
主名字空间 Random rootpage on wiki
Special:Randomrootpage/Main
Random page on wiki
Special:Random/Main
帮助名字空间 Random rootpage in Help: namespace
Special:Randomrootpage/Help
Random page in Help: namespace
Special:Random/Help
扩展名字空间 Random rootpage in Extension: namespace
Special:Randomrootpage/Extension
Random page in Extension: namespace
Special:Random/Extension

目前没有提供随机显示子页面的功能。

Some wikis utilise this in the configuration of their 侧边栏 (MediaWiki:Sidebar).

历史

This functionality used to be in 扩展:随机根页面 though was merged into core in MediaWiki 1.27 .

參見