Template:Edit/doc

From the Croc Wiki, the Croc encyclopedia
Revision as of 14:08, May 16, 2016 by wikipedia>Crh23 (Add proper documentation)
Jump to navigationJump to search

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
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Edit

Displays a link to edit a page.

Template parameters

ParameterDescriptionTypeStatus
Page1

The page to edit

Default
The current page
Example
Example
Page namerequired
Label2

The link label

Default
Edit
Example
Edit this page
Stringoptional
Sectionsection

The section to edit; 0 for the top section.

Default
None (whole page gets edited)
Example
0
Stringoptional
editintroeditintro

no description

Unknownoptional
preloadpreload

no description

Unknownoptional
preloadtitlepreloadtitle

no description

Unknownoptional


See also

[

This box: view • talk • edit

] Compare different edit templates:
  • {{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