Author: tisane2718
Description:
Presently, exclusion of blank pages from the "Random Page" special page is implemented as a separate special page, Special:RandomExcludeBlank, in Extension:PureWikiDeletion (see http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/PureWikiDeletion/SpecialPureWikiDeletion.php?view=markup ), whose code is a fork of SpecialRandomPage.php. Rather than forking the code, it seems like it would be better to just add a boolean argument in the core that, if true, would cause blank pages to be excluded. There might be other wikis not using PureWikiDeletion that nonetheless have some blank pages they would want to exclude from showing up on "Random Page" requests.
I suppose the easiest implementation would be to select a random page, check to see if it's blank, and if it is, then select a different random page; and keep doing that until a non-blank page is found.
Version: unspecified
Severity: enhancement