משתמשת:TZivyA/common.js/toolbar buttons.js

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

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

  • פיירפוקס / ספארי: להחזיק את המקש Shift בעת לחיצה על טעינה מחדש (Reload) או ללחוץ על צירוף המקשים Ctrl-F5 או Ctrl-R (במחשב מק: ⌘-R).
  • גוגל כרום: ללחוץ על צירוף המקשים Ctrl-Shift-R (במחשב מק: ⌘-Shift-R).
  • אינטרנט אקספלורר / אדג': להחזיק את המקש Ctrl בעת לחיצה על רענן (Refresh) או ללחוץ על צירוף המקשים Ctrl-F5.
  • אופרה: ללחוץ על Ctrl-F5.
// [[File:Krinkle_insertVectorButtons.js]]
mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Krinkle/insertVectorButtons.js&action=raw&ctype=text/javascript');
 
function kCustomMainInsertButton_config(){
 
// בעד :
kCustomMainInsertButton(
	'בעד', //imageId
	'http://commons.wikimedia.org/wiki/Special:FilePath?file=Symbol_support_vote.svg&width=20', //imageFile
	'בעד', //speedTip
	'* {\{בעד}\} \~\~\~\~', //tagOpen
	'', //tagClose
	'' //sampleText
);
// נגד :
kCustomMainInsertButton(
	'נגד', //imageId
	'http://commons.wikimedia.org/wiki/Special:FilePath?file=Symbol_oppose_vote.svg&width=20', //imageFile
	'נגד', //speedTip
	'* {\{נגד}\} \~\~\~\~', //tagOpen
	'', //tagClose
	'' //sampleText
);
  
// בוצע :
kCustomMainInsertButton(
	'בוצע', //imageId
	'http://commons.wikimedia.org/wiki/Special:FilePath?file=Yes_check.svg&width=20', //imageFile
	'בוצע', //speedTip
	':{\{בוצע}\} \~\~\~\~', //tagOpen
	'', //tagClose
	'' //sampleText
);

// חיוך :
kCustomMainInsertButton(
	'חיוך', //imageId      
	'http://commons.wikimedia.org/wiki/Special:FilePath?file=Face-smile.svg&width=20', //imageFile
	'חיוך', //speedTip
	'{\{חיוך}\}', //tagOpen
	'', //tagClose
	'' //sampleText
);

}