Pengguna:Bennylin/monobook.js: Perbedaan antara revisi
Loncat ke navigasi
Loncat ke pencarian
←Membuat halaman berisi '/* === Tambahan toolbar === Menambahkan tombol di belakang toolbar. Variabel array mybtn: # Nama berkas icon. Cari di [http://commons.wikimedia.org/wiki/Category:Button...' |
kTidak ada ringkasan suntingan |
||
Baris 1: | Baris 1: | ||
/* | /* | ||
=== Tambahan toolbar === | === Tambahan toolbar === | ||
Menambahkan tombol di belakang toolbar. Variabel array mybtn: | Menambahkan tombol di belakang toolbar. Variabel array mybtn: | ||
# Nama berkas icon. Cari di [ | # Nama berkas icon. Cari di [[:commons:Category:ButtonToolbar]] | ||
# Tooltips | # Tooltips | ||
# Pembuka | # Pembuka | ||
Baris 12: | Baris 13: | ||
var imagePath = 'http://upload.wikimedia.org/wikipedia/commons/'; | var imagePath = 'http://upload.wikimedia.org/wikipedia/commons/'; | ||
var mybtn = new Array(); | var mybtn = new Array(); | ||
mybtn[mybtn.length] = new Array( "f/fd/Button_underline.png", "Under-lain", "<u>", "</u>", "Teks" ); | 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( "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( "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( "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( "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( "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( "c/ce/Button_no_include.png", "No inklud", "<noinclude>", "</noinclude>", "Teks" ); | ||
mybtn[mybtn.length] = new Array( " | mybtn[mybtn.length] = new Array( "8/82/Nowiki_icon.png", "No-wiki", "<nowiki>", "</nowiki>", "Teks" ); | ||
mybtn[mybtn.length] = new Array( "e/e9/Button_headline2.png", "Subbagian 2", "===", "===", "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( "3/3a/Button_headline3.png", "Subbagian 3", "====", "====", "Teks" ); | ||
mybtn[mybtn.length] = new Array( "e/eb/Button_plantilla.png", "Templat", "{{", "}}", "Templat" ); | mybtn[mybtn.length] = new Array( "e/eb/Button_plantilla.png", "Templat", "{{", "}}", "Templat" ); | ||
mybtn[mybtn.length] = new Array( "c/c6/Button_Kat.png", "Kategori", "[[Kategori:", "]]", "Kategori" ); | mybtn[mybtn.length] = new Array( "c/c6/Button_Kat.png", "Kategori", "[[Kategori:", "]]", "Kategori" ); | ||
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( "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( "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++ ) { | for ( var i = 0; i < mybtn.length; i++ ) { |
Revisi per 28 April 2008 04.53
/* === Tambahan toolbar === Menambahkan tombol di belakang toolbar. Variabel array mybtn: # Nama berkas icon. Cari di [[:commons:Category:ButtonToolbar]] # Tooltips # Pembuka # Penutup # Teks standar */ 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( "e/eb/Button_plantilla.png", "Templat", "{{", "}}", "Templat" ); mybtn[mybtn.length] = new Array( "c/c6/Button_Kat.png", "Kategori", "[[Kategori:", "]]", "Kategori" ); 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] }; }