Gebruiker:Jos1950/personal: verschil tussen versies

Uit LinuxMintNL WiKi
Ga naar: navigatie, zoeken
(Nieuw toolbar)
 
(leeg)
 
Regel 1: Regel 1:
/**
+
 
* Extra buttons in toolbar
 
* @stats [[File:Krinkle_InsertWikiEditorButton.js]]
 
*/
 
// <nowiki>
 
$.getScript('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/InsertWikiEditorButton.js&action=raw&ctype=text/javascript', function () {
 
// Welcome
 
krInsertWikiEditorButton({
 
id: 'welcome',
 
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/2/23/Nuvola_apps_edu_languages.svg/22px-Nuvola_apps_edu_languages.svg.png',
 
label: 'Welcome',
 
insertBefore: '{{Welcome}}~~~~',
 
insertAfter: '',
 
sampleText: '',
 
autoSummary: { summary: '/* Welcome to Wikimedia Commons ! */ new section', position: 'replace' }
 
});
 
// Welcome + Sandbox
 
krInsertWikiEditorButton({
 
id: 'welcometest1',
 
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/b4/Gtk-dialog-info.svg/22px-Gtk-dialog-info.svg.png',
 
label: 'Welcome + Sandbox',
 
insertBefore: '{{Welcome}}\n{{subst:test|',
 
insertAfter: '}}~~~~',
 
sampleText: '',
 
autoSummary: { summary: '/* Please experiment in the sandbox */ new section', position: 'replace' }
 
});
 
// Test2
 
krInsertWikiEditorButton({
 
id: 'test2',
 
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/f/f7/Nuvola_apps_important.svg/22px-Nuvola_apps_important.svg.png',
 
label: 'Test2',
 
insertBefore: '{{subst:test2|',
 
insertAfter: '}}~~~~',
 
sampleText: '',
 
autoSummary: { summary: '/* Vandalism is not appreciated */ new section', position: 'replace' }
 
});
 
// Test3
 
krInsertWikiEditorButton({
 
id: 'test3',
 
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Stop_hand_nuvola.svg/22px-Stop_hand_nuvola.svg.png',
 
label: 'Test3',
 
insertBefore: '{{subst:test3|',
 
insertAfter: '}}~~~~',
 
sampleText: '',
 
autoSummary: { summary: '/* Warning for repeated vandalism */ new section', position: 'replace' }
 
});
 
// Hi BASEPAGENAME
 
krInsertWikiEditorButton({
 
id: 'mw-customeditbutton-hibasepagename',
 
icon: '//upload.wikimedia.org/wikipedia/commons/f/f8/Waving.png',
 
label: 'Hi BASEPAGENAME',
 
insertBefore: 'Hi {{subst:BASEPAGENAME}},\n',
 
insertAfter: '',
 
sampleText: ''
 
});
 
// Happy face
 
krInsertWikiEditorButton({
 
id: 'mw-customeditbutton-myspecialbutton',
 
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Gnome-face-smile.svg/22px-Gnome-face-smile.svg.png',
 
label: 'Insert happy face',
 
insertBefore: '[[File:Gnome-face-smile.svg|21px|',
 
insertAfter: ']]',
 
sampleText: 'Happy face'
 
});
 
});
 

Huidige versie van 14 jan 2015 om 18:02