Translations:Manual:$wgRawHtml/27/en

allows HTML and Smarty PHP templates, ostensibly in the form of "widgets", but it can do nearly anything else too.