Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | + | ||
if (mwCustomEditButtons) { | if (mwCustomEditButtons) { | ||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
− | "imageFile": "http:// | + | "imageFile": "http://images.wikia.com/central/images/1/13/Button_enter.png", |
− | "speedTip": " | + | "speedTip": "Line break", |
− | "tagOpen": " | + | "tagOpen": "<br />", |
− | + | "tagClose": "", | |
− | + | "sampleText": ""}; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | "tagClose": " | ||
− | "sampleText": " | ||
− | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | mwCustomEditButtons[mwCustomEditButtons.length] = { | ||
"imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/Indent.jpg", | "imageFile": "http://www.darkmatters.org/SacredWiki/images/buttons/Indent.jpg", | ||
Line 21: | Line 13: | ||
"tagOpen": "<span style="indent:3em;">", | "tagOpen": "<span style="indent:3em;">", | ||
"tagClose": "</span>", | "tagClose": "</span>", | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
"sampleText": ""} | "sampleText": ""} | ||
} | } | ||
− |
Revision as of 17:30, 17 October 2008
/* Any JavaScript here will be loaded for all users on every page load. */ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/1/13/Button_enter.png", "speedTip": "Line break", "tagOpen": "<br />", "tagClose": "", "sampleText": ""}; 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": ""} }