Template:Edit/doc

< to the /doc subpage, and interwikis at Wikidata (see Wikipedia:Wikidata)

It provides a clickable link to edit a page, or a section of the page.

Usage

 * 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  for the top (i.e. lead section),   for the first (sub-)section, and   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. ), the title to be preloaded into the title box of the edit form.
 * tooltip: the text to display when you hover over the link.

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

TemplateData
{	"params": { "1": {			"label": "Page", "description": "The page to edit", "example": "Example", "type": "wiki-page-name", "default": "The current page", "suggested": true },		"2": {			"label": "Label", "description": "The link label", "example": "Edit this page", "type": "string", "default": "Edit" },		"section": { "label": "Section", "description": "The section to edit; 0 for the top section; new for a new section", "example": "0", "type": "string", "default": "None (whole page gets edited)" },		"editintro": { "label": "Edit Intro", "description": "Content that will be rendered above the edit box", "example": "Template:Disambig editintro" },		"preload": { "label": "Preload", "description": "Content to preload in the edit form when creating a new page or section" },		"preloadtitle": { "label": "Preload title", "description": "If making a new section, preload text into the title box" },               "tooltip": { "label": "Tooltip", "description": "Text to display on mouseover", "default": "Page or section name", "type": "string" }	},	"description": "Displays a link to edit a page.", "paramOrder": [ "1",		"2",		"section", "editintro", "preload", "preloadtitle", "tooltip" ] }