Difference between revisions of "MediaWiki:Common.js"

From SacredWiki
Jump to navigation Jump to search
Line 5: Line 5:
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/S1internallink.jpg",
 
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/S1internallink.jpg",
     "speedTip": "Make an Underworld internal Link",
+
     "speedTip": "Make a Sacred Underworld internal Link",
 
     "tagOpen": "[[Sacred:",
 
     "tagOpen": "[[Sacred:",
 
     "tagClose": "]]",
 
     "tagClose": "]]",
Line 15: Line 15:
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/S2internallink.jpg",
 
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/S2internallink.jpg",
     "speedTip": "Make an Underworld internal Link",
+
     "speedTip": "Make a Sacred 2:Fallen Angel internal Link",
 
     "tagOpen": "[[Sacred2:",
 
     "tagOpen": "[[Sacred2:",
 
     "tagClose": "]]",
 
     "tagClose": "]]",
 
     "sampleText": "Insert comment here"}
 
     "sampleText": "Insert comment here"}
 
   }
 
   }

Revision as of 19:41, 11 July 2008

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

if (mwCustomEditButtons) {
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/S1internallink.jpg",
     "speedTip": "Make a Sacred Underworld internal Link",
     "tagOpen": "[[Sacred:",
     "tagClose": "]]",
     "sampleText": "Insert comment here"}
  };

if (mwCustomEditButtons) {
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/S2internallink.jpg",
     "speedTip": "Make a Sacred 2:Fallen Angel internal Link",
     "tagOpen": "[[Sacred2:",
     "tagClose": "]]",
     "sampleText": "Insert comment here"}
  }