Template:Edit/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Edit. It contains usage information, categories and other content that is not part of the original template page. |
Provides a link to edit a page. This template is a self-reference and so is part of the PBC project rather than the encyclopedic content.
Usage[edit source]
{{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
Displays a link to edit a page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page | 1 | The page to edit
| Page name | suggested |
Label | 2 | The link label
| String | optional |
Section | section | The section to edit; 0 for the top section; new for a new section
| String | optional |
Edit Intro | editintro | Title of a page that will be rendered above the edit box, no wikilinks, with namespace if not main
| Unknown | optional |
Preload | preload | Title of a page to preload in the edit form when creating a new page or section | Unknown | optional |
Preload title | preloadtitle | If making a new section, preload the title box with this | Unknown | optional |
See also[edit source]