Prijeđi na sadržaj

Suradnik:Zeljko/extraeditbuttons.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.
//<pre>
//============================================================
// en: ADD SOME EXTRA BUTTONS TO THE EDITPANEL
//============================================================
//  
 
function InsertButtonsToToolBar()
{
// ========oblikovanje============
//
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_smiley_face_smile.png",
    "speedTip": "Smajli",
    "tagOpen": "[[Slika:Face-smile.svg|20px]]",
    "tagClose": "",
    "sampleText": ""}
//Table button
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png",
    "speedTip": "Table",
    "tagOpen": "\n{| border='1' \n|- \n| 1 || 2\n|- \n| 3 || 4",
    "tagClose": "\n|}\n",
    "sampleText": ""}
//Slika 250px
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3c/Icons-mini-image_new.gif",	 
	"speedTip": "Slika",	 
	"tagOpen": "[[Slika:|minijatura|desno|250px|]]",	 
	"tagClose": "",	 
	"sampleText": ""}
//Line break button
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png",
    "speedTip": "Line break",
    "tagOpen": "<br />",
    "tagClose": "",
    "sampleText": ""}
//Small Text
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/58/Button_small.png",
    "speedTip": "Small",
    "tagOpen": "<small>",
    "tagClose": "</small>",
    "sampleText": "Small Text"}
//Strajk
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/c9/Button_strike.png",
    "speedTip": "Strike",
    "tagOpen": "<s>",
    "tagClose": "</s>",
    "sampleText": ""}
//tipovriter
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/30/Tt_icon.png",
    "speedTip": "Tipovriter",
    "tagOpen": "<tt>",
    "tagClose": "</tt>",
    "sampleText": ""}
//Andrlajn
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fd/Button_underline.png",
    "speedTip": "Underline",
    "tagOpen": "<u>",
    "tagClose": "</u>",
    "sampleText": ""}
//Colour
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1e/Button_font_color.png",
    "speedTip": "Insert colored text",
    "tagOpen": "<span style='color: ColorName'>",
    "tagClose": "</span>",
    "sampleText": "Span of text"}
//Noinclude
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/ce/Button_no_include.png",
    "speedTip": "Noinclude",
    "tagOpen": "<noinclude>",
    "tagClose": "</noinclude>",
    "sampleText": ""}
// =============predlošci jednostavni===========
//Riješeno
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/9d/Button_fait.png",
    "speedTip": "Riješeno",
    "tagOpen": "{{OK}}",
    "tagClose": "",
    "sampleText": ""}
//NijeRiješeno
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a5/Button_not_done.png",
    "speedTip": "NeRiješeno",
    "tagOpen": "{{NO}}",
    "tagClose": "",
    "sampleText": ""}
//Yes
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_conserver.png",
    "speedTip": "Za",
    "tagOpen": "{{Za}}",
    "tagClose": "",
    "sampleText": ""}
//No
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fc/Button_supp.png",
    "speedTip": "Protiv",
    "tagOpen": "{{Protiv}}",
    "tagClose": "",
    "sampleText": ""}
//Template button
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png",
    "speedTip": "Predložak",
    "tagOpen": "{{",
    "tagClose": "}}",
    "sampleText": "ime"}
// =============predlošci složeni===========
//Reference link button
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png",
    "speedTip": "<ref>",
    "tagOpen": "<ref>",
    "tagClose": "</ref>",
    "sampleText": "Insert reference material"}
//Kat?	 
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/10/Button_category04.png",
	"speedTip": "Kategorija???",	 
	"tagOpen": "{{kat?}}<!-- -->",	 
	"tagClose": "",	 
	"sampleText": ""}
//Razdvojba 
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/62/Button_desambig.png",	 
	"speedTip": "Razdvojba",	 
	"tagOpen": "{{Razdvojba}}",	 
	"tagClose": "",	 
	"sampleText": ""}
//Bris	 
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile": "http://upload.wikimedia.org/wikipedia/commons/5/50/Button_tidyman.png",
	"speedTip": "Bris",	 
	"tagOpen": "{{bris|}}",	 
	"tagClose": "",	 
	"sampleText": ""}
//Sadržaj
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/2e/Button_broom.png",	 
	"speedTip": "{ {Sadržaj} }",	 
	"tagOpen": "{{subst:NSBris}}",	 
	"tagClose": "",	 
	"sampleText": ""}
//slika za brisanje
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/2d/Button_removed.png",	 
	"speedTip": "{ {Slika za brisanje} }",	 
	"tagOpen": "{{subst:SBris}}",	 
	"tagClose": "",	 
	"sampleText": ""}
//Sredi slike
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/22/Button_radio_activite.png",
    "speedTip": "Srediti slike",
    "tagOpen": "{{ 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}}",
    "tagClose": "",
    "sampleText": ""}
//copyright?
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/72/Button_copy_vio_plagio.png",	 
	"speedTip": "{ {copyright?} }",	 
	"tagOpen": "{{subst:CBris|",	 
	"tagClose": "}}",	 
	"sampleText": ""}
//tl-sort
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_templatelink.png",	 
	"speedTip": "{ {tl-sort} }",	 
	"tagOpen": "{{tl-sort}}",	 
	"tagClose": "",	 
	"sampleText": ""}
//Nedostaje izvor
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1a/Button_fact.png",	
	"speedTip": "{ {Nedostaje izvor} }",	 
	"tagOpen": "{{Nedostaje izvor}}",	 
	"tagClose": "",	 
	"sampleText": ""}
//Nepotpisan
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_unsigned.png",	
	"speedTip": "{ {Nepotpisan} }",	 
	"tagOpen": "{{subst:nepotpisan|",	 
	"tagClose": "|vrijeme}}",	 
	"sampleText": "ime ili ip"}
//WProjekti
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b8/Button_Globe.png",
    "speedTip": "WProjekti",
    "tagOpen": "{{ 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}}",
    "tagClose": "",
    "sampleText": ""}
//======== komunikacijski========
//ns-prikaži1
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile":"http://upload.wikimedia.org/wikipedia/commons/b/bb/Seealso.png",	 
	"speedTip": "{ {Prikaži} }",	 
	"tagOpen": "{{subst:NS-prikaži1}}--~~~~",	 
	"tagClose": "",	 
	"sampleText": ""}
//ns-test1
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile":"http://upload.wikimedia.org/wikipedia/commons/7/76/Testwarn1.png",	 
	"speedTip": "{ {Test} }",	 
	"tagOpen": "{{subst:NS-test1}}--~~~~",	 
	"tagClose": "",	 
	"sampleText": ""}
//sič
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile":"http://upload.wikimedia.org/wikipedia/commons/4/41/Button_userandarticle.png",	 
	"speedTip": "{ {suradnik i članak} }",	 
	"tagOpen": "{{subst:suradnik i članak}}--~~~~",	 
	"tagClose": "",	 
	"sampleText": ""}
//ns-osnove1
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile":"http://upload.wikimedia.org/wikipedia/commons/1/1e/Button_ns-basics.png",	 
	"speedTip": "{ {NS-osnove1} }",	 
	"tagOpen": "{{subst:NS-osnove1|",	 
	"tagClose": "}}--~~~~",	 
	"sampleText": ""}
//ns-popis stanovništva 2011.
mwCustomEditButtons[mwCustomEditButtons.length] = {	 
	"imageFile":"http://upload.wikimedia.org/wikipedia/commons/8/89/Exquisite-khelpcenter.png",	 
	"speedTip": "{ {Popis stanovništva 2011.} }",	 
	"tagOpen": "{{subst:Popis stanovništva 2011.}}--~~~~",	 
	"tagClose": "",	 
	"sampleText": ""}
 
}
$( InsertButtonsToToolBar );
//</pre>