Template:Template/Doc

creates a new template in a convenient form to be documented.

On a new or blank template page, type:

This will create a template of the form: