Difference between revisions of "MediaWiki:Common.js"

From SacredWiki
Jump to navigation Jump to search
m
m
Line 19: Line 19:
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/questbutton.jpg",
 
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/questbutton.jpg",
     "speedTip": "Adds the quest template to page",
+
     "speedTip": "Adds the Quest Template to page",
 
     "tagOpen": "{{subst:Quest",
 
     "tagOpen": "{{subst:Quest",
 
     "tagClose": "}}",
 
     "tagClose": "}}",
Line 25: Line 25:
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/place.jpg",
 
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/place.jpg",
     "speedTip": "Adds the quest template to page",
+
     "speedTip": "Adds the Place Template to page",
 
     "tagOpen": "{{subst:Place",
 
     "tagOpen": "{{subst:Place",
 
     "tagClose": "}}",
 
     "tagClose": "}}",
Line 31: Line 31:
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/npc.jpg",
 
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/npc.jpg",
     "speedTip": "Adds the quest template to page",
+
     "speedTip": "Adds the NPC Template to page",
 
     "tagOpen": "{{subst:NPC",
 
     "tagOpen": "{{subst:NPC",
 
     "tagClose": "}}",
 
     "tagClose": "}}",
 
     "sampleText": ""};
 
     "sampleText": ""};
 
   }
 
   }

Revision as of 16:15, 29 June 2009

/* 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": "|Type here what you want the link to be read as]]",
     "sampleText": "Page Name you are linking to"};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/S2internallink.jpg",
     "speedTip": "Make a Sacred 2:Fallen Angel Internal Link",
     "tagOpen": "[[Sacred 2:WikiPageName|",
     "tagClose": "]]",
     "sampleText": "Type here what you want the link to be read as..."};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/questbutton.jpg",
     "speedTip": "Adds the Quest Template to page",
     "tagOpen": "{{subst:Quest",
     "tagClose": "}}",
     "sampleText": ""};
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/place.jpg",
     "speedTip": "Adds the Place Template to page",
     "tagOpen": "{{subst:Place",
     "tagClose": "}}",
     "sampleText": ""};
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/npc.jpg",
     "speedTip": "Adds the NPC Template to page",
     "tagOpen": "{{subst:NPC",
     "tagClose": "}}",
     "sampleText": ""};
  }