User:Ricordisamoa/emoticons/Oxygen.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* <nowiki>
* Set of smilies from the Oxygen 4.8.0 set
* [[commons:Category:Oxygen 4.8.0 - Emotes]]
*/
$(function(){
if($('#wpTextbox1').length==0) return;
$('#wpTextbox1').wikiEditor('addToToolbar',{
'section': 'emoticons',
'groups': {
'smilies-Oxygen': {
'label': 'Oxygen'
}
}
});
var emotigroup={
'section': 'emoticons',
'group': 'smilies-Oxygen',
'tools': {}
},
prefix='Oxygen480-emotes-face-';
$.each(['angel','embarrassed','kiss','laugh','plain','raspberry','sad','smile-big','smile','surprise','uncertain','wink'],function(i,emoticon){
emotigroup.tools[$.ucFirst(emoticon)]={
label: $.ucFirst(emoticon),
type: 'button',
icon: '//commons.wikimedia.org/wiki/Special:Filepath/'+mw.util.wikiUrlencode(prefix+emoticon+'.svg'),
action: {
type: 'encapsulate',
options: {
pre: '[[File:'+prefix+emoticon+'.svg|20px]]',
post: ''
}
}
};
} );
$('#wpTextbox1').wikiEditor('addToToolbar',emotigroup);
});
/* </nowiki> */