Difference between revisions of "MediaWiki:Common.js"
From Documentation
Tmillsclare (talk | contribs) m |
Tmillsclare (talk | contribs) m |
||
Line 7: | Line 7: | ||
'Reference caption', | 'Reference caption', | ||
'mw-editbutton-ref'); | 'mw-editbutton-ref'); | ||
+ | |||
+ | if (mwCustomEditButtons) { | ||
+ | |||
+ | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
+ | "imageFile": "/_w/images/7/79/Button_reflink.png", | ||
+ | "speedTip": "Reference", | ||
+ | "tagOpen": "<ref> ", | ||
+ | "tagClose": " </ref>", | ||
+ | "sampleText": ""} | ||
+ | } | ||
+ | |||
+ | } |
Revision as of 10:03, 21 June 2010
/* Any JavaScript here will be loaded for all users on every page load. */
addCustomButton('/_w/images/7/79/Button_reflink.png',
'Reference',
'<ref>',
'</ref>',
'Reference caption',
'mw-editbutton-ref');
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "/_w/images/7/79/Button_reflink.png",
"speedTip": "Reference",
"tagOpen": "<ref> ",
"tagClose": " </ref>",
"sampleText": ""}
}
}