MediaWiki:Common.js

/* */ /* Recent Changes Auto Refresh */ importScriptPage( 'AjaxRC/code.js', 'dev' );

/* Include Global Anime-Common.js Information */ importScriptURI('http://anime.wikia.com/index.php?title=MediaWiki:Anime-Common.js&action=raw&ctype=text/javascript&dontcountme=s&smaxage=86400&templates=expand');

/* Resolves conflict between icons and page header bottom border * by: User:The 888th Avatar */

$(document).ready(function {   if (skin == "oasis" || skin == "wikia") {        $('.WikiaPageHeader').append($('#icons'));    } });

/* Substitute Template:Fair use rationale into upload page. BEGINNING: JavaScript for placing the fair use rationale template inside the summary box on Special:Upload. Code by "wikipedia:User:Pinky49", created and coded specifically for Duty & Valour. */ function FairUseRationale { if((wgPageName == 'Special:Upload') && document.getElementById('wpDestFile').value == '') { document.getElementById('wpUploadDescription').value = ''; } } addOnloadHook(FairUseRationale); // ****** END: JavaScript for Special:Upload ******

//edit buttons if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/__cb20100821183407/bleach/en/images/d/db/U_Accent_Button.png", "speedTip": "Add the ū character", "tagOpen": "ū", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/inuyasha/images/e/e6/O-macron.png", "speedTip": "Add the ō character", "tagOpen": "ō", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/1/16/Button_reflink_alternate.png", "speedTip": "Add a reference", "tagOpen": " ", "sampleText": "Source goes here"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/inuyasha/images/f/f5/Reference_name_button.png", "speedTip": "Cite a named source", "tagOpen": " ", "sampleText": "chapter#"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/inuyasha/images/e/e9/Episode_reference_button.png", "speedTip": "Add an episode reference", "tagOpen": " ", "sampleText": "series#"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/inuyasha/images/4/4d/Movie_reference_button.png", "speedTip": "Add a movie reference", "tagOpen": " ", "sampleText": "Movie#"}; 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"}; }

/* */