User:Orthotope/common.js

// User:Ultradude25/editableRollback.js importScript( 'User:Ultradude25/editableRollback.js' );

// Adds Doc + Doc discussion tabs to template pages and change Template + Discussion tabs to always link to the original template + discussion page if ( mw.config.get( 'wgNamespaceNumber' ) === 10 || mw.config.get( 'wgNamespaceNumber' ) === 11 ) { importScript( 'User:Ultradude25/docTabs.js' ); }

mw.loader.localLoad = function (url) { return mw.loader.load ( 'http://www.minecraftwiki.net/index.php?title=' + url + '&action=raw&ctype=text/javascript' ); };

/* Creates a dropdown menu on edit summaries with presets */ if (mw.config.get( 'wgAction' ) === 'edit' || mw.config.get( 'wgAction' ) === 'submit') { var customSummaries = [ '[' + '[Minecraft Forums|go to the forums]]', '[' + '[Project:Wiki Rules#1|Rule#1]]: Violates Minecraft ToU/brand guidelines', '[' + '[Project:Wiki Rules#2|Rule#2]]: Spam', '[' + '[Project:Wiki Rules#2|Rule#2]]: Vandalism', '[' + '[Project:Wiki Rules#3|Rule#3]]: Too simple', '[' + '[Project:Wiki Rules#4|Rule#4]]: Lack of content', '[' + '[Project:Wiki Rules#5|Rule#5]]: Harassment/insult/ad hominem', '[' + '[Project:Wiki Rules#6|Rule#6]]: Not a [' + '[Mojang]]ster', '[' + '[Project:Wiki Rules#7|Rule#7/7.1]]: False info/speculation', '[' + '[Project:Wiki Rules#10|Rule#10/11]]: Server/community advertising', '[' + '[Project:Wiki Rules#13|Rule#13]]: Plagiarism', '[' + '[Project:Wiki Rules#15|Rule#15.1]]: Mod info in vanilla article', '[' + '[Project:Wiki Rules#16|Rule#16]]: Video policy', '[' + '[Project:Wiki Rules#19|Rule#19]]: Herospam', ];   mw.loader.localLoad( 'User:Kanegasi/editsummarypresets.js' ); }