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?
Thanks! Andrew.
On 6/27/05, edward molasses molasses-one@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?
Thanks! Andrew.
What's wrong with excessively long dictionary entries? :O
On 6/27/05, edward molasses molasses-one@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 ).
Ævar Arnfjörð Bjarmason wrote:
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 ). _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
This makes it very clear, thank you for the help!
Hoi, You may know that we are programming a database specifically for Wiktionary. It goes by the name of "Ultimate Wiktionary". We hope to have it operational at the end of summer. For more information: http://meta.wikimedia.org/wiki/Ultimate_Wiktionary and the category Wiktionary on Meta.
I fail to understand why you want to restrict the length of dictionary entries. When people make them too long it is up to other editors to make them smaller. When you give an entry an arbitrary size, the infomation may not be complete.
Thanks, GerardM
Thanks for the news on Ultimate Wikitionary, this should be very useful for our dictionary. Also, I understand what you mean about the editing process of the Wiki. This feature was a suggestion from my supervisor but I'm still not sure that it would be necessary.
wikitech-l@lists.wikimedia.org