Suradnica:Roberta F./extratoolbarbuttons.js
Napomena: Nakon objave možda ćete trebati očistiti međuspremnik svog preglednika kako biste vidjeli promjene.
- Firefox / Safari: držite Shift i pritisnite Reload, ili pritisnite bilo Ctrl-F5 ili Ctrl-R (⌘-R na Macu)
- Google Chrome: pritisnite Ctrl-Shift-R (⌘-Shift-R na Macu)
- Internet Explorer / Edge: držite Ctrl i kliknite Refresh, ili pritisnite Ctrl-F5
- Opera: pritisnite Ctrl-F5.
/*<nowiki><pre>*/
$( function() {
if ( typeof $.fn.wikiEditor != 'undefined' ) {
$( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', {
'section': 'main',
'group': 'insert',
});
}
});
$( function() {
if ( typeof $.fn.wikiEditor != 'undefined' ) {
$( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', {
'section': 'help',
});
}
});
$( function() {
if ( typeof $.fn.wikiEditor != 'undefined' ) {
$( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', {
'section': 'advanced',
'group': 'heading',
});
}
});
$( function() {
if ( typeof $.fn.wikiEditor != 'undefined' ) {
$( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', {
'section': 'advanced',
'group': 'format',
'tool': 'ulist'
});
}
});
$( function() {
if ( typeof $.fn.wikiEditor != 'undefined' ) {
$( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', {
'section': 'advanced',
'group': 'format',
'tool': 'olist'
});
}
});
$( function() {
if ( typeof $.fn.wikiEditor != 'undefined' ) {
$( '#wpTextbox1' ).wikiEditor( 'removeFromToolbar', {
'section': 'advanced',
'group': 'format',
'tool': 'indent'
});
}
});
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Internal link': {
label: 'Wikipoveznica',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/c/c0/Button_link.png',
action: {
type: 'encapsulate',
options: {
pre: "[[",
post: "]]"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Internal link': {
label: 'Datoteka',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/d/de/Button_image.png',
action: {
type: 'encapsulate',
options: {
pre: "[[Datoteka:",
post: "|mini|]]"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Internal link': {
label: 'Potpis',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_sig.png',
action: {
type: 'encapsulate',
options: {
pre: "--~~~~",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Internal link': {
label: 'Predložak',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png',
action: {
type: 'encapsulate',
options: {
pre: "{{",
post: "}}"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Internal link': {
label: 'Pituranje',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/1/1e/Button_font_color.png',
action: {
type: 'encapsulate',
options: {
pre: "<span style='color: ColorName'>",
post: "</span>"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Link': {
label: 'Bjelina',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/3/3c/Icons-mini-image_new.gif',
action: {
type: 'encapsulate',
options: {
pre: " ",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Category': {
label: 'Wprojekti',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/b/b8/Button_Globe.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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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. F Y.| +1hours+14 days}} \n|potpis = --~~~~ \n}}",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Advanced image': {
label: 'Slika za brisanje',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/2/2d/Button_removed.png',
action: {
type: 'encapsulate',
options: {
pre: "{{subst:SBris}}",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'DEFAULTSORT': {
label: 'NS-osnove1',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/9/96/PeopleABC.png',
action: {
type: 'encapsulate',
options: {
pre: "{{subst:NS-osnove1|",
post: "}}--~~~~"
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'DEFAULTSORT': {
label: 'Životopis',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/8/89/Exquisite-khelpcenter.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Infookvir životopis \n| ime = \n| slika = \n| veličina = \n| opis slike = \n| pseudonim = \n| rođenje = \n| smrt = \n| nacionalnost = \n| poznat_po = \n| zanimanje = \n}}",
post: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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 $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'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: ""
}
}
}
}
} );
} );
}
if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
$(document).ready( function() {
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'DEFAULTSORT': {
label: 'Upo-med',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/66/Esculaap4.svg',
action: {
type: 'encapsulate',
options: {
pre: "{{Upozorenje-medicina}}",
post: ""
}
}
}
}
} );
} );
}
/*</nowiki></pre>*/