Template:Edit/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
rm cat: not a cleanup template |
add tooltip documentation |
||
Line 5: | Line 5: | ||
==Usage== |
==Usage== |
||
<code><nowiki>{{</nowiki>'''Edit'''|''Page''|''Label''|section=''Section''|editintro=''Editintro''|preload=''preload''|preloadtitle=''Preloadtitle''<nowiki>}}</nowiki></code> |
<code><nowiki>{{</nowiki>'''Edit'''|''Page''|''Label''|section=''Section''|editintro=''Editintro''|preload=''preload''|preloadtitle=''Preloadtitle''|tooltip=''tooltip''<nowiki>}}</nowiki></code> |
||
All parameters are optional |
All parameters are optional |
||
Line 14: | Line 14: | ||
*Preload: Title of a page to preload into the edit form if the page to be edited does not exist |
*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 |
*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}} |
{{TemplateDataHeader}} |
||
Line 53: | Line 54: | ||
"label": "Preload title", |
"label": "Preload title", |
||
"description": "If making a new section, preload the title box with this" |
"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.", |
"description": "Displays a link to edit a page.", |
||
Line 62: | Line 69: | ||
"editintro", |
"editintro", |
||
"preload", |
"preload", |
||
"preloadtitle" |
"preloadtitle", |
||
"tooltip" |
|||
] |
] |
||
} |
} |