Template:Edit/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
templatedata
m (Sync with current template doc preload @ Template:Documentation/preload)
(templatedata)
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.
 
{{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==
0

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu