Template:Edit link/doc

This template is used in template documentation to create an "[edit]" link on non-wikified section headings. An example of its use is seen on the page Template:Ht/doc/See also, which is a bit of reusable documentation listing multiple templates with similar functionality. Instead of repeating the same "See also" section on multiple template pages, it is stored on one page and transcluded into Template:Ht/doc, Template:Htc/doc, and Template:Htm/doc.

If this were attempted using a regular wikified section heading in Template:Ht/doc/See also, it would not work at all (the wikicode would be displayed instead of a section heading). If it were accomplished using a wikified section heading on each of Template:Ht/doc, Template:Htc/doc and Template:Htm/doc, the resulting (auto-generated) "[edit]" links would lead users to edit those pages instead of Template:Ht/doc/See also. In order to give users the expected behavior, the "See also" section heading is generated (in Template:Ht/doc/See also) using an HTML element along with a call to this template,.

Because of the specialized nature of this template, it should not be used in articles (in the main namespace).

Parameters
None.

Usage
See the template's testcases: