Template:Edit/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
m (Sync with current template doc preload @ Template:Documentation/preload)
(templatedata)
Line 4: Line 4:
This [[Wikipedia:Template messages|template]] is a [[Wikipedia:Manual of Style/Self-references to avoid|self-reference]] and so is part of the Wikipedia project rather than the encyclopedic content.
This [[Wikipedia:Template messages|template]] is a [[Wikipedia:Manual of Style/Self-references to avoid|self-reference]] and so is part of the Wikipedia project rather than the encyclopedic content.


{{TemplateDataHeader}}
Parameters:
<templatedata>
{
"params": {
"1": {
"label": "Page",
"description": "The page to edit",
"example": "Example",
"type": "wiki-page-name",
"default": "The current page",
"required": 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.",
"example": "0",
"type": "string",
"default": "None (whole page gets edited)"
},
"editintro": {},
"preload": {},
"preloadtitle": {}
},
"description": "Displays a link to edit a page.",
"paramOrder": [
"1",
"2",
"section",
"editintro",
"preload",
"preloadtitle"
]
}
</templatedata>


:{{para|1|Page to edit. }} Leave blank to edit current page.
:{{para|2|Text to display.}} Default: "edit"
:{{para|section|Section to edit.}} e.g. <code>0</code> to edit intro only. Default: none (edit whole page)


==See also==
==See also==

Revision as of 18:28, May 8, 2015

Usage

This template is a self-reference and so is part of the Wikipedia project rather than the encyclopedic content.

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