User:Aaroncampf/global.js

importArticles({   type: "script",    articles: [        "u:dev:AjaxRC/code.js",        "u:dev:FastDelete/code.js",        "u:dev:MarkForDeletion/code.js"    ] });

//*************************************************************************************** // Edit Summary: http://dev.wikia.com/wiki/Standard_Edit_Summary //*************************************************************************************** importArticles({ type: 'script', articles: [    'u:dev:Standard_Edit_Summary/code.js' ]});

// Create the "dev" namespace if it doesn't exist already: //window.dev = window.dev || {}; // Create the sub-namespace for this addon and set some options: window.dev.editSummaries = { css: '#stdSummaries { ... }',    select: 'MediaWiki:StandardEditSummary' }; // The options need to be set before the import! Otherwise they may not work. window.dev = window.dev || {}; window.dev.editSummaries = { css: '#stdSummaries { ... }' };

//window.dev = window.dev || {}; window.dev.editSummaries = { select: [ '(click to browse)', '1.Refactoring', [ 'Cleanup', 'Corrected spelling/grammar' 'Formatting' 'Factual correction' 'HTML tidying' 'Wikifying' 'Corrected template usage' ]       '2.Content', [ 'Updated with new information', 'Expanded' 'Revised' 'Added sources/appearances' 'NPOV' 'Replaced duplicate image(s)' ]       '3.Removal/Reversion', [ 'Reverted vandalism', 'Reverted test edit' 'Reverted vanity edit' 'Removed fanon' 'Removed fanon' 'Removed libel/slander' 'Removed copyvio' ]       '4.Templates', [ 'Added template(s)', 'Added infobox' 'Added disambig template' 'Added quote' 'Added quote' 'Modified quotes' ]       '5.Categories', [ 'Categories', 'Modified category' 'Alphabetised categories' ]   ] };

//*************************************************************************************** // Edit Summary: Ending //***************************************************************************************

//*************************************************************************************** // Visual Editor Custom Buttons: http://community.wikia.com/wiki/Help:Custom_edit_buttons //*************************************************************************************** if ( mwCustomEditButtons ) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT ",		"tagClose": "", "sampleText": "Insert text" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c9/Button_strike.png", "speedTip": "Strike", "tagOpen": " ", "tagClose": " ", "sampleText": "Strike-through text" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/1/13/Button_enter.png", "speedTip": "Line break", "tagOpen": " ", "tagClose": "", "sampleText": "" };	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "Comment visible only for editors", "tagOpen": "", "sampleText": "Insert comment here" }; }	mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/7/74/Button_comment.png", "speedTip": "Comment visible only for editors", "tagOpen": "", "sampleText": "Insert comment here" }; //*************************************************************************************** // Visual Editor Custom Buttons //***************************************************************************************

// OLD WAY - "classic toolbar": mw.toolbar.addButton({       "imageId": "mw-customeditbutton-myspecialbutton",        "imageFile": "http://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Gnome-face-smile.svg/22px-Gnome-face-smile.svg.png",        "speedTip": "Title label",        "tagOpen": "Smile (", "tagClose": ")",       "sampleText": "sample" }); // NEW WAY - "WikiEditor": krInsertWikiEditorButton({       "id": "mw-customeditbutton-myspecialbutton",        "icon": "http://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Gnome-face-smile.svg/22px-Gnome-face-smile.svg.png",        "label": "Title label",        "insertBefore": "Smile (", "insertAfter": ")",       "sampleText": "sample" });