מדיה ויקי:Gadget-Nikud.js

מתוך ויקיפדיה, האנציקלופדיה החופשית

הערה: לאחר הפרסום, ייתכן שיהיה צורך לנקות את זיכרון המטמון (cache) של הדפדפן כדי להבחין בשינויים.

  • פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
  • גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
  • אינטרנט אקספלורר / אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
  • אופרה: ללחוץ על Ctrl-F5.
// based on [[מדיה ויקי:Edittoolbar.js]]

var customButtons = [];

function addCustomBtn( location, imageFile, tagOpen, sampleText, tagClose, speedTip ) {
    customButtons.push( {
        "imageFile": ((location == 1) ? "//he.wikipedia.org/" : "//upload.wikimedia.org/" ) + imageFile,
        "tagOpen": tagOpen,
        "sampleText": sampleText,
        "tagClose": tagClose,
        "speedTip": speedTip
    } );
}

// Edit pages
if (mw.config.get('wgAction') == 'edit' || mw.config.get('wgAction') == 'submit') {
 addCustomBtn(0, "wikipedia/commons/5/5b/Nikud1.png", "ֹ‏ּ‏", "", "", "דגש");
 addCustomBtn(0, "wikipedia/commons/2/2d/Nikud2.png", "ֹ‏", "", "", "חולם");
 addCustomBtn(0, "wikipedia/commons/9/97/Nikud3.png", "ּ‏", "", "", "שורוק");
 addCustomBtn(0, "wikipedia/commons/a/af/Nikud4.png", "ַ‏", "", "", "פתח");
 addCustomBtn(0, "wikipedia/commons/7/7f/Nikud5.png", "ָ‏", "", "", "קמץ");
 addCustomBtn(0, "wikipedia/commons/1/10/Nikud6.png", "ֶ‏", "", "", "סגול");
 addCustomBtn(0, "wikipedia/commons/3/31/Nikud7.png", "ֵ", "", "", "צירי");
 addCustomBtn(0, "wikipedia/commons/e/e3/Nikud8.png", "ִ", "", "", "חיריק");
 addCustomBtn(0, "wikipedia/commons/d/d5/Nikud9.png", "ֳ‏", "", "", "חטף קמץ");
 addCustomBtn(0, "wikipedia/commons/5/59/Nikud10.png", "ֲ", "", "", "חטף פתח");
 addCustomBtn(0, "wikipedia/commons/6/61/Nikud11.png", "ֱ", "", "", "חטף סגול");
 addCustomBtn(0, "wikipedia/commons/4/4f/Nikud12.png", "ְ", "", "", "שווא");
 addCustomBtn(0, "wikipedia/commons/c/c5/Nikud13.png", "ֻ", "", "", "קובוץ");
 addCustomBtn(0, "wikipedia/commons/b/b7/Nikud14.png", "שׁ", "", "", "שין (ימין)");
 addCustomBtn(0, "wikipedia/commons/9/9a/Nikud15.png", "שׂ", "", "", "שין (שמאל)");
}