On 6/27/05, edward molasses <molasses-one(a)shaw.ca> wrote:
Hello,
I am installing MediaWiki to be used to hold a dictionary and I would
like to be able to give an administrator the ability to control how long
dictionary entries (i.e. wiki pages) should be. I have not been able to
find reference to this functionality in MediaWiki's documentation so I
am assuming it is not implemented. Could anyone suggest where in the
MediaWiki source code I would look to go about implementing this type of
functionality?
It's not implemented.
First of all, we don't have any kind of proper ACL stuff that you
could extend so you'll have to create a new table (or extend a current
one), the former is easier, create something like page_length that
contains three fields, length_ns, length_title and length_length which
hold the namespace (int), title (varchar) and length you want to allow
on the page. Then make an interface for that, your best bet would be
just making a new tab in monobook (length configuration) that allows
your administrators to configure the length of a page and then check
if a new page meets those requirements on save ( see EditPage.php ).