User:DeirdreAnne/custombuttons.js

// // == CUSTOM EDIT BUTTONS ==

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "", "speedTip": "spm", "tagOpen": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png", "speedTip": "Wikipedia link", "tagOpen": 'w:',    "tagClose": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//upload.wikimedia.org/wikipedia/commons/5/56/Button_big.png", "speedTip": "Larger", "tagOpen": '', "tagClose": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "", "speedTip": "Sm ", "tagOpen": '', "tagClose": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "", "speedTip": "f/s ", "tagOpen": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//upload.wikimedia.org/wikipedia/commons/5/5f/Button_center.png", "speedTip": "Centre text", "tagOpen": '', "tagClose": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//upload.wikimedia.org/wikipedia/commons/8/83/Button_biocitas.png", "speedTip": "Author link", "tagOpen": 'Author:',    "tagClose": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png", "speedTip": "Reference", "tagOpen": ' ', "sampleText": ""}; };

// === SMALL CAPS BUTTON === /*duplicate, see below*/ /*if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "", "speedTip": "sc ", "tagOpen": '', "sampleText": ""}; };*/ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "", "speedTip": "hws ", "tagOpen": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "", "speedTip": "hwe ", "tagOpen": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "", "speedTip": "br ", "tagOpen": ' ', "tagClose": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//upload.wikimedia.org/wikipedia/commons/0/06/Tag_green.png", "speedTip": "section begin", "tagOpen": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//upload.wikimedia.org/wikipedia/commons/d/dd/Tag_red.png", "speedTip": "section end", "tagOpen": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "", "speedTip": "pg ", "tagOpen": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "", "speedTip": "bk ", "tagOpen": "",    "tagClose": "", "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "", "speedTip": "A/L ", "tagOpen": '', "sampleText": ""}; }; if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//upload.wikimedia.org/wikipedia/commons/c/cf/Left.png", "speedTip": "Force s/n", "tagOpen": '', "sampleText": ""}; };

// === JUST AN EXAMPLE === /*copied from User:Billinghurst/monobook.js for an example*/ if (isIrishBio) { if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "", "speedTip": "IBr ", "tagOpen": '', "sampleText": ""}; }; }; // === Small Caps button if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "//upload.wikimedia.org/wikipedia/commons/4/4e/Button_romain.png", "speedTip": "Small caps", "tagOpen": '', "sampleText": ""}; }; //