Razlika između inačica stranice »Suradnik:Pavao Zornija/extraeditbuttons.js«

u.
(Nova stranica: //<pre> //============================================================ // en: ADD SOME EXTRA BUTTONS TO THE EDITPANEL //============================================================ ...)
 
(u.)
 
// en: ADD SOME EXTRA BUTTONS TO THE EDITPANEL
//============================================================
 
 
function InsertButtonsToToolBar()
{
"tagClose": "</small>",
"sampleText": "Small Text"}
//GalleryYes
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/encommons/1b/12ba/Button_galleryButton_conserver.png",
"speedTip": "Insert a picture galleryZa",
"tagOpen": "\n<gallery>\n{{Za}}",
"tagClose": "\n</gallery>",
"sampleText": "Image:FileName.jpg|Caption1\nImage:FileName2.jpg|Caption2"}
//No
//Secondary Headline
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/ef/e9fc/Button_headline2Button_supp.png",
"speedTip": "Secondary headlineProtiv",
"tagOpen": "\n==={{Protiv}}",
"tagClose": "===",
"sampleText": "Secondary headline"}
//Komentar
//Template button
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/32/3b2e/Button_template_altButton_pict_comment.png",
"speedTip": "TemplateKomentar",
"tagOpen": "{{Komentar}}",
"tagClose": "}}",
"sampleText": "Template name"}
//:)
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": ""}
//:D
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/f5/Button_smiley_face_grin.png",
"speedTip": "Smajli",
"tagOpen": "[[Slika:Face-grin.svg|20px]]",
"tagClose": "",
"sampleText": ""}
//:(
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b0/Button_blocage.png",
"speedTip": "Smajli",
"tagOpen": "[[Slika:Face-sad.svg|20px]]",
"tagClose": "",
"sampleText": ""}
//;)
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/74/Button_oeil.png",
"speedTip": "Smajli",
"tagOpen": "[[Slika:Face-wink.svg|20px]]",
"tagClose": "",
"sampleText": ""}
//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"}
//Reference button
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a0/Button_references_alt.png",
"speedTip": "Reference footer",
"tagOpen": "{{izvori}}",
"tagClose": "",
"sampleText": ""}
//Noinclude
mwCustomEditButtons[mwCustomEditButtons.length] = {
"tagOpen": "<includeonly>",
"tagClose": "</includeonly>",
"sampleText": ""}
//Tochka
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/aa/Button_dot1.PNG",
"speedTip": "Dot",
"tagOpen": "•",
"tagClose": "",
"sampleText": ""}
//Crta
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png",
"speedTip": "Crta",
"tagOpen": "&#124;",
"tagClose": "",
"sampleText": ""}
//WProjekti
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/12/Button_find.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": ""}
//Premjestiti na Commons
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/6c/Button_commons.png",
"speedTip": "Premjestiti na Commons",
"tagOpen": "{{Premjestiti na Commons‎}}",
"tagClose": "",
"sampleText": ""}
//Slika za brisanje
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_bombe.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": ""}
//Sadržaj
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/45/Memo_button.png",
"speedTip": "Neodgovarajući sadržaj",
"tagOpen": "{{subst:NSBris}}",
"tagClose": "",
"sampleText": ""}
//Bris
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/16/1c66/Button_flammeButton_mort.png",
"speedTip": "Bris",
"tagOpen": "{{bris}}",
"tagClose": "",
"sampleText": ""}
//IČ arhiv početak
//Nepotpisan
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/63/6d32/Button_unsignedBTA-1.png",
"speedTip": "{ {Nepotpisan} }",
"tagOpen": "{{subst:nepotpisan|ArhivPočetak}}",
"tagClose": "}}",
"sampleText": "ime ili ip"}
//IČ arhiv kraj
//Wikipedizirati
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/9f/WikEd_wikify.png",
"speedTip": "Wikipedizirati",
"tagOpen": "{{Wikipedizirati}}",
"tagClose": "",
"sampleText": ""}
//Wp+
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/WikEd_ref.png",
"speedTip": "Wp+",
"tagOpen": "{{Wp+}}",
"tagClose": "",
"sampleText": ""}
//Krive Wp
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3d/Button_tachar.png",
"speedTip": "Krive wp",
"tagOpen": "{{Krive wp}}",
"tagClose": "",
"sampleText": ""}
//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": ""}
//Sadržaj
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/thumb/9/90/Broom_icon.png/22px-Broom_icon.png",
"speedTip": "{ {Sadržaj} }",
"tagOpen": "{{subst:NSBris}}",
"tagClose": "",
"sampleText": ""}
//slika za brisanje
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/thumb/6/66/Rapid_delete.png/22px-Rapid_delete.png",
"speedTip": "{ {Slika za brisanje} }",
"tagOpen": "{{subst:SBris}}",
"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": ""}
//DEFAULTSORT
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Evolution-tasks3.png/22px-Evolution-tasks3.png",
"speedTip": "{ {DEFAULTSORT} }",
"tagOpen": "{{DEFAULTSORT:}}",
"tagClose": "",
"sampleText": ""}
//Slika 250px
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3c/Icons-mini-image_new.gif",
"speedTip": "Slika",
"tagOpen": "[[Slika:|thumb|right|250px|]]",
"tagClose": "",
"sampleText": ""}
//======== komunikacije========
//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": ""}
//Reference
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/c5/c45b/Button_refBTA-2.png",
"speedTip": "<ref>",
"tagOpen": "<ref>{{ArhivKraj}}",
"tagClose": "</ref>",
"sampleText": "referenca"}
//Manja slika
//Kategorija:Neodgovarajući sadržaj
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/35/3650/Button_broom_catButton_tidyman.png",
"speedTip": "{Manja {nsk} }slika",
"tagOpen": "{{nskPU smanjiti}}",
"tagClose": "",
"sampleText": ""}
//Smanjiti slike
//ns-osnove1
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/87/Button_helicopter.png",
"imageFile":
"speedTip": "Smanjitit slike",
"tagOpen": "{{ Smanjiti 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}}",
"http://upload.wikimedia.org/wikipedia/commons/1/1e/Button_ns-basics.png",
"tagClose": "",
"speedTip": "{ {NS-osnove1} }",
"sampleText": ""}
"tagOpen": "{{subst:NS-osnove1|",
//Eng icon
"tagClose": "}}--~~~~",
mwCustomEditButtons[mwCustomEditButtons.length] = {
"sampleText": ""}
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3f/Button_en.png",
"speedTip": "Eng icon",
"tagOpen": "{{eng icon}}",
"tagClose": "",
"sampleText": ""}
}
addOnloadHook( InsertButtonsToToolBar );