Difference between revisions of "MediaWiki:Common.js"

From SacredWiki
Jump to navigation Jump to search
Line 3: Line 3:
  
 
  if (mwCustomEditButtons) {
 
  if (mwCustomEditButtons) {
 +
  mwCustomEditButtons[mwCustomEditButtons.length] = {
 +
    "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/align_center.png",
 +
    "speedTip": "Will center highlighted text.",
 +
    "tagOpen": "<center>",
 +
    "tagClose": "</center>",
 +
    "sampleText": ""};
 
   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",
Line 9: Line 15:
 
     "tagClose": "|Type here what you want the link to be read as]]",
 
     "tagClose": "|Type here what you want the link to be read as]]",
 
     "sampleText": "Page Name you are linking to"};
 
     "sampleText": "Page Name you are linking to"};
 
 
   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",
Line 16: Line 21:
 
     "tagClose": "]]",
 
     "tagClose": "]]",
 
     "sampleText": "Type here what you want the link to be read as..."};
 
     "sampleText": "Type here what you want the link to be read as..."};
 
 
   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",
Line 34: Line 38:
 
     "tagOpen": "{{subst:Place",
 
     "tagOpen": "{{subst:Place",
 
     "tagClose": "}}",
 
     "tagClose": "}}",
    "sampleText": ""};
 
  mwCustomEditButtons[mwCustomEditButtons.length] = {
 
    "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/align_center.png",
 
    "speedTip": "Will center highlighted text.",
 
    "tagOpen": "<center>",
 
    "tagClose": "</center>",
 
 
     "sampleText": ""};
 
     "sampleText": ""};
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {

Revision as of 17:25, 7 July 2010

/* 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/align_center.png",
     "speedTip": "Will center highlighted text.",
     "tagOpen": "<center>",
     "tagClose": "</center>",
     "sampleText": ""};
   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": "Quest Template.  Push the preview to see results.",
     "tagOpen": "{{subst:Quest",
     "tagClose": "}}",
     "sampleText": ""};
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/chainquest.jpg",
     "speedTip": "ChainQuest Template.  Push the preview to see results.",
     "tagOpen": "{{subst:ChainQuest",
     "tagClose": "}}",
     "sampleText": ""};
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/place.jpg",
     "speedTip": "Place Template.  Push the preview to see results.",
     "tagOpen": "{{subst:Place",
     "tagClose": "}}",
     "sampleText": ""};
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/npc.jpg",
     "speedTip": "NPC Template.  Push the preview to see results.",
     "tagOpen": "{{subst:NPC",
     "tagClose": "}}",
     "sampleText": ""};
  }