Help:Random page: Difference between revisions
m Reverted edits by 189.157.24.102 (talk) to last version by Clump Tag: Rollback |
provide exampe and mw version |
||
| Line 13: | Line 13: | ||
</translate> |
</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.</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.</translate> |
||
<translate><!--T:11--> |
<translate><!--T:11--> Starting with MediaWiki 1.41 you can separate multiple namespaces with a comma, e.g., <tvar|category>[[Special:Random/Help,Project]]</> will show the contents of a random page either in the Help or Project namespace.</translate> |
||
<translate> |
<translate> |
||
Revision as of 11:27, 3 January 2024
| Note: When you edit this page, you agree to release your contribution under the CC0. See Public Domain Help Pages for more info. |

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
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
- Manual:$wgContentNamespaces - this will set what namespaces should be counted as article content and included in Special:Random function