Teamplaid:Edit/documentation

O Wiktionary
Jump to navigation Jump to search

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


Paramadairean - Parameters[deasaich]

{{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, 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.

Notes:

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

Eisimpleirean - Examples[deasaich]

Code Output Notes
{{Edit}} edit Edit current page
{{Edit| |edit template doc}} edit template doc
{{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 1.2 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

Teamplaid-dàta - TemplateData[deasaich]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Edit

Displays a link to edit a page.

Paramadairean na teamplaide

ParamadairTuairisgeulSeòrsaStaid
Page1

The page to edit

Bun-roghainn
The current page
Ball-eisimpleir
Example
Duilleagmolta
Label2

The link label

Bun-roghainn
Edit
Ball-eisimpleir
Edit this page
Sreangroghainneil
Sectionsection

The section to edit; 0 for the top section; new for a new section

Bun-roghainn
None (whole page gets edited)
Ball-eisimpleir
0
Sreangroghainneil
Edit Introeditintro

Content that will be rendered above the edit box

Ball-eisimpleir
Template:Disambig editintro
Chan eil fhiosroghainneil
Preloadpreload

Content to preload in the edit form when creating a new page or section

Chan eil fhiosroghainneil
Preload titlepreloadtitle

If making a new section, preload text into the title box

Chan eil fhiosroghainneil
Tooltiptooltip

Text to display on mouseover

Bun-roghainn
Page or section name
Sreangroghainneil

Coimeas - Comparison[deasaich]

Teamplaid:Edit templates

Faic cuideachd - Also see