Jump to content

Help:Random page: Difference between revisions

From mediawiki.org
Content deleted Content added
m Reverted edits by Mistique Ra (talk) to last revision by Shirayuki
m editace
 
(36 intermediate revisions by 25 users not shown)
Line 1: Line 1:
<languages />
<languages />
{{TNT|PD Help Page}}
{{PD Help Page}}
{{TNT|Special page}}
{{Special page}}
[[Image:Vector Sidebar.png|framed|{{dir|{{pagelang}}|left|right}}|<translate><!--T:10-->
[[Image:Vector Sidebar.png|framed|{{dir|{{pagelang}}|left|right}}|<translate><!--T:10--> The default sidebar on the left, see the fifth link from top</translate>]]
The default sidebar on the left, see the fifth link from top</translate>]]
<translate>
<translate>
<!--T:2-->
<!--T:2-->
The '''random page''' feature allows users to view a wiki page at random. The default, and most convenient use is to show a random page in the main namespace, and is accessed through the <tvar|random>[[Special:Random]]</> page. Users will be redirected to the selection.
The '''random page''' feature allows users to view a wiki page at random. The default, and most convenient use is to show a random page in the main namespace, and is accessed through the <tvar name=random>[[Special:Random]]</tvar> page. Users will be redirected to the selection.


<!--T:3-->
<!--T:3-->
<tvar|randompg>[[Special:Randompage]]</> is an alias for the feature and works in the same manner.
<tvar name=randompg>[[Special:Randompage]]</tvar> is an alias for the feature and works in the same manner.


==Namespace selection== <!--T:4-->
==Namespace selection== <!--T:4-->
</translate>
<translate><!--T:5--> Users can also opt to view a random page in a namespace of their choice. This is achieved by specifying a namespace as a parameter to the page, i.e. <tvar name=help>[[Special:Random/Help]]</tvar> will select a random page in the Help namespace; <tvar name=1>[[Special:Random/Category]]</tvar> will show the contents of a random category, etc.</translate>
<translate><!--T:11--> Starting with MediaWiki 1.41 you can separate multiple namespaces with a comma, e.g., <tvar name=category>[[Special:Random/Help,Project]]</tvar> will show the contents of a random page either in the Help or Project namespace.</translate>


<translate>
<!--T:5-->
Users can also opt to view a random page in a namespace of their choice. This is achieved by specifying a namespace as a parameter to the page, i.e. <tvar|help>[[Special:Random/Help]]</> will select a random page in the Help namespace; <tvar|category>[[Special:Random/Category]]</> will show the contents of a random category, etc.

==Settings== <!--T:6-->
==Settings== <!--T:6-->
</translate>
* {{ll|Manual:$wgContentNamespaces}}<translate><!--T:7--> this will set what namespaces should be counted as article content and included in <tvar name=random>[[Special:Random]]</tvar> function</translate>


<translate>
<!--T:7-->
* <tvar|ContentNamespaces>{{ll|Manual:$wgContentNamespaces}}</> - this will set what namespaces should be counted as article content and included in <tvar|random>[[Special:Random]]</> function


==See also== <!--T:8-->
==See also== <!--T:8-->
</translate>
</translate>
* {{ll|Help:RandomInCategory}}
* {{ll|Help:RandomInCategory}}
* {{ll|Manual:Random page}}
* {{ll|API:Random}}


[[Category:Help{{translation}}|{{PAGENAME}}]]
[[Category:Help{{#translation:}}|{{PAGENAME}}]]

Latest revision as of 18:23, 28 December 2025

The default sidebar on the left, see the fifth link from top

The random page feature allows users to view a wiki page at random. The default, and most convenient use is to show a random page in the main namespace, and is accessed through the Special:Random page. Users will be redirected to the selection.

Special:Randompage is an alias for the feature and works in the same manner.

Namespace selection

[edit | edit source]

Users can also opt to view a random page in a namespace of their choice. This is achieved by specifying a namespace as a parameter to the page, i.e. Special:Random/Help will select a random page in the Help namespace; Special:Random/Category will show the contents of a random category, etc. Starting with MediaWiki 1.41 you can separate multiple namespaces with a comma, e.g., Special:Random/Help,Project will show the contents of a random page either in the Help or Project namespace.

Settings

[edit | edit source]


See also

[edit | edit source]