Atšķirības starp "MediaWiki:Common.js" versijām
No ''Vēsture''
(Jauna lapa: →Any JavaScript here will be loaded for all users on every page load.: if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://ww...) |
|||
(4 starpversijas, ko mainījis viens dalībnieks, nav parādītas) | |||
1. rindiņa: | 1. rindiņa: | ||
/* 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 ( | + | if (mw.toolbar) { |
− | + | mw.toolbar.addButton({ | |
− | "imageFile": "http://www.vesture.eu/ | + | "imageFile": "http://www.vesture.eu/extensions/WikiEditor/modules/images/toolbar/insert-redirect.png", |
"speedTip": "Redirect", | "speedTip": "Redirect", | ||
"tagOpen": "#REDIRECT [[", | "tagOpen": "#REDIRECT [[", | ||
"tagClose": "]]", | "tagClose": "]]", | ||
− | "sampleText": "Raksts, uz kuru pāradresē"}; | + | "sampleText": "Raksts, uz kuru pāradresē"}); |
} | } |
Pašreizējā versija, 2017. gada 2. augusts, plkst. 16.17
/* Any JavaScript here will be loaded for all users on every page load. */ if (mw.toolbar) { mw.toolbar.addButton({ "imageFile": "http://www.vesture.eu/extensions/WikiEditor/modules/images/toolbar/insert-redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT [[", "tagClose": "]]", "sampleText": "Raksts, uz kuru pāradresē"}); }