Page semi-protected

Template:Edit

From Wikidata
Jump to navigation Jump to search

+/−

Documentation icon Template documentation[view · edit · history · purge ]

Usage

This template generates a link for editing the source of a page. The title of the page to edit can be specified in the first argument (otherwise the current page name will be used).

The template syntax is the following:

{{Edit
|1=
|2=
|section=
|editintro=
|preload=
|preloadtitle=
|tooltip=
|oldid=
}}
  • 1: the page to edit. If omitted, it will be the current page.
  • 2: the label text of the edit link. If omitted, it is "edit" by default.
  • section: the section to edit, in which 0 for the top (i.e. lead section), 1 for the first (sub-)section, and new for adding a new section.
  • editintro: the content of a page/template that will be transcluded above the edit box when you edit the page. Usually used to load template messages.
  • preload: the content of a page/template that will be preloaded into the text area of the edit form. It works only if the page to be edited does not exist.
  • preloadtitle: if making a new section (i.e. |section=new), the title to be preloaded into the title box of the edit form.
  • tooltip: the text to display when you hover over the link.
  • oldid: the oldid of a specific page revision.

Notes:

  • All parameters are optional.
  • The parameter names must be in lowercase or they will fail.