Hi,
I'm interesting in doing the following: for every listing of articles in a category, give the user the option to view the list sorted according to criteria other than the standard sort key. e.g., the user should be able to view all pages of a category in order of page length, number of page revisions, number of inward links to the page, number of page views, etc.
From what I gather, this will need a separate extension. Does an
extension of this sort already exist? If not, how hard would it be to write such an extension? I'm looking only for something that works in principle and is effective on small wikis (upto 20,000 pages or so, with a few thousand page views per day), not necessarily something that is efficient on a very huge wiki. So, I am okay with querying multiple tables.
I've figured out the syntax for the SQL part of the query (in terms of how to do joins of the various tables to get the required list) but I'm not sure how this should be pieced together to provide the display. I'd like any pointers that people have about writing such an extension.
Thanks,
Vipul
On Sun, Feb 8, 2009 at 12:37 PM, Vipul Naik vipul.wikis@gmail.com wrote:
I'm interesting in doing the following: for every listing of articles in a category, give the user the option to view the list sorted according to criteria other than the standard sort key. e.g., the user should be able to view all pages of a category in order of page length, number of page revisions, number of inward links to the page, number of page views, etc.
From what I gather, this will need a separate extension. Does an extension of this sort already exist? If not, how hard would it be to write such an extension? I'm looking only for something that works in principle and is effective on small wikis (upto 20,000 pages or so, with a few thousand page views per day), not necessarily something that is efficient on a very huge wiki. So, I am okay with querying multiple tables.
I've figured out the syntax for the SQL part of the query (in terms of how to do joins of the various tables to get the required list) but I'm not sure how this should be pieced together to provide the display. I'd like any pointers that people have about writing such an extension.
Perhaps DPL does what you want?
On Sun, Feb 8, 2009 at 12:37 PM, Vipul Naik vipul.wikis@gmail.com wrote:
I'm interesting in doing the following: for every listing of articles in a category, give the user the option to view the list sorted according to criteria other than the standard sort key. e.g., the user should be able to view all pages of a category in order of page length, number of page revisions, number of inward links to the page, number of page views, etc.
From what I gather, this will need a separate extension. Does an extension of this sort already exist? If not, how hard would it be to write such an extension? I'm looking only for something that works in principle and is effective on small wikis (upto 20,000 pages or so, with a few thousand page views per day), not necessarily something that is efficient on a very huge wiki. So, I am okay with querying multiple tables.
I've figured out the syntax for the SQL part of the query (in terms of how to do joins of the various tables to get the required list) but I'm not sure how this should be pieced together to provide the display. I'd like any pointers that people have about writing such an extension.
This would be awesome! When I have written category page extensions I've used something like http://www.mediawiki.org/wiki/Extension:SplitCategoryPage as an example to work from. Let us know when you get this working!
-Courtney
wikitech-l@lists.wikimedia.org