Template:Edit: Difference between revisions
m (1 revision imported) |
m (1 revision imported from wikipedia:Template:Edit) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<span class="noprint plainlinks">[{{fullurl:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|action=edit{{#if:{{{section|}}}|§ion={{{section}}}}}{{#if:{{{editintro|}}}|&editintro={{urlencode:{{{editintro}}}|wiki}}}}{{#if:{{{preload|}}}|&preload={{urlencode:{{{preload}}}|wiki}}}}{{#if:{{{preloadtitle|}}}|&preloadtitle={{urlencode:{{{preloadtitle}}}}}}}}} {{{2|edit}}}]</span><noinclude> | <span class="noprint plainlinks" title="{{#if:{{{tooltip|}}}|{{{tooltip}}}|Edit {{{1}}}}}">[{{fullurl:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}|action=edit{{#if:{{{section|}}}|§ion={{{section}}}}}{{#if:{{{editintro|}}}|&editintro={{urlencode:{{{editintro}}}|wiki}}}}{{#if:{{{preload|}}}|&preload={{urlencode:{{{preload}}}|wiki}}}}{{#if:{{{preloadtitle|}}}|&preloadtitle={{urlencode:{{{preloadtitle}}}}}}}}} {{{2|edit}}}]</span><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 12:31, 29 March 2020
Provides a link to edit a page. This template is a self-reference and so is part of the Wikipedia project rather than the encyclopedic content.
Usage
{{Edit|Page|Label|section=Section|editintro=Editintro|preload=preload|preloadtitle=Preloadtitle}}
All parameters are optional
- Page: the page to edit, if not the current page
- Label: the text to label the link, defaults to "edit"
- Section: the section to edit, 0 for top section, "new" to add a new section
- Editintro: Title of a page that will be transcluded above the edit box. Not a wikilink, templates require
Template:
- Preload: Title of a page to preload into the edit form if the page to be edited does not exist
- Preloadtitle: if section=new, a title to be preloaded into the title box of the edit form
TemplateData for Edit
<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": "Title of a page that will be rendered above the edit box, no wikilinks, with namespace if not main", "example": "Template:Disambig editintro" }, "preload": { "label": "Preload", "description": "Title of a page to preload in the edit form when creating a new page or section" }, "preloadtitle": { "label": "Preload title", "description": "If making a new section, preload the title box with this" } }, "description": "Displays a link to edit a page.", "paramOrder": [ "1", "2", "section", "editintro", "preload", "preloadtitle" ] } </templatedata>
See also
- {{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
- {{Navbar}} – with additional links
- {{Vedit}} – edit with the Visual Editor
The above documentation is transcluded from Template:Edit/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |