Différences entre les versions de « Utilisateur:Jluc/monobook.js »

De Entre Amis
Aller à : navigation, rechercher
Ligne 9 : Ligne 9 :
 
                         "Chinois : <span>Ǎ ǎ Ě ě Í í Ì ì Ǐ ǐ Ó ó Ò ò Ǒ ǒ Ú ú Ù ù Ǔ ǔ Ǘ ǘ Ǜ ǜ Ǚ ǚ Ǖ ǖ</span>");
 
                         "Chinois : <span>Ǎ ǎ Ě ě Í í Ì ì Ǐ ǐ Ó ó Ò ò Ǒ ǒ Ú ú Ù ù Ǔ ǔ Ǘ ǘ Ǜ ǜ Ǚ ǚ Ǖ ǖ</span>");
 
});
 
});
 +
//============================================================
 +
// Insertion de nouveaux boutons dans la barre d'outils
 +
//============================================================
 +
 +
//Remplit la variable mwCustomEditButtons (voir /skins-1.5/commons/wikibits.js) pour ajouter des boutons à la barre d'outils
 +
function addCustomButton(imageFile, speedTip, tagOpen, tagClose, sampleText)
 +
{
 +
mwCustomEditButtons[mwCustomEditButtons.length] =
 +
{"imageFile": imageFile,
 +
  "speedTip": speedTip,
 +
  "tagOpen": tagOpen,
 +
  "tagClose": tagClose,
 +
  "sampleText": sampleText};
 +
}
 +
 +
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/8/8f/Button_poeme.png','Poésie','<poem>\\n\\n','\\n</poem>','');

Version du 3 janvier 2010 à 20:02

addOnloadHook(function() {
  addSpecialCharset("Japonais", "Ā ā Ē ē Ī ī Ō ō Ū ū ");
});

addOnloadHook(function() {
  addSpecialCharsetHTML("Japonais & Chinois",
                        "Japonais : <span>Ā ā Ē ē Ī ī Ō ō Ū ū</span>" +
                        "<br />" + 
                        "Chinois : <span>Ǎ ǎ Ě ě Í í Ì ì Ǐ ǐ Ó ó Ò ò Ǒ ǒ Ú ú Ù ù Ǔ ǔ Ǘ ǘ Ǜ ǜ Ǚ ǚ Ǖ ǖ</span>");
});
//============================================================
// Insertion de nouveaux boutons dans la barre d'outils
//============================================================
 
//Remplit la variable mwCustomEditButtons (voir /skins-1.5/commons/wikibits.js) pour ajouter des boutons à la barre d'outils
function addCustomButton(imageFile, speedTip, tagOpen, tagClose, sampleText)
{
 mwCustomEditButtons[mwCustomEditButtons.length] =
 {"imageFile": imageFile,
  "speedTip": speedTip,
  "tagOpen": tagOpen,
  "tagClose": tagClose,
  "sampleText": sampleText};
}
 
addCustomButton('http://upload.wikimedia.org/wikipedia/commons/8/8f/Button_poeme.png','Poésie','<poem>\\n\\n','\\n</poem>','');