Suradnica:Takora/extratoolbarbuttons.js

Izvor: Wikipedija

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>*/

if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
                $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
                        'section': 'advanced',
                        'groups': {
                                'Dodatni alati': {
                                        'label': 'Dodatni alati'
                }
            }
        } );
    } );
}

if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            'tools': {
                'Strikethrough': {
                    label: 'Crta',
                    type: 'button',
                    icon: 'http://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png',
                    action: {
                        type: 'encapsulate',
                        options: {
                            pre: "&#124;",
                            post: ""
                        }
                    }
                }
            }
        } );
    } );
}

if ( typeof $j != 'undefined' && typeof $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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 $.fn.wikiEditor != 'undefined' ) {
    $(document).ready( function() {
        $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
            'section': 'advanced',
            'group': 'Dodatni alati',
            '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': 'Dodatni alati',
            '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>*/