I am developing a MediaWiki extension and I would like it to be able to pull simple configuration settings from a MediaWiki page that can be edited when and if certain things are added such as a category. I am quite unsure how I would go about doing something like this. any help would be appreciated/
Asked
Active
Viewed 48 times
0
-
I think you need to be more specific if you want to get a proper answer here. Try to describe what you want to do in more detail. – the Jan 04 '14 at 19:35
1 Answers
0
Typically, on-wiki settings would be stored in the MediaWiki namespace. There are no built in methods for getting and setting such configuration setting, so you will have to parse those pages manually. For a (quite complex) example, see how the sidebar is built from MediaWiki:Sidebar
in Skin.php
A more user friendly approach, of course, would be to create a simple special page, that gets and sets the configuration settings from the database. Depending on your exact needs, that might be almost as simple to build.

leo
- 8,106
- 7
- 48
- 80