Difference between revisions of "MediaWiki:Common.js"

From SacredWiki
Jump to navigation Jump to search
Line 2: Line 2:
  
 
if (mwCustomEditButtons) {
 
if (mwCustomEditButtons) {
 
 
   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 8: Line 7:
 
     "tagOpen": "[[Sacred:",
 
     "tagOpen": "[[Sacred:",
 
     "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"};
  };
 
 
 
if (mwCustomEditButtons) {
 
 
   
 
   
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
Line 18: Line 14:
 
     "tagOpen": "[[Sacred 2:WikiPageName|",
 
     "tagOpen": "[[Sacred 2:WikiPageName|",
 
     "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] = {
 +
    "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/Indent.jpg",
 +
    "speedTip": "Indent a paragraph",
 +
    "tagOpen": "<span style="indent:3em;">",
 +
    "tagClose": "</span>",
 +
    "sampleText": ""};
 +
 
 +
  mwCustomEditButtons[mwCustomEditButtons.length] = {
 +
    "imageFile": "http://images.wikia.com/central/images/1/13/Button_enter.png",
 +
    "speedTip": "Line break",
 +
    "tagOpen": "<br />",
 +
    "tagClose": "",
 +
    "sampleText": ""}
 
   }
 
   }

Revision as of 17:24, 17 October 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": "|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/Indent.jpg",
     "speedTip": "Indent a paragraph",
     "tagOpen": "<span style="indent:3em;">",
     "tagClose": "</span>",
     "sampleText": ""};

   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://images.wikia.com/central/images/1/13/Button_enter.png",
     "speedTip": "Line break",
     "tagOpen": "<br />",
     "tagClose": "",
     "sampleText": ""}
  }