User:Micki/extratoolbarbuttons.js: Difference between revisions
Content deleted Content added
No edit summary |
Maintenance: mw:RL/MGU - Updated deprecated module name |
||
(18 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
/*<nowiki><pre>*/ |
/*<nowiki><pre>*/ |
||
var customizeToolbar = function () { |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
//EXTRA TOOLBAR BUTTONS |
|||
$j(document).ready( function() { |
|||
$('#wpTextbox1').wikiEditor('addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'format', |
|||
'tools': { |
|||
'Blockquote': { |
|||
label: 'Navodnici', |
|||
type: 'button', |
|||
} |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/2/2f/Toolbaricon_quote_1.png', |
|||
} |
|||
action: { |
|||
} ); |
|||
type: 'encapsulate', |
|||
} ); |
|||
options: { |
|||
pre: "„", |
|||
post: "“" |
|||
} |
|||
} |
|||
}, |
|||
'Strikethrough': { |
|||
label: 'Precrtan tekst', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/45/Gnome-format-text-strikethrough.svg/25px-Gnome-format-text-strikethrough.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "<s>", |
|||
post: "</s>" |
|||
} |
|||
} |
|||
}, |
|||
'Template': { |
|||
label: 'Šablon', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/d/dd/Vector_toolbar_template_button.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{", |
|||
post: "}}" |
|||
} |
|||
} |
|||
}, |
|||
'External link': { |
|||
label: 'Spoljašnja veza', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/49/Gnome-go-previous.svg/25px-Gnome-go-previous.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[", |
|||
post: "]" |
|||
} |
|||
} |
|||
}, |
|||
'Internal link': { |
|||
label: 'Unutrašnja veza', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/9/94/Gnome-go-next.svg/25px-Gnome-go-next.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[", |
|||
post: "]]" |
|||
} |
|||
} |
|||
}, |
|||
'Link': { |
|||
label: 'Veza', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/2/27/Gnome-go-last.svg/25px-Gnome-go-last.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[|", |
|||
post: "]]" |
|||
} |
|||
} |
|||
}, |
|||
'Vertical line': { |
|||
label: 'Uspravna crta', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/46/Gnome-go-first.svg/25px-Gnome-go-first.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "|" |
|||
} |
|||
} |
|||
}, |
|||
'Category': { |
|||
label: 'Kategorija', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Gnome-go-bottom.svg/25px-Gnome-go-bottom.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[Category:", |
|||
post: "]]" |
|||
} |
|||
} |
|||
}, |
|||
'Advanced image': { |
|||
label: 'Slika 250px', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Image-x-generic.svg/25px-Image-x-generic.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:", |
|||
post: "|thumb|right|250px|Opis]]" |
|||
} |
|||
} |
|||
}, |
|||
'Smile': { |
|||
label: 'Smeje se', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-smile.svg/25px-Face-smile.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-smile.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'Winking': { |
|||
label: 'Namiguje', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Face-wink.svg/25px-Face-wink.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-wink.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'Done': { |
|||
label: 'Urađeno', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Dialog-apply.svg/25px-Dialog-apply.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{done}} ", |
|||
post: " ~~~~" |
|||
} |
|||
} |
|||
}, |
|||
'Not done': { |
|||
label: 'Nije urađeno', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/75/Gnome-colors-window-close.svg/25px-Gnome-colors-window-close.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{not done}} ", |
|||
post: " ~~~~" |
|||
} |
|||
} |
|||
}, |
|||
'Signature': { |
|||
label: 'Potpis', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/7/79/Insert-signature.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: " ~~~~" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}); |
|||
//EMOTICONS |
|||
$('#wpTextbox1').wikiEditor('addToToolbar', { |
|||
'sections': { |
|||
'emoticons': { |
|||
'type': 'toolbar', |
|||
'label': 'Emoticons' |
|||
} |
|||
} |
|||
}); |
|||
$('#wpTextbox1').wikiEditor('addToToolbar', { |
|||
'section': 'emoticons', |
|||
'groups': { |
|||
'emoticons': { |
|||
'label': 'Emoticons' |
|||
} |
|||
} |
|||
}); |
|||
$('#wpTextbox1').wikiEditor('addToToolbar', { |
|||
'section': 'emoticons', |
|||
'group': 'emoticons', |
|||
'tools': { |
|||
'smile': { |
|||
label: 'Smile', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-smile.svg/25px-Face-smile.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-smile.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'frown': { |
|||
label: 'Frown', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/06/Face-sad.svg/25px-Face-sad.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-sad.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'plain': { |
|||
label: 'Plain', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/df/Face-plain.svg/25px-Face-plain.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-plain.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'wink': { |
|||
label: 'Wink', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Face-wink.svg/25px-Face-wink.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-wink.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'tongue': { |
|||
label: 'Tongue', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/7e/Face-tongue.svg/25px-Face-tongue.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-tongue.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'surprised': { |
|||
label: 'Surprised', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-surprise.svg/25px-Face-surprise.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-surprise.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'confused': { |
|||
label: 'Confused', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Face-confused.svg/25px-Face-confused.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-confused.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'grin': { |
|||
label: 'Grin', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Face-grin.svg/25px-Face-grin.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-grin.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'braces': { |
|||
label: 'Braces grin', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/6e/Face-grin-braces.svg/25px-Face-grin-braces.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-grin-braces.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'crying': { |
|||
label: 'Crying', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Face-crying.svg/25px-Face-crying.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-crying.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'blush': { |
|||
label: 'Blush', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Face-blush.svg/25px-Face-blush.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-blush.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'laughing': { |
|||
label: 'Laughing', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/15/Face-smile-big.svg/25px-Face-smile-big.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-smile-big.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'kiss': { |
|||
label: 'Kiss', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/a/a8/Face-kiss.svg/25px-Face-kiss.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-kiss.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'glasses': { |
|||
label: 'Glasses', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Face-glasses.svg/25px-Face-glasses.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-glasses.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'nerd': { |
|||
label: 'Nerd', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/03/Face-grin_expert.svg/25px-Face-grin_expert.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-grin_expert.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'angel': { |
|||
label: 'Angel', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Face-angel.svg/25px-Face-angel.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-angel.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'devil': { |
|||
label: 'Devil', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/70/Face-devil-grin.svg/25px-Face-devil-grin.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-devil-grin.svg|20px]]" |
|||
} |
|||
} |
|||
}, |
|||
'monkey': { |
|||
label: 'Monkey', |
|||
type: 'button', |
|||
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Face-monkey.svg/25px-Face-monkey.svg.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[File:Face-monkey.svg|20px]]" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
}); |
|||
//REMOVING THINGS |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
|||
'section': 'help' |
|||
}); |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
|||
'section': 'main', |
|||
'group': 'insert', |
|||
'tool': 'file' |
|||
}); |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
|||
'section': 'main', |
|||
'group': 'insert', |
|||
'tool': 'signature' |
|||
}); |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
|||
'section': 'main', |
|||
'group': 'insert', |
|||
'tool': 'signature-ns0' |
|||
}); |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'heading' |
|||
}); |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'format', |
|||
'tool': 'ulist' |
|||
}); |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'format', |
|||
'tool': 'olist' |
|||
}); |
|||
$('#wpTextbox1').wikiEditor('removeFromToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'format', |
|||
'tool': 'indent' |
|||
}); |
|||
}; |
|||
if ($.inArray(mw.config.get('wgAction'), ['edit', 'submit']) !== -1) { |
|||
mw.loader.using('user.options', function () { |
|||
if (mw.user.options.get('usebetatoolbar')) { |
|||
mw.loader.using('ext.wikiEditor', function () { |
|||
$(document).ready(customizeToolbar); |
|||
}); |
|||
} |
|||
}); |
|||
} |
} |
||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Internal link': { |
|||
label: 'Poveznica', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/9/97/Button_int_link.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[", |
|||
post: "]]" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'DEFAULTSORT': { |
|||
label: 'Umetni sliku', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3c/Icons-mini-image_new.gif', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[Slika:|minijatura|desno|250px|", |
|||
post: "]]" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Internal link': { |
|||
label: 'Za', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_conserver.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{Za}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Internal link': { |
|||
label: 'Protiv', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/f/fc/Button_supp.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{Protiv}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Internal link': { |
|||
label: 'Komentar', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/2/2e/Button_pict_comment.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{komentar}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Internal link': { |
|||
label: 'Smajli', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_smiley_face_smile.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[Slika:Face-smile.svg|20px]]", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Internal link': { |
|||
label: 'Smajli', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/f/f5/Button_smiley_face_grin.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[Slika:Face-grin.svg|20px]]", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Internal link': { |
|||
label: 'Smajli', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/b/b0/Button_blocage.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[Slika:Face-sad.svg|20px]]", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Internal link': { |
|||
label: 'Smajli', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "[[Slika:Face-wink.svg|20px]]", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Internal link': { |
|||
label: '<ref>', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "<ref>", |
|||
post: "</ref>" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Link': { |
|||
label: 'Reference footer', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/a/a0/Button_references_alt.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{reflist|2}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Underline': { |
|||
label: 'Noinclude', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/ce/Button_no_include.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "<noinclude>", |
|||
post: "</noinclude>" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Underline': { |
|||
label: 'Includeonly', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/79/Button_include.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "<includeonly>", |
|||
post: "</includeonly>" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Strikethrough': { |
|||
label: 'Dot', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/a/aa/Button_dot1.PNG', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "•", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Strikethrough': { |
|||
label: 'Crta', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "|", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Category': { |
|||
label: 'Wprojekti', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/1/12/Button_find.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{ WProjekti \n|commons = \n|commonshr = \n|commonscat = \n|commonscathr = \n|wikivrste = \n|wikivrstehr = \n|wikizvor = \n|wikizvor_autor = \n|wječnik = \n|wikiknjige = \n|wikicitat = \n}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'DEFAULTSORT': { |
|||
label: 'Premjestiti na Commons', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/6c/Button_commons.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{Premjestiti na Commons}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Smile': { |
|||
label: 'Srediti slike', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/2/22/Button_radio_activite.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{ Srediti slike \n|slika1 = \n|slika2 = \n|slika3 = \n|slika4 = \n|slika5 = \n|slika6 = \n|slika7 = \n|slika8 = \n|slika9 = \n|datum = {{subst:#time: d. xg Y.|+1hours+14days}} \n|potpis = --~~~~ \n}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Advanced image': { |
|||
label: 'Slika za brisanje', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/79/Button_bombe.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{subst:SBris}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Winking': { |
|||
label: 'Neodgovarajući sadržaj', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/2/2e/Button_broom.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{subst:NSBris}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Signature': { |
|||
label: 'Bris', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/5/50/Button_tidyman.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{bris|", |
|||
post: "}}" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Smile': { |
|||
label: 'Copyright?', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/72/Button_copy_vio_plagio.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{subst:CBris|", |
|||
post: "}}" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'DEFAULTSORT': { |
|||
label: 'Nedostaje izvor', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1a/Button_fact.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{Nedostaje izvor}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'DEFAULTSORT': { |
|||
label: 'Nepotpisan', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_unsigned.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{subst:nepotpisan|", |
|||
post: "}}" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'DEFAULTSORT': { |
|||
label: 'Prikaži', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/b/bb/Seealso.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{subst:NS-prikaži1}}--~~~~", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'DEFAULTSORT': { |
|||
label: 'Test', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/76/Testwarn1.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{subst:NS-test1}}--~~~~", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'DEFAULTSORT': { |
|||
label: 'Suradnik i članak', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/4/41/Button_userandarticle.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{subst:suradnik i članak}}--~~~~", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'DEFAULTSORT': { |
|||
label: 'NS-osnove1', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1e/Button_ns-basics.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{subst:NS-osnove1|", |
|||
post: "}}--~~~~" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'DEFAULTSORT': { |
|||
label: 'Popis stanovništva 2011.', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/8/89/Exquisite-khelpcenter.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{subst:Popis stanovništva 2011.}}--~~~~", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Signature': { |
|||
label: 'Arhiv - početak', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/3/32/BTA-1.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{ArhivPočetak}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { |
|||
$j(document).ready( function() { |
|||
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { |
|||
'section': 'advanced', |
|||
'group': 'dugmići', |
|||
'tools': { |
|||
'Signature': { |
|||
label: 'Arhiv - kraj', |
|||
type: 'button', |
|||
icon: 'http://upload.wikimedia.org/wikipedia/commons/5/5b/BTA-2.png', |
|||
action: { |
|||
type: 'encapsulate', |
|||
options: { |
|||
pre: "{{ArhivKraj}}", |
|||
post: "" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} ); |
|||
} ); |
|||
} |
|||
/*</nowiki></pre>*/ |
/*</nowiki></pre>*/ |
Latest revision as of 07:51, 20 January 2019
/*<nowiki><pre>*/
var customizeToolbar = function () {
//EXTRA TOOLBAR BUTTONS
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Blockquote': {
label: 'Navodnici',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/2/2f/Toolbaricon_quote_1.png',
action: {
type: 'encapsulate',
options: {
pre: "„",
post: "“"
}
}
},
'Strikethrough': {
label: 'Precrtan tekst',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/45/Gnome-format-text-strikethrough.svg/25px-Gnome-format-text-strikethrough.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "<s>",
post: "</s>"
}
}
},
'Template': {
label: 'Šablon',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/d/dd/Vector_toolbar_template_button.png',
action: {
type: 'encapsulate',
options: {
pre: "{{",
post: "}}"
}
}
},
'External link': {
label: 'Spoljašnja veza',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/49/Gnome-go-previous.svg/25px-Gnome-go-previous.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[",
post: "]"
}
}
},
'Internal link': {
label: 'Unutrašnja veza',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/9/94/Gnome-go-next.svg/25px-Gnome-go-next.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[",
post: "]]"
}
}
},
'Link': {
label: 'Veza',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/2/27/Gnome-go-last.svg/25px-Gnome-go-last.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[|",
post: "]]"
}
}
},
'Vertical line': {
label: 'Uspravna crta',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/46/Gnome-go-first.svg/25px-Gnome-go-first.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "|"
}
}
},
'Category': {
label: 'Kategorija',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/6d/Gnome-go-bottom.svg/25px-Gnome-go-bottom.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[Category:",
post: "]]"
}
}
},
'Advanced image': {
label: 'Slika 250px',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Image-x-generic.svg/25px-Image-x-generic.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:",
post: "|thumb|right|250px|Opis]]"
}
}
},
'Smile': {
label: 'Smeje se',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-smile.svg/25px-Face-smile.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-smile.svg|20px]]"
}
}
},
'Winking': {
label: 'Namiguje',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Face-wink.svg/25px-Face-wink.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-wink.svg|20px]]"
}
}
},
'Done': {
label: 'Urađeno',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Dialog-apply.svg/25px-Dialog-apply.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{done}} ",
post: " ~~~~"
}
}
},
'Not done': {
label: 'Nije urađeno',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/75/Gnome-colors-window-close.svg/25px-Gnome-colors-window-close.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{not done}} ",
post: " ~~~~"
}
}
},
'Signature': {
label: 'Potpis',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/7/79/Insert-signature.png',
action: {
type: 'encapsulate',
options: {
pre: " ~~~~"
}
}
}
}
});
//EMOTICONS
$('#wpTextbox1').wikiEditor('addToToolbar', {
'sections': {
'emoticons': {
'type': 'toolbar',
'label': 'Emoticons'
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'groups': {
'emoticons': {
'label': 'Emoticons'
}
}
});
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'emoticons',
'group': 'emoticons',
'tools': {
'smile': {
label: 'Smile',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-smile.svg/25px-Face-smile.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-smile.svg|20px]]"
}
}
},
'frown': {
label: 'Frown',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/06/Face-sad.svg/25px-Face-sad.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-sad.svg|20px]]"
}
}
},
'plain': {
label: 'Plain',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/df/Face-plain.svg/25px-Face-plain.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-plain.svg|20px]]"
}
}
},
'wink': {
label: 'Wink',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/5/57/Face-wink.svg/25px-Face-wink.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-wink.svg|20px]]"
}
}
},
'tongue': {
label: 'Tongue',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/7e/Face-tongue.svg/25px-Face-tongue.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-tongue.svg|20px]]"
}
}
},
'surprised': {
label: 'Surprised',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/79/Face-surprise.svg/25px-Face-surprise.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-surprise.svg|20px]]"
}
}
},
'confused': {
label: 'Confused',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Face-confused.svg/25px-Face-confused.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-confused.svg|20px]]"
}
}
},
'grin': {
label: 'Grin',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Face-grin.svg/25px-Face-grin.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-grin.svg|20px]]"
}
}
},
'braces': {
label: 'Braces grin',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/6/6e/Face-grin-braces.svg/25px-Face-grin-braces.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-grin-braces.svg|20px]]"
}
}
},
'crying': {
label: 'Crying',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Face-crying.svg/25px-Face-crying.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-crying.svg|20px]]"
}
}
},
'blush': {
label: 'Blush',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Face-blush.svg/25px-Face-blush.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-blush.svg|20px]]"
}
}
},
'laughing': {
label: 'Laughing',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/1/15/Face-smile-big.svg/25px-Face-smile-big.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-smile-big.svg|20px]]"
}
}
},
'kiss': {
label: 'Kiss',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/a/a8/Face-kiss.svg/25px-Face-kiss.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-kiss.svg|20px]]"
}
}
},
'glasses': {
label: 'Glasses',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Face-glasses.svg/25px-Face-glasses.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-glasses.svg|20px]]"
}
}
},
'nerd': {
label: 'Nerd',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/0/03/Face-grin_expert.svg/25px-Face-grin_expert.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-grin_expert.svg|20px]]"
}
}
},
'angel': {
label: 'Angel',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Face-angel.svg/25px-Face-angel.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-angel.svg|20px]]"
}
}
},
'devil': {
label: 'Devil',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/70/Face-devil-grin.svg/25px-Face-devil-grin.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-devil-grin.svg|20px]]"
}
}
},
'monkey': {
label: 'Monkey',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Face-monkey.svg/25px-Face-monkey.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:Face-monkey.svg|20px]]"
}
}
}
}
});
//REMOVING THINGS
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'help'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'main',
'group': 'insert',
'tool': 'file'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'main',
'group': 'insert',
'tool': 'signature'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'main',
'group': 'insert',
'tool': 'signature-ns0'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'advanced',
'group': 'heading'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'advanced',
'group': 'format',
'tool': 'ulist'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'advanced',
'group': 'format',
'tool': 'olist'
});
$('#wpTextbox1').wikiEditor('removeFromToolbar', {
'section': 'advanced',
'group': 'format',
'tool': 'indent'
});
};
if ($.inArray(mw.config.get('wgAction'), ['edit', 'submit']) !== -1) {
mw.loader.using('user.options', function () {
if (mw.user.options.get('usebetatoolbar')) {
mw.loader.using('ext.wikiEditor', function () {
$(document).ready(customizeToolbar);
});
}
});
}
/*</nowiki></pre>*/