Template:Edit/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
m Sync with current template doc preload @ Template:Documentation/preload |
Enterprisey (talk | contribs) 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
This is a documentation subpage for Template:Edit. It may contain usage information, categories and other content that is not part of the original template page. |
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page | 1 | The page to edit
| Page name | required |
Label | 2 | The link label
| String | optional |
Section | section | The section to edit; 0 for the top section.
| String | optional |
editintro | editintro | no description | Unknown | optional |
preload | preload | no description | Unknown | optional |
preloadtitle | preloadtitle | no description | Unknown | optional |
See also
[
] 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