Manual:$wgExtraRandompageSQL
From MediaWiki.org
This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility.
This feature was deprecated in version 1.16.0.
| Site customization: $wgExtraRandompageSQL | |
|---|---|
| Filter for Special:Randompage. Part of a WHERE clause. |
|
| Introduced in version: | 1.3.0 (r4256) |
| Removed in version: | still in use |
| Allowed Values: | (string), false |
| Default Value: | false |
Other settings: Alphabetical | By Function
Note: As of 1.16, the Hooks/SpecialRandomGetRandomTitle hook provides a more flexible interface to modify the selection criteria.
[edit] Details
Filter for Special:Randompage. Part of a WHERE clause.
This variable can be used to bias or change the nature of the "random" page search. For example, to prevent the Main Page from showing as a randomly selected page, set:
$wgExtraRandompageSQL = 'page_title != "Main_Page"';