MediaWiki:Common.js

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

/* 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": "https://images.wikia.nocookie.net/__cb20100821183407/bleach/en/images/d/db/U_Accent_Button.png", "speedTip": "Add the ū character", "tagOpen": "ū", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://images.wikia.nocookie.net/inuyasha/images/e/e6/O-macron.png", "speedTip": "Add the ō character", "tagOpen": "ō", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://images.wikia.nocookie.net/central/images/1/16/Button_reflink_alternate.png", "speedTip": "Add a reference", "tagOpen": " ", "sampleText": "Source goes here"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://images.wikia.nocookie.net/central/images/f/f2/Ref_name_button.png", "speedTip": "Cite a named source", "tagOpen": " ", "sampleText": "chapter#"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://images.wikia.nocookie.net/central/images/e/e9/Episode_reference_button.png", "speedTip": "Add an episode reference", "tagOpen": " ", "sampleText": "series#"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://images.wikia.nocookie.net/inuyasha/images/4/4d/Movie_reference_button.png", "speedTip": "Add a movie reference", "tagOpen": " ", "sampleText": "Movie#"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://images.wikia.nocookie.net/central/images/7/74/Button_comment.png", "speedTip": "Comment visible only for editors", "tagOpen": "", "sampleText": "Insert comment here"}; }

/* */