Template:Edit/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
Add proper documentation |
|||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> |
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> |
||
Provides a link to edit a page. |
|||
⚫ | |||
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. |
||
⚫ | |||
<code><nowiki>{{</nowiki>'''Edit'''|''Page''|''Label''|section=''Section''|editintro=''Editintro''|preload=''preload''|preloadtitle=''Preloadtitle''<nowiki>}}</nowiki></code> |
|||
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 <code>Template:</code> |
|||
*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 |
|||
{{TemplateDataHeader}} |
{{TemplateDataHeader}} |