From MediaWiki Widgets

A widget is a HTML page that can be embedded (similarly to templates) in normal wiki page. You do this by creating pages in the Widget namespace. They avoid the security problems of raw HTML in editable wiki pages because the privilege to edit in the Widget namespace is managed.