User:Micki/extratoolbarbuttons.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><pre>*/
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Template': {
label: 'Šablon',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/2/20/Toolbaricon_transclude.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': 'format',
'tools': {
'External link': {
label: 'Spoljašnja veza',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/5/53/Button_ext_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': 'format',
'tools': {
'Internal link': {
label: 'Unutrašnja veza',
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': 'format',
'tools': {
'Link': {
label: 'Veza',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/0/0c/Button_Link_DifferentName.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': 'format',
'tools': {
'Vertical line': {
label: 'Uspravna 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': 'format',
'tools': {
'Underline': {
label: 'Podvučen tekst',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/f/fd/Button_underline.png',
action: {
type: 'encapsulate',
options: {
pre: "<u>",
post: "</u>"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Strikethrough': {
label: 'Precrtan tekst',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/c9/Button_strike.png',
action: {
type: 'encapsulate',
options: {
pre: "<s>",
post: "</s>"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Category': {
label: 'Kategorija',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/b/b6/Button_category_link.png',
action: {
type: 'encapsulate',
options: {
pre: "[[Category:",
post: "]]"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Advanced image': {
label: 'Slika 250px',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_advanced_image.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File:",
post: "|thumb|rught|250px|Opis]]"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Smile': {
label: 'Smeje se',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/f/f5/Button_smiley_face_grin.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File: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': 'format',
'tools': {
'Winking': {
label: 'Namiguje',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png',
action: {
type: 'encapsulate',
options: {
pre: "[[File: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': 'format',
'tools': {
'Unsigned post': {
label: 'Komentar bez potpisa',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/3/38/Button_plume.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Unsigned|",
post: "}}"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Signature': {
label: 'Potpis',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/7/79/Insert-signature.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': 'format',
'tools': {
'Delete': {
label: 'Speedy deletion',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/2/29/Toolbaricon_bold_B.png',
action: {
type: 'encapsulate',
options: {
pre: "{{delete|",
post: "}}"
}
}
}
}
} );
} );
}
/*</nowiki></pre>*/