User:DocteurCosmos/monobook.js
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.
The accompanying .css page for this skin can be added at User:DocteurCosmos/monobook.css. |
- Report page listing warnings and errors.
// Flickr review //
mw.loader.load('https://commons.wikimedia.org/w/index.php?title=User:Patstuart/Flickrreview.js'
+ '&action=raw&ctype=text/javascript');
// [[User:Lupin/popups.js]] //
mw.loader.load(
'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s');
popupAdminLinks=true
// HotCat //
importScript( 'MediaWiki:Gadget-HotCat.js' )
/**
* Insertion de nouveaux boutons dans la barre d'outil
*/
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/0/04/Button_array.png',
'Tableau',
'{|\n|-\n|\n|\n|}',
'',
'',
'mw-editbutton-array');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/c/c9/Button_strike.png',
'Rayer',
'<s>',
'</s>',
'',
'mw-editbutton-strike');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/8/88/Btn_toolbar_enum.png',
'Énumération',
'\n# élément 1\n# élément 2\n# élément 3',
'',
'',
'mw-editbutton-enum');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/1/11/Btn_toolbar_liste.png',
'Liste',
'\n* élément A\n* élément B\n* élément C',
'',
'',
'mw-editbutton-liste');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/9/9e/Btn_toolbar_gallery.png',
'Galerie d\'images',
'\n<gallery>\nImage:Exemple.jpg|[[Tournesol]]\nImage:Exemple1.jpg|[[La Joconde]]\nImage:Exemple2.jpg|Un [[hamster]]\n</gallery>',
'',
'',
'mw-editbutton-gallery');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/3/37/Btn_toolbar_commentaire.png',
'Commentaire',
'<!--',
'-->',
'',
'mw-editbutton-comment');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/4/47/Button_redir.png',
'Redirection',
'#REDIRECT [[',
']]',
'nom de la destination',
'mw-editbutton-redir');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/b/b4/Button_category03.png',
'Category',
'{{see more}}\n[[Category:',
']]',
'name',
'mw-editbutton-category');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/3/3b/Button_template_alt.png',
'Modèle',
'{{',
'}}',
'modèle ou page à inclure',
'mw-editbutton-template');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/c/c4/Button_ref.png',
'Référence',
'<ref>',
'</ref>',
'référence, citation ou lien',
'mw-editbutton-ref');
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/6/64/Buttonrefvs8.png',
'Index des références',
'== Notes et références ==\n<references />',
'',
'',
'mw-editbutton-references')