Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've recently set up the newest MediaWiki install. I'm trying to force users to make an article part of a certain category. I'm using the SelectCategory extension to ask them when editing an article, however it is possible that they don't select any categories and simply save the page without it being attached to a category.

Is there a way (extension/setting/hack) that I can make a default category that all new articles will be a part of if they aren't added in another one?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

There is no way that I know of which leaves you with only a few options:

  1. Modify the SelectCategory to force selection of a category.
  2. Modify MediaWiki code, or create a new extension, to force a category selection.
  3. Perform the category selection post-editing (patrols, bots, manual editing, etc...).

Keep in mind that if you edit any MediaWiki code it will be difficult to upgrade in the future. Ideally you probably want to create a custom extension that does what you want. I haven't done any category related MediaWiki coding but the latest versions generally have enough hooks that you can do most things via an extension relatively easily.

share|improve this answer
    
I was thinking modifying SelectCategory would be the easier option for a non-php programmer. I'm just trying to comb through the source and find where it generates the checkboxes and auto-check the Uncategorized one. No luck yet. –  MaxMackie May 9 '11 at 22:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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