User:Lilyu/monobook.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
/**************************************************************************/
 
 
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
/*             BOUTONS D'EDITION             */
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
 
mwCustomEditButtons = [];


/* Fonctions d'ajout */
function addCustomButton(imageFile, speedTip, tagOpen, tagClose, sampleText, imageId) 
{
  mwCustomEditButtons[mwCustomEditButtons.length] =
  {
     "imageId": imageId,
     "imageFile": imageFile,
     "speedTip": speedTip,
     "tagOpen": tagOpen,
     "tagClose": tagClose,
     "sampleText": sampleText
  };
}

addCustomButton('http://upload.wikimedia.org/wikipedia/commons/6/60/Button_support.png',
                'Pour',
                '{{Support}}',
                '',
                '',
                'mw-editbutton-pour');

addCustomButton('http://upload.wikimedia.org/wikipedia/commons/9/98/Button_oppose.png',
                'Contre',
                '{{Oppose}}',
                '',
                '',
                'mw-editbutton-contre');

addCustomButton('http://upload.wikimedia.org/wikipedia/commons/b/bd/Warn4.png',
                '-  {{npd}}  ',
                '\{\{\subst\:npd\}\}',
                '',
                '',
                'mw-editbutton-permission');

addCustomButton('http://upload.wikimedia.org/wikipedia/commons/e/ec/Nuvola_apps_kolourpaint.png',
                '-  {{RetouchedPicture}}  ',
                '{{RetouchedPicture}}',
                '',
                '',
                'mw-editbutton-retouched');


addCustomButton('http://upload.wikimedia.org/wikipedia/commons/0/09/Crystal_Clear_action_info.png',
                '-  {{nsd}}  ',
                '\{\{\subst\:nsd\}\}',
                '',
                '',
                'mw-editbutton-nosource');


addCustomButton('http://upload.wikimedia.org/wikipedia/commons/a/a0/Button_keep.png',
                '-  Keep  ',
                '{{Keep}}',
                '',
                '',
                'mw-editbutton-keep');

addCustomButton('http://upload.wikimedia.org/wikipedia/commons/1/13/Button_delete.png',
                '-  Delete  ',
                '{{vd}}',
                '',
                '',
                'mw-editbutton-deletit');



addCustomButton('',
                '-  Cat Lilyu  ',
                '\[\[Category:Images by Lilyu]]',
                '',
                '',
                'mw-editbutton-lilyu');

addCustomButton('',
                '-  Cat Humour  ',
                '\[\[Category:Wikipedia french humour]]',
                '',
                '',
                'mw-editbutton-frenchhumour');

addCustomButton('',
                '-  Description  ',
                '\=\={{int:filedesc}}\=\=',
                '',
                '',
                'mw-editbutton-description');

addCustomButton('',
                '-  License  ',
                '\=\=\{\{int:license\}\}\=\=',
                '',
                '',
                'mw-editbutton-license');

addCustomButton('http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_smiley_face_smile.png',
                '-  smile  ',
                '{{smile}}',
                '',
                '',
                'mw-editbutton-smile');

addCustomButton('http://upload.wikimedia.org/wikipedia/commons/f/f5/Button_smiley_face_grin.png',
                '-  mdr  ',
                '{{lol}}',
                '',
                '',
                'mw-editbutton-mdr');

addCustomButton('',
                '-  Chicoutimi  ',
                '\{\{Cegep Chicoutimi\}\}',
                '',
                '',
                'mw-editbutton-Chicoutimi');