Difference between revisions of "MediaWiki:Common.js"
From BroaDWcast
Jump to navigationJump to searchJohn Lavalie (talk | contribs) (Undo revision 1957 by John Lavalie (talk)) |
John Lavalie (talk | contribs) |
||
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": | + | "sampleText": {{PAGENAME}} // the sample text to place inside the block |
}; | }; | ||
mwCustomEditButtons.push(button); | mwCustomEditButtons.push(button); |
Revision as of 02:27, 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": {{PAGENAME}} // the sample text to place inside the block }; mwCustomEditButtons.push(button);