Difference between revisions of "MediaWiki:Common.js"

From BroaDWcast
Jump to navigationJump to search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: var button = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png", // i...")
 
Line 6: Line 6:
 
"tagOpen": "#REDIRECT [[", // the text to use to mark the beginning of the block
 
"tagOpen": "#REDIRECT [[", // the text to use to mark the beginning of the block
 
"tagClose": "]]",      // the text to use to mark the end of the block (if any)
 
"tagClose": "]]",      // the text to use to mark the end of the block (if any)
"sampleText": ""  // the sample text to place inside the block
+
"sampleText": "{{PAGETITLE}}"  // the sample text to place inside the block
 
};
 
};
 
mwCustomEditButtons.push(button);
 
mwCustomEditButtons.push(button);

Revision as of 02:10, 29 December 2010

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

var button = {
	"imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png", // image to be shown on the button (may be a full URL too), 22x22 pixels
	"speedTip": "redirect", // text shown in a tooltip when hovering the mouse over the button
	"tagOpen": "#REDIRECT [[", // the text to use to mark the beginning of the block
	"tagClose": "]]",      // the text to use to mark the end of the block (if any)
	"sampleText": "{{PAGETITLE}}"  // the sample text to place inside the block
};
mwCustomEditButtons.push(button);