https://bugzilla.wikimedia.org/show_bug.cgi?id=23843
Summary: Add another argument in SpecialRandompage.php to allow
exclusion of blank pages
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Special pages
AssignedTo: [email protected]
ReportedBy: [email protected]
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l