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) |
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== |