Last modified: 2009-06-08 13:40:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T15051, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13051 - Have a Special:Randombook, or similar, that only returns top-level pages
Have a Special:Randombook, or similar, that only returns top-level pages
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 15827 19101 (view as bug list)
Depends on:
Blocks: 16655
  Show dependency treegraph
 
Reported: 2008-02-18 02:16 UTC by Andrew Whitworth
Modified: 2009-06-08 13:40 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andrew Whitworth 2008-02-18 02:16:19 UTC
en.wikibooks in particular, but other sites as well, have a problem because our pages are not all top-level pages, but are instead arranged hierarchically. En.wikibooks may have pages arranged into books such as "MyBook/MyPage", or en.wikiversity may have "MyCourse/MyPage", en.wikisource may have "MySource/MyPage", etc. Special:Random returns any random page, which may be inside a larger book. I would like, and several other people have expressed a similar desire, to see a variant of Special:Random that would only return top-level pages (ie, pages with no "/" in the title). For instance, "Special:Randomrootpage" would be a generic way to label it, or something similar.
Comment 1 Huji 2008-02-18 10:27:06 UTC
As this is only needed for wikis which follow the subpage hierarchy, I think it will be more appropriate to add this feature as an extension, not in the core. I'll try to write the extension as soon as I can.
Comment 2 Huji 2008-02-18 11:43:05 UTC
I created the first version of the extension and uploaded it to: http://www.mediawiki.org/wiki/Extension:RandomRootPage

After a review by main developers, it may be installed to Wikibooks for the prupose you asked here. I'm marking this bug as fixed, because there is a solution available for it now.
Comment 3 Andrew Whitworth 2008-02-18 15:45:17 UTC
Wow, that's fantasically awesome! We've been talking about this for so long, and I was expecting a bug report to add a few more weeks to the process. You're wonderful Huji!
Comment 4 Huji 2008-02-18 15:49:44 UTC
Heh, thanks for the complements. I'm glad I've helped. If you want help with the rest of the way, you can contact me by email.
Comment 5 Chad H. 2008-12-15 19:38:38 UTC
*** Bug 15827 has been marked as a duplicate of this bug. ***
Comment 6 Chad H. 2009-06-08 13:40:21 UTC
*** Bug 19101 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links