Extension:TemplateWizard

The TemplateWizard extension adds a popup dialog box for adding template code to wikitext.

Demonstration
A working gadget version of this extension is available for testing on Wikimedia sites by adding the following line to your global.js page on Meta:

Installation
First install Extension:TemplateData and Extension:WikiEditor.