Getting config information from a MediaWiki page

66 Views Asked by At

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/

1

There are 1 best solutions below

0
On

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.