Aller au contenu

Utilisateur:Rhadamante/editbarold.js

Une page de Wikipédia, l'encyclopédie libre.
Note : après avoir enregistré la page, vous devrez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

Mozilla / Firefox / Konqueror / Safari : maintenez la touche Majuscule (Shift) en cliquant sur le bouton Actualiser (Reload) ou pressez Maj-Ctrl-R (Cmd-R sur Apple Mac) ;

Firefox (sur GNU/Linux) / Chrome / Internet Explorer / Opera : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5.
// <nowiki>
$(function() {

  if (['edit', 'submit'].indexOf(mw.config.get('wgAction')) === -1 || !mw.toolbar)
    return;

  $.each([

/******************************/
/*      Boutons standard      */
/******************************/
    [
      '[[', ']]',
      'c/c0/Button_link',
      'lien interne',
      '',
      'mw-editbutton-link2'
    ],
    [
      '#REDIRECT [[', ']]',
      '4/47/Button_redir',
      'Redirection',
      ''
    ],
    [
      '[[Catégorie:', ']]\n',
      'b/b4/Button_category03',
      'Catégorie',
      ''
    ],
    [
      '{{', '}}',
      '9/97/Button_LINKT1',
      'Modèle',
      ''
    ],

    [
      '<math>', '</math>',
      '2/2e/Button_math',
      'Maths',
      ''
    ],
    [
      '<gallery>', '</gallery>',
      'b/b4/Button_gallery_2x2',
      'Galerie',
      ''
    ],
    [
      '<sup>', '</sup>',
      'e/ea/Sup-button-bg',
      'Sup',
      ''
    ],
    [
      '<sub>', '</sub>',
      '3/31/Sub-button-bg',
      'Sub',
      ''
    ],
    [
      '« ', ' »',
      '4/44/Button_comillas_latinas',
      'Guillemet',
      ''
    ],
    [
      '{{Unité/2||e=||}}', '',
      'f/f4/Button_Unite2c',
      'Unité',
      ''
    ],
    [
      '{{Article détaillé|', '}}',
      'd/d3/Button_article_détaillé',
      'Article détaillé',
      ''
    ],
    [
      '<nowiki>', '</nowiki>',
      '8/82/Nowiki_icon',
      'Nowiki',
      ''
    ],
    [
      '<!--', '-->',
      '3/37/Btn_toolbar_commentaire',
      'Commentaire',
      ''
    ],
    [
      '<br />', '',
      '4/49/Button_br_2',
      'Br',
      ''
    ],
    [
      '<ref>', '</ref>',
      'c/c4/Button_ref',
      'référence',
      ''
    ],
    [
      '== Notes et références ==\n\n{{Références}}', '',
      '6/64/Buttonrefvs8',
      'Note et références',
      ''
    ],
    [
      '{{Traduction/Référence|en|TITRE|NUMERO}}', '',
      '2/29/Trad',
      'Traduction',
      ''
    ],
/*********************/
/*      Chimie      */
/********************/
    [
      '<ref name ="GESTIS">{{GESTIS|ZVG= |CAS= |Nom= |Date=}}</ref>', '',
      '6/69/Button_GESTISc',
      'Gestis+',
      ''
    ],
    [
      '<ref name ="GESTIS"/>', '',
      'c/c6/Button_GESTIS_shortc',
      'Gestis-',
      ''
    ],
    [
      '<ref name ="NIST">{{NIST||}}, consulté le</ref>', '',
      '3/3f/Button_NISTc',
      'NIST+',
      ''
    ],
    [
      '<ref name ="NIST"/>', '',
      'b/bc/Button_NIST_shortc',
      'NIST-',
      ''
    ],
    [
      '<ref name ="ChemID">{{ChemID||}}, consulté le</ref>', '',
      'f/f5/Button_ChemIDc',
      'ChemID+',
      ''
    ],
    [
      '<ref name ="ChemID"/>', '',
      '4/4e/Button_ChemID_shortc',
      'ChemID-',
      ''
    ],
    [
      '<ref name ="Acros">{{Acros||Nom=|Date=}}</ref>', '',
      '5/56/Button_ACROS%2B',
      'Acros+',
      ''
    ],
    [
      '<ref name ="Acros"/>', '',
      '6/6e/Button_ACROS-',
      'Acros-',
      ''
    ],
    [
      '<ref name ="Alfa">{{Alfa Aesar|||Date=}}</ref>', '',
      '3/31/Button_alfa%2B',
      'Alfa+',
      ''
    ],
    [
      '<ref name ="Alfa"/>', '',
      'd/d5/Button_alfa-',
      'Alfa-',
      ''
    ],
    [
      '<ref name ="Sigma">{{Sigma-Aldrich|||Nom=|Date=}}</ref>', '',
      'a/a7/Button_sigma%2B',
      'Sigma-Aldrich+',
      ''
    ],
    [
      '<ref name ="Sigma"/>', '',
      'b/b5/Button_sigma-',
      'Sigma-Aldrich-',
      ''
    ],
    [
      '{{Titre mis en forme|C<sub></sub>H<sub></sub>O<sub></sub>}}{{isomérie|nombre=|C=|H=|O=}}', '',
      '7/76/Chh',
      'Chh',
      ''
    ],
    [
      '{{Catégorie chimie}}\n[[Image:| ]]', '',
      'd/d8/Cat.c',
      'Cat chimie',
      ''
    ],

/****************/
/*  Discussion  */
/****************/
    [
      '<s>', '</s>',
      'c/c9/Button_strike',
      'Rayer',
      ''
    ],
    [
      '{{Fait}} \~\~\~\~', '',
      'e/e9/Button_done',
      'Fait',
      ''
    ],
    [
      '\~\~\~\~', '',
      '6/6d/Button_sig',
      'Signature',
      ''
    ]

  ], 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]);
  });

});
// </nowiki>