On Sun, Jun 06, 2004 at 10:42:58AM +0200, Ashar Voultoiz wrote:
Tobin Richard wrote:
I've made some changes to Parser.php on my
local install to make
category pages a little neater. You can take a look at
http://meta.wikipedia.org/wiki/Image:Category_sort_example.png for a
fairly recent screenshot.
Things changed are
* Three column view of sub categories and articles
* List view of subcategories and articles (if there are only a few)
* headings for the first letter of sort keys in article and subcategory
lists
* "Category" doesn't appear before subcategories and
* Display of the number of articles and subcategories.
I have no idea if this code is safe/well thought out/whatever but it
works fine on my local mediawiki installation.
And no picking on my php skills ;-)
Tobin.
My version of the categoryMagic function follows. Just about everything
after "# For all pages that link to this category" is changed.
----
<snip code>
Hello Tobin,
It looks great. I think we should implement it while we are still in
beta :o)
OK, it's in, but it's configurable, since I doubt it will work properly
for all languages (esp. some Asian ones).
----------------------------------------------------------------------
Category: Page
There are two layouts for the category pages. One that simply lists articles
one by another, and one that puts them in a table and groups them by
their first character. The second and newer one uses MySQLs default sort
order, which might not be apropriate for all languages.
One can select which of the two styles is used by changing
MediaWiki:Usenewcategorypage. If the first character of that page is a '0'
(zero),
the old layout will be used. This can be changed on a per-wiki base.