Help:隨機根頁面
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 | Random page on wiki |
主名字空间 | Random rootpage on wiki | Random page on wiki |
帮助名字空间 | Random rootpage in Help: namespace | Random page in Help: namespace |
扩展名字空间 | Random rootpage in Extension: namespace | Random page in Extension: namespace |
目前没有提供随机显示子页面的功能。
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 .