Template:Edit section

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search


Template documentation[view] [edit] [history] [purge]

Usage[edit]

The template {{Edit section}} (which uses a <div>) and its optional parameter version {{Edit section|type=span}} (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.

See also[edit]

[] Compare different edit templates:
  • {{Ed}} – navbar style edit link
  • {{Ed right}} – navbar style edit link aligned to right of page
  • {{Edit}} – plain edit link
  • {{Edit section}} – edit link aligned to right of page
  • {{Edit sup}} – edit link with <sup> tags
  • {{Edit sub}} – edit link with <sub> tags
  • {{Vedit}} – edit with the Visual Editor

Templates with view, talk and edit links:

  • {{Navbar}} – navigation bar with configurable caption and view·talk·edit links
  • {{View}} - view·talk·edit links
  • {{VTE}} & {{V}} - v·t·e links (i.e. view·talk·edit links in short forms)