Last modified: 2014-02-25 01:41:40 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 T48918, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46918 - Present list of random articles from one or more categories
Present list of random articles from one or more categories
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Extensions requests (Other open bugs)
master
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 44278 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-05 09:01 UTC by Nemo
Modified: 2014-02-25 01:41 UTC (History)
4 users (show)

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


Attachments

Description Nemo 2013-04-05 09:01:45 UTC
+++ This bug was initially created as a clone of Bug #44278 +++

In short: implement the feature https://toolserver.org/~erwin85/randomarticle.php

Rationale: self-evident. Many wikis use this tool or equivalents as integral part of their workflow (or they did when Toolserver was more stable), see some examples at https://www.mediawiki.org/?oldid=632517

Implementation: probably a system message like [[MediaWiki:Sidebar]]; each bullet point would be a kind of task, with a title defined either on the page itself or by another system message, its sub-bullets would be category names; the special page picks N random pages from the defined categories for each kind of task and regenerates on refresh.

Open questions: whether to allow recursion (obviously preferred) or not; caching.

----

The GettingStarted extension apparently has some code that can be recycled for this:

(From bug 44278 comment #6)
> I'd still say looking at
> CategoryRoulette , RedisCategorySync, et al. is the closest thing to a robust
> system for generating random tasks from categories.
Comment 1 Nemo 2013-04-05 09:12:16 UTC
Ah, note that the originally proposed implementation was about a special page configured via a MediaWiki message, but perhaps the easiest thing to do would be e.g. extend CategoryTree or a syntax like that.
Comment 2 Nemo 2013-05-14 21:18:28 UTC
*** Bug 44278 has been marked as a duplicate of this bug. ***
Comment 3 Steven Walling 2013-08-02 00:08:22 UTC
Is this resolved now that https://gerrit.wikimedia.org/r/#/c/71997/ (Add Special:RandomInCategory) has been merged? Or is it significantly different than bug 25931?
Comment 4 Nemo 2013-08-02 06:12:46 UTC
(In reply to comment #3)
> Is this resolved now that https://gerrit.wikimedia.org/r/#/c/71997/ (Add
> Special:RandomInCategory) has been merged? Or is it significantly different
> than bug 25931?

This bug asks for a list of links (not a redirect), also from multiple categories, ideally with subcategories and namespaces handling as erwin's tool.

The idea to use a list, perhaps even included in a nice pace editable on wiki, came from the original hope to have this in GettingStarted, but that extension went in another direction, so if someone prefers to build upon the redirect feature of Special:RandomInCategory that would be fine – when all the above is implemented we'd have the MediaWiki equivalent of erwin's tool.
Comment 5 Steven Walling 2013-08-02 07:06:11 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Is this resolved now that https://gerrit.wikimedia.org/r/#/c/71997/ (Add
> > Special:RandomInCategory) has been merged? Or is it significantly different
> > than bug 25931?
> 
> This bug asks for a list of links (not a redirect), also from multiple
> categories, ideally with subcategories and namespaces handling as erwin's
> tool.
> 
> The idea to use a list, perhaps even included in a nice pace editable on
> wiki,
> came from the original hope to have this in GettingStarted, but that
> extension
> went in another direction, so if someone prefers to build upon the redirect
> feature of Special:RandomInCategory that would be fine – when all the above
> is
> implemented we'd have the MediaWiki equivalent of erwin's tool.

In the long term, we do want to build our CategoryRoulette function in to a simple API for accessing tasks, but it's likely not going to be suitable for application to any category. In discussion on the Special:RandomInCategory patch, it was agreed that the next immediate step for that is to do something with an API method, not dependent on a Special page. That likely will help serve the use case you're thinking of.

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


Navigation
Links