|
|
MediaWiki:Common.js
De La Tour des Héros.
(Différences entre les versions)
|
|
| Ligne 1 : |
Ligne 1 : |
| - | /* Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. */
| |
| | | | |
| - | /**
| |
| - | * 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('boutons/Italique_gras.png',
| |
| - | 'Italique gras',
| |
| - | '\'\'\'\'\'',
| |
| - | '\'\'\'\'\'',
| |
| - | 'Italique gras',
| |
| - | 'mw-editbutton-P1');
| |
| - |
| |
| - | addCustomButton('boutons/Lien_italique_gras.png',
| |
| - | 'Lien italique gras',
| |
| - | '\'\'\'\'\'[[',
| |
| - | ']]\'\'\'\'\'',
| |
| - | 'Lien italique gras',
| |
| - | 'mw-editbutton-P1');
| |
| - |
| |
| - | addCustomButton('boutons/Button_paragraphe_1.png',
| |
| - | 'Police taille 1',
| |
| - | '<font size="1">',
| |
| - | '</font>',
| |
| - | 'Police taille 1',
| |
| - | 'mw-editbutton-P1');
| |
| - |
| |
| - | addCustomButton('boutons/Button_paragraphe_2.png',
| |
| - | 'Police taille 2',
| |
| - | '<font size="2">',
| |
| - | '</font>',
| |
| - | 'Police taille 2',
| |
| - | 'mw-editbutton-P2');
| |
| - |
| |
| - | addCustomButton('boutons/Button_paragraphe_3.png',
| |
| - | 'Police taille 3',
| |
| - | '<font size="3">',
| |
| - | '</font>',
| |
| - | 'Police taille 3',
| |
| - | 'mw-editbutton-P3');
| |
| - |
| |
| - | addCustomButton('boutons/Button_paragraphe_4.png',
| |
| - | 'Police taille 4',
| |
| - | '<font size="4">',
| |
| - | '</font>',
| |
| - | 'Police taille 4',
| |
| - | 'mw-editbutton-P4');
| |
| - |
| |
| - | addCustomButton('boutons/Button_upper_letter.png',
| |
| - | 'Exposant',
| |
| - | '<sup>',
| |
| - | '</sup>',
| |
| - | 'X',
| |
| - | 'mw-editbutton-upper');
| |
| - |
| |
| - | addCustomButton('boutons/Button_strike.png',
| |
| - | 'Rayer',
| |
| - | '<s>',
| |
| - | '</s>',
| |
| - | '',
| |
| - | 'mw-editbutton-strike');
| |
| - |
| |
| - | addCustomButton('boutons/Button_center.png',
| |
| - | 'Centrer',
| |
| - | '<center>',
| |
| - | '</center>',
| |
| - | 'texte centré',
| |
| - | 'mw-editbutton-Center');
| |
| - |
| |
| - | addCustomButton('boutons/Button_head_A2.png',
| |
| - | 'Sous-titre niveau 2',
| |
| - | '\n== ',
| |
| - | ' ==\n',
| |
| - | 'Sous-titre n° 2',
| |
| - | 'mw-editbutton-title3');
| |
| - |
| |
| - | addCustomButton('boutons/Button_head_A3.png',
| |
| - | 'Sous-titre niveau 3',
| |
| - | '\n=== ',
| |
| - | ' ===\n',
| |
| - | 'Sous-titre n° 3',
| |
| - | 'mw-editbutton-title3');
| |
| - |
| |
| - | addCustomButton('boutons/Button_head_A4.png',
| |
| - | 'Sous-titre niveau 4',
| |
| - | '\n==== ',
| |
| - | ' ====\n',
| |
| - | 'Sous-titre n° 4',
| |
| - | 'mw-editbutton-title4');
| |
| - |
| |
| - | addCustomButton('boutons/Button_head_A5.png',
| |
| - | 'Sous-titre niveau 5',
| |
| - | '\n===== ',
| |
| - | ' =====\n',
| |
| - | 'Sous-titre n° 5',
| |
| - | 'mw-editbutton-title5');
| |
| - |
| |
| - | addCustomButton('boutons/Button_category03.png',
| |
| - | 'Catégorie',
| |
| - | '[[Catégorie:',
| |
| - | ']]',
| |
| - | 'nom de la catégorie',
| |
| - | 'mw-editbutton-category');
| |
| - |
| |
| - | addCustomButton('boutons/Button_Clear.png',
| |
| - | 'Anti-chevauchement',
| |
| - | '{{Clr}}',
| |
| - | '',
| |
| - | '',
| |
| - | 'mw-editbutton-Clear');
| |
| - |
| |
| - | addCustomButton('boutons/Button_enter.png',
| |
| - | 'Saut de ligne',
| |
| - | '<br>',
| |
| - | '',
| |
| - | '',
| |
| - | 'mw-editbutton-Enter');
| |
| - |
| |
| - | addCustomButton('boutons/Button_ref.png',
| |
| - | 'Référence',
| |
| - | '<ref>',
| |
| - | '</ref>',
| |
| - | 'référence, citation ou lien',
| |
| - | 'mw-editbutton-ref');
| |
| - |
| |
| - | addCustomButton('boutons/Buttonrefvs8.png',
| |
| - | 'Index des références',
| |
| - | '== Notes et références ==\n<references />',
| |
| - | '',
| |
| - | '',
| |
| - | 'mw-editbutton-references');
| |
| - |
| |
| - | addCustomButton('boutons/Button_template_alt.png',
| |
| - | 'Modèle',
| |
| - | '{{',
| |
| - | '}}',
| |
| - | 'modèle à inclure',
| |
| - | 'mw-editbutton-template');
| |
Version du 13 avril 2009 à 09:47
|