Template extension for mediawiki