|
|
Ligne 1 : |
Ligne 1 : |
− | /*
| |
− | * Insertion des 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('images/3/3b/Button_template_alt.png',
| |
− | 'Modèle',
| |
− | '{{',
| |
− | '}}',
| |
− | 'modèle à inclure',
| |
− | 'mw-editbutton-template');
| |
− |
| |
− | addCustomButton('images/a/a6/Button_Wikipedia.png',
| |
− | 'Lien Interwiki Wikipedia',
| |
− | '[[wikipedia.fr:',
| |
− | '|]]',
| |
− | 'Page Wikipedia',
| |
− | 'mw-editbutton-Wikipedia');
| |
− |
| |
− | addCustomButton('images/a/ae/Button_fr.png',
| |
− | 'Modèle fr',
| |
− | '{{fr',
| |
− | '}}',
| |
− | '',
| |
− | 'mw-editbutton-fr');
| |
− |
| |
− | addOnloadHook(addCustomButton);
| |