MediaWiki:Common.js/Warnings.js

/* Any JavaScript here will be loaded for all users on every page load. */ (function ($, mwConfig) {   "use strict";    // Spoiler Warning For forms    if (mwConfig.wgAction === 'formedit') {        $('#mw-content-text').prepend(' Do NOT add new video information to the wiki until the entire video is available. ');   }    if (mwConfig.wgNamespaceNumber > 0 && mwConfig.wgNamespaceNumber % 2 === 1 && /\/[Aa]rchive[^\/]*$/.test(mwConfig.wgTitle)) {        $(function ($) { var $editLink; if (mwConfig.skin === 'oasis') { // Remove edit links whilst preserving Rename and Protect $('li > a#ca-edit').parent.remove; $editLink = $('#WikiaPageHeader .wikia-menu-button > a'); if (mwConfig.wgAction === 'edit') { var $n = $('This is an archive, it is NOT a talkpage. Please refrain from editing it without a good reason.'); $('#EditPageEditor .editpage-notices ul').empty.append($n); }           } else { // Monobook $('#ca-addsection').remove; $editLink = $('#ca-edit a'); }           $editLink.removeAttr('href').prop('title', 'This page is an archive and should not be edited.').text('Archive').css('color', '#bbb'); });   } }(jQuery, mediaWiki.config.values));