It seems that MediaWiki has some "templates" feature [1] [2] [3]
However I'm not sure it can be put to real use without obfuscating the real contents :/
(maybe I'm missing something)