Saturday, December 03, 2005

python

I started reading up on python today. I tweaked some code for a script to do automatic updates to MediaWiki articles . It takes an argument of the article name and reads in wikitext from a file, then POSTs it to the article. I'm using the SimpleUpdate extension to handle adding the POSTs to the database. Works quite nicely.

Now I'm going to write a PHP script to generate an HTML form, take the input and insert the fields into some simple wikitext which will call a MediaWiki template that I'll create with some nice layout. This will be the basis for creating forms that can be submitted to generate MediaWiki articles, for users who don't want or need to be exposed to full wikitext. I searched for something to do this for a while, and it may exist but I'll be darned if I can find it.

If you know of a more standard way, let me know, but otherwise this crude hack will serve me well. If I can make it a little more elegant I may even share it with the world. And thus MediaWikiForms shall be born! HAHAHAHAHAH!!!

Or not.