Difference between revisions of "MediaWiki:Common.js"

From Documentation
m
m
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* 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) {
 
  if (mwCustomEditButtons) {

Revision as of 10:03, 21 June 2010

/* Any JavaScript here will be loaded for all users on every page load. */

 if (mwCustomEditButtons) {
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "/_w/images/7/79/Button_reflink.png",
     "speedTip": "Reference",
     "tagOpen": "<ref> ",
     "tagClose": " </ref>",
     "sampleText": ""}
  }

}