Pengguna:Bennylin/monobook.js
Loncat ke navigasi
Loncat ke pencarian
Catatan: Setelah menyimpan preferensi, Anda perlu membersihkan kas penjelajah web Anda untuk melihat perubahan.
- Mozilla / Firefox / Safari: tekan Ctrl-Shift-R (Cmd-Shift-R pada Apple Mac);
- Opera bersihkan melalui menu Tools→Preferences.
- Internet Explorer: tekan Ctrl-F5;
- Konqueror:: tekan F5;
/* === Tambahan toolbar === Menambahkan tombol di belakang toolbar. Variabel array mybtn: # Nama berkas icon. Cari di [[:commons:Category:ButtonToolbar]] # Tooltips # Pembuka # Penutup # Teks standar <nowiki> */ var imagePath = 'http://upload.wikimedia.org/wikipedia/commons/'; var mybtn = new Array(); mybtn[mybtn.length] = new Array( "", "<------------tidak dipakai-----", "", "", " " ); mybtn[mybtn.length] = new Array( "f/f3/Internal_link_icon.png", "Pranala internal", "[[", "]]", "Judul pranala" ); mybtn[mybtn.length] = new Array( "7/73/External_link_icon.png", "Pranala eksternal", "[", "]", "http://www.contoh.com/ Judul pranala" ); mybtn[mybtn.length] = new Array( "6/6f/Bold_icon.png", "Bold", "<b>", "</b>", "Teks" ); mybtn[mybtn.length] = new Array( "d/d7/Italic_icon.png", "Italik", "<i>", "</i>", "Teks" ); mybtn[mybtn.length] = new Array( "f/fd/Button_underline.png", "Under-lain", "<u>", "</u>","Teks"); mybtn[mybtn.length] = new Array( "c/c9/Button_strike.png", "Straik-tru", "<s>", "</s>", "Teks" ); mybtn[mybtn.length] = new Array( "6/6a/Button_sup_letter.png", "Super-skrip", "<sup>", "</sup>", "Teks" ); mybtn[mybtn.length] = new Array( "a/aa/Button_sub_letter.png", "Sub-skrip", "<sub>", "</sub>", "Teks" ); mybtn[mybtn.length] = new Array( "7/79/Button_reflink.png", "Rujukan", "<ref>", "</ref>", "Rujukan" ); mybtn[mybtn.length] = new Array( "9/9e/Btn_toolbar_gallery.png", "Galeri", "<gallery>", "</gallery>", "Teks" ); mybtn[mybtn.length] = new Array( "0/01/Button_includeonly_green.png", "Inklud onli", "<includeonly>", "</includeonly>", "Teks" ); mybtn[mybtn.length] = new Array( "c/ce/Button_no_include.png", "No inklud", "<noinclude>", "</noinclude>", "Teks" ); mybtn[mybtn.length] = new Array( "8/82/Nowiki_icon.png", "No-wiki", "<nowiki>", "</nowiki>", "Teks" ); mybtn[mybtn.length] = new Array( "b/ba/Headline_icon.png", "Subbagian 1", "==", "==", "Teks" ); mybtn[mybtn.length] = new Array( "e/e9/Button_headline2.png", "Subbagian 2", "===", "===","Teks"); mybtn[mybtn.length] = new Array( "3/3a/Button_headline3.png", "Subbagian 3", "====", "====", "Teks" ); mybtn[mybtn.length] = new Array( "f/f0/Image_icon.png", "Berkas", "[[Berkas:", "]]","Berkas.jpg"); mybtn[mybtn.length] = new Array( "c/c8/Button_redirect.png", "Redireksi", "#ALIH [[", "]]", "Redireksi" ); mybtn[mybtn.length] = new Array( "7/74/Button_comment.png", "Komentar", "<!-- ", " -->", "Komentar" ); mybtn[mybtn.length] = new Array( "a/a4/H-line_icon.png", "Garis horisontal", "----", "", "" ); mybtn[mybtn.length] = new Array( "c/c7/Signature_icon.png", "Tanda tangan", <nowiki>~~~~</nowiki>, "", "" ); for ( var i = 0; i < mybtn.length; i++ ) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile" : imagePath + mybtn[i][0], "speedTip" : mybtn[i][1], "tagOpen" : mybtn[i][2], "tagClose" : mybtn[i][3], "sampleText": mybtn[i][4] }; }/* </nowiki> */