Template:Edit section/doc
< Template:Edit section
Jump to navigation
Jump to search
Revision as of 06:40, 20 September 2008 by imported>SMcCandlish (creating documentation)
| 40px | This is a documentation subpage for Template:Edit section. It contains usage information, categories and other content that is not part of the original template page. |
Usage
The template {{Editsection}} (which uses a <div>) and its variant {{Editsection2}} (which uses a <span> for cases where a <div> would be illegal markup, but is otherwise identical) allows the creation of a right-hand-side "[edit]" link where one otherwise would not exist.
The templates take a single parameter, the number of the section to edit, as this will appear in the edit URL. If unspecified, it defaults to 0. The principal use of this is to add an edit link to the lead section (section 0) of article with long leads. It cannot be used to add edit links to arbitrary blocks, as they will not have section numbers.