This template is used on approximately 654,000 pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Preview message: Transclusion count updated automatically (see documentation). |
It provides a clickable link to edit a page, or a section of the page.
{{Edit |1= |2= |section= |editintro= |preload= |preloadtitle= |tooltip= }}
0
for the top (i.e. lead section), 1
for the first (sub-)section, and new
for adding a new section.|section=new
), the title to be preloaded into the title box of the edit form.Notes:
Code | Output | Notes |
---|---|---|
{{edit}} | Edit current page | |
{{edit| |edit template doc}} | ||
{{edit|1=Infobox foo|2=E}} | ||
{{edit|2=edit template doc}} | ||
{{edit|friendship}} | Edit the article friendship | |
{{edit|friendship|section=3}} | Edit the third order of a (sub-)section of the article friendship, which is Adolescence as of 10 Jan 2020 | |
{{edit|Draft:Sandbox|editintro=Template:Disambig editintro}} | Load {{Disambig editintro}} when you edit | |
{{edit|Template:Some new template|preload=Template:Documentation/preload}} | Preload the whoole content of {{Documentation/preload}} when you create a new template | |
{{edit|Wikipedia talk:Sandbox|section=new||preloadtitle=Custom title of the new section}} | Create a new section of a custom title | |
{{edit|2=link with tooltip|tooltip=This is a tooltip}} | Hover over the link to see the tooltip |
TemplateData for Edit
Displays a link to edit a page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page | 1 | The page to edit
| Page name | suggested |
Label | 2 | The link label
| String | optional |
Section | section | The section to edit; 0 for the top section; new for a new section
| String | optional |
Edit intro | editintro | Content that will be rendered above the edit box
| Page name | optional |
Preload | preload | Content to preload in the edit form when creating a new page or section
| Page name | optional |
Preload title | preloadtitle | If making a new section, preload text into the title box | String | optional |
Tooltip | tooltip | Text to display on mouseover
| String | optional |
Templates with view, talk and edit links: