MediaWiki:Gadget-DeluxeBar.js

// Keep system from trying to read this as wikitext

// Edition buttons mw.loader.using( 'mediawiki.util', function { if (['edit', 'submit'].indexOf(mw.config.get('wgAction')) == -1)    return;  $.each([ // Format: for each button // [   //   'Text to insert before the selection', //  'Text to insert after', //  'Image', //  'Tooltip', //  'Image ID' // ],

[     "\n\n\n", "",     "d/dc/Circle-Thumb", "box", ""   ],

[     " " + "",      "a/a7/Button_smiley3", "joinus", ""   ],

[     " " + "",      "e/eb/Button_accueilB", "welcome", ""   ],

[     " " + "",      "3/3b/Button_crocs", "test1", ""   ],

[     " " + "",      "e/ec/Button_aviso", "test2", ""   ],

[     " " + "",      "0/00/Button_vandale", "blocked", ""   ],

[     " " + "",      "6/6d/Button_exclamation_1", "Spam", ""   ],

[     "== References ==\n", "",     "6/64/Buttonrefvs8", "References", ""   ]

], function(_, button) { mw.toolbar.addButton('//upload.wikimedia.org/wikipedia/commons/' + button[2] + '.png', button[3], button[0], button[1], (button[0] ? button[4] : ''), 'mw-editbutton-' + button[4]); }); });

// Per Comments_in_Local_Time LocalComments = { dateDifference: true, dateFormat: 'mdy', timeFirst: true, twentyFourHours: false };

//