Bruker:Kanonkas/CustomEditButtons.js
Merk: Etter publisering vil det kanskje være nødvendig å slette mellomlageret i nettleseren din for å se endringene.
- Firefox / Safari: Hold Shift mens du klikker på Oppdater, eller trykk enten Ctrl+F5 eller Ctrl+R (⌘+R på Mac)
- Google Chrome: Trykk Ctrl+Shift+R (⌘+Shift+R på Mac)
- Internet Explorer / Edge: Hold Ctrl mens du trykker på Oppdater eller trykk Ctrl+F5
- Opera: Ttrykk Ctrl+F5.
/* Velkommen ureg */
var button = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png", //image to be shown on the button (may be a full URL too), 22x22 pixels
"speedTip": "ureg", //text shown in a tooltip when hovering the mouse over the button
"tagOpen": "{{", //the text to use to mark the beginning of the block
"tagClose": "}} \n~" + "~" + "~" + "~\n", //the text to use to mark the end of the block (if any)
"sampleText": "subst:Ureg-velkommen" //the sample text to place inside the block
};
mwCustomEditButtons.push(button);
/* Vandalisme */
var button = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Emblem-important.svg/22px-Emblem-important.svg.png", //image to be shown on the button (may be a full URL too), 22x22 pixels
"speedTip": "Subst:Vandalisme", //text shown in a tooltip when hovering the mouse over the button
"tagOpen": "{{", //the text to use to mark the beginning of the block
"tagClose": "}} \n~" + "~" + "~" + "~\n", //the text to use to mark the end of the block (if any)
"sampleText": "subst:vandalisme" //the sample text to place inside the block
};
mwCustomEditButtons.push(button);
/* Test */
var button = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/97/Emblem-important-yellow.svg", //image to be shown on the button 22x22px
"speedTip": "Subst:Test",//text shown in a tooltip when hovering the mouse over the button
"tagOpen": "{{",//the text to use to mark the beginning of the block
"tagClose": "}} \n~" + "~" + "~" + "~\n",//the text to use to mark the end of the block(if any)
"sampleText": "subst:test" //the sample text to place inside the block
};
mwCustomEditButtons.push(button);