Template:Edit/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
add tooltip documentation
(rm cat: not a cleanup template)
(add tooltip documentation)
Line 5:
 
==Usage==
<code><nowiki>{{</nowiki>'''Edit'''|''Page''|''Label''|section=''Section''|editintro=''Editintro''|preload=''preload''|preloadtitle=''Preloadtitle''|tooltip=''tooltip''<nowiki>}}</nowiki></code>
 
All parameters are optional
Line 14:
*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
*Tooltip: the text to display when user hovers over the link
 
{{TemplateDataHeader}}
Line 53 ⟶ 54:
"label": "Preload title",
"description": "If making a new section, preload the title box with this"
},
"tooltip": {
"label": "Tooltip",
"description": "Text to display on mouseover",
"default": "Page or section name",
"type": "string"
}
},
"description": "Displays a link to edit a page.",
Line 62 ⟶ 69:
"editintro",
"preload",
"preloadtitle",
"tooltip"
]
}
0

edits

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

Navigation menu