rewrite mediawiki plugin with api access