Template:Edit
- Acèh
- Alemannisch
- العربية
- ܐܪܡܝܐ
- Arpetan
- অসমীয়া
- Asturianu
- Azərbaycanca
- تۆرکجه
- Basa Bali
- বাংলা
- Banjar
- 閩南語 / Bân-lâm-gú
- Basa Banyumasan
- Башҡортса
- Беларуская (тарашкевіца)
- भोजपुरी
- Bosanski
- Brezhoneg
- Буряад
- Català
- Čeština
- Dansk
- Deutsch
- Español
- Euskara
- فارسی
- Føroyskt
- Français
- Gaelg
- Gàidhlig
- Galego
- ГӀалгӀай
- ગુજરાતી
- Gungbe
- 客家語 / Hak-kâ-ngî
- Ilokano
- Bahasa Indonesia
- Interlingua
- Italiano
- Jawa
- ಕನ್ನಡ
- Қазақша
- Ikirundi
- Kurdî
- Кыргызча
- Ladino
- ລາວ
- Latina
- Magyar
- Македонски
- മലയാളം
- Māori
- مصرى
- ဘာသာမန်
- Bahasa Melayu
- Minangkabau
- 閩東語 / Mìng-dĕ̤ng-ngṳ̄
- Мокшень
- မြန်မာဘာသာ
- Nāhuatl
- Nederlands
- नेपाली
- 日本語
- Norsk bokmål
- Occitan
- ଓଡ଼ିଆ
- Oʻzbekcha / ўзбекча
- ਪੰਜਾਬੀ
- پښتو
- Plattdüütsch
- Polski
- Русский
- Sakizaya
- संस्कृतम्
- Scots
- Shqip
- Simple English
- سنڌي
- Slovenčina
- Slovenščina
- کوردی
- Српски / srpski
- Srpskohrvatski / српскохрватски
- Sunda
- Suomi
- Tagalog
- தமிழ்
- Taqbaylit
- တႆး
- తెలుగు
- ไทย
- ትግርኛ
- Тоҷикӣ
- Удмурт
- Українська
- اردو
- Vèneto
- Tiếng Việt
- 文言
- 吴语
- ייִדיש
- 粵語
- Zazaki
- 中文
Appearance
From Wikipedia, the free encyclopedia
Warning This template is used on approximately 659,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.
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.
It provides a clickable link to edit a page, or a section of the page.
Usage
{{Edit |1= |2= |section= |editintro= |preload= |preloadtitle= |tooltip= }}
- 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, andnew
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.
Notes:
- All parameters are optional.
- The parameter names must be in lowercase or they will fail.
Examples
Code | Output | Notes |
---|---|---|
{{edit}} | edit | Edit current page |
{{edit| |edit template doc}} | edit template doc | |
{{edit|1=Infobox foo|2=E}} | E | |
{{edit|2=edit template doc}} | edit template doc | |
{{edit|friendship}} | edit | Edit the article friendship |
{{edit|friendship|section=3}} | edit | 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}} | edit | Load {{Disambig editintro }} when you edit |
{{edit|Template:Some new template|preload=Template:Documentation/preload}} | edit | 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}} | [1] | Create a new section of a custom title |
{{edit|2=link with tooltip|tooltip=This is a tooltip}} | edit | Hover over the link to see the tooltip |
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Edit in articles based on its TemplateData.
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 |
Comparison
- {{Ed }} — plain-style edit link surrounded by <small> tags, specifically for templates only
- {{Ed right }} — plain-style edit link surrounded by <small> tags and aligned to right of page, specifically for templates only
- {{Edit }} — plain-style edit link, applicable to all Wikipedia namespaces
- {{Edit section }} — edit link surrounded by <div> tags by default which can specify which section to edit on a page, applicable to all Wikipedia namespaces
- {{Vedit }} — plain-style edit link which edit with the Wikipedia:VisualEditor, applicable to all Wikipedia namespaces
Templates with view, talk and edit links:
- {{Navbar }} — navigation bar with configurable caption and view·talk·edit links, specifically for templates only
- {{View }} — navbar-style view·talk·edit links, specifically for templates only
- {{VTE }} & {{V }} — navbar-style V·T·E links (i.e. view·talk·edit links in short forms), specifically for templates only
See also
- {{Navbox }}
The above documentation is transcluded from Template:Edit/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.