I have a MediaWiki installation and pages listed on a category, and when I access the category it displays "Pages in category x" and then a 3-column list of pages. What I want is to change the column count to 1 or 2. Is there a way to do this?

Live example: http://en.wikipedia.org/wiki/Category:Wikis (it has 3 columns)

link|improve this question

feedback

closed as off topic by quack quixote May 15 '10 at 7:05

Questions on Super User are expected to generally relate to computer software or computer hardware, within the scope defined in the faq.

2 Answers

up vote 1 down vote accepted

Skimming through Mediawiki documentation on categories, it seems you cannot configure the column count. (However, perhaps you could check out the DynamicPageList extension which has "multi column output", whatever that means...)

link|improve this answer
feedback

I found the answer myself.

There's no setting for this, but I managed to do this by modifying the source code.

The file "includes/CategoryPage.php" has a function "columnList", by changing the two numbers "3" to whatever you want will do it.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.