https://www.mediawiki.org/wiki/Extension:TemplateSandbox
Looks very useful. Might try and get this out soon.