User:Jack McKalling/sandbox2

This template provides a link to edit a page. This is useful for example for templates that include headings, of which the edit links should target the transcluding page instead of the template itself.

Usage
All parameters are optional
 * Page: the page to edit, if not the current (transcluded) page
 * Label: the text to label the link, defaults to "edit"
 * Section: the section to edit, 0 for top section, "new" to add a new section