Write your own MediaWiki extension