MediaWiki:Wikia.css

.ve-ui-modeSwitchPopupButtonWidget.oo-ui-widget>.ve-ui-modeSwitchPopupButtonWidget-button { font-size: 15px; } .ve-oasis-header { padding: 2px 0; padding-top: 8px; } .oo-ui-toolbar-bar { padding: 3px; } .ve-ui-summaryPanel { padding: 2px 8px 0; } .ve-ui-summaryPanel-checkboxActionRow { margin: 5px 0; } .ve-ui-summaryPanel-copyrightWarningFooter { font-size: 10px; padding: 0px 18px; } .ve-ui-summaryPanel-copyrightWarningIcon { font-size: 18px; }

body.action-edit .article-with-rail #WikiaRailWrapper, body.action-submit .article-with-rail #WikiaRailWrapper { display: none; } @media only screen and (min-width: 992px) { #editform { display: grid; grid-template-columns: 3fr 1fr; grid-template-areas: "editor options" "editor templates" "edittools templates" "report report"; }	#editform .wikiEditor-ui { grid-area: editor; }	#editform .editOptions { grid-area: options; }	#editform .templatesUsed { grid-area: templates; }	#editform .limitreport { grid-area: report; }	#editform .mw-editTools { grid-area: edittools; } }   margin: 0 10px; padding: 10px; border-radius: 3px !important; border: 1px solid var(--themed-border-color); background-color: var(--themed-page-background--secondary); }   padding: 10px; }	height: 200px; overflow-y: auto; } importArticles({	type: 'script',	articles: [	   'u:dev:MediaWiki:GlobalEditcount/code.js',	] });
 * 1) editform .editOptions {
 * 1) editform .templatesUsed {
 * 1) editform .templatesUsed .mw-editfooter-list {

/* tabber */ .tabbertab { border-top: 2px solid black !important; border-bottom: none !important; border-left: none !important; border-right: none !important; padding:0px !important; } /* add spaces to tabview tabs */ .tabberlive > ul.tabbernav > li { margin-right: 2px; } /* not applying on the last tabview tabs */ .tabberlive > ul.tabbernav > li:last-child { margin-right: 0px; } .tabbernav { background: transparent; border-bottom: none !important; padding: 3px 0 !important; } ul.tabbernav li a { color: black !important; padding: 3px 0.5em !important; margin-left: 0px !important; background: #F8D030 !important; border: 2px solid black !important; font-weight: normal !important; -moz-border-radius-topright: 10px !important; border-top-right-radius: 10px !important; -moz-border-radius-topleft: 10px !important; border-top-left-radius: 10px !important; position: relative; } ul.tabbernav li a:hover{ font-weight: normal !important; background-color: #F8D030 !important; border: 1px solid #FAEBD7 !important; border-bottom: none !important; } ul.tabbernav li:not(.tabberactive):hover { margin: 0 3px 0 1px !important; } ul.tabbernav li.tabberactive a { border: 2px solid black !important; color: #000 !important; font-weight: bold !important; border-bottom: 2px solid black !important; background-color: #f2b850 !important; cursor: default; } ul.tabbernav li.tabberactive a:hover { font-weight: bold !important; background-color: #f2b850 !important; border-color: black !important; border-bottom: 2px solid black !important; } ul.tabbernav li.tabberactive { line-height: 0px !important; } ul.tabbernav li.tabberactive:first-child a { margin-left: 0px !important; } .tabbertab .ajax-poll { border: none !important; } .tabberlive .tabbertab h2, .tabberlive .tabbertab h3 { display:block !important; }

/* DisplayTimer - adds a UTC display clock with purge + null edit function */

/*jslint browser, single, long */ /*global jQuery, mediaWiki */

(function ($, mw) {   'use strict';

// double run protection if ($('#displayTimer, #showdate, #DisplayClockJS, #display-timer').length) { return; }

// default English messages - i18n-js will load other languages async var msg = { purge: 'Clearing server cache for the page…', purgefail: 'Clearing server cache failed', purgesuccess: 'Clearing server cache successful', nulledit: 'Editing the page…', nulleditfail: 'Edit failed', nulleditsuccess: 'Edit successful', tooltip: 'Clear the server cache for this page \nShift + Click: Edit this page without making any changes' };

var clockNode; var updateClockInterval;

function updateClock { clockNode.textContent = new Date.toUTCString.slice(5, -3) + '(UTC)'; }

function stopClock(cancel) { if (cancel) { document.removeEventListener('visibilitychange', startClock); }

clearInterval(updateClockInterval); }

function startClock { stopClock;

if (document.visibilityState === 'visible') { updateClock; updateClockInterval = setInterval(updateClock, 1000); }   }

function nullEditPage { clockNode.textContent = msg.nulledit;

$.post(mw.util.wikiScript('api'), {           action: 'edit',            format: 'json',            title: mw.config.get('wgPageName'),            token: mw.user.tokens.get('csrfToken'),            prependtext: ''        }).always(function (data) {            if (data.edit && data.edit.result === 'Success') {                clockNode.textContent = msg.nulleditsuccess;                location.reload(true);            } else {                clockNode.textContent = msg.nulleditfail;            }        }); }

function purgePage { clockNode.textContent = msg.purge;

$.post(mw.util.wikiScript('api'), {           titles: mw.config.get('wgPageName'),            action: 'purge',            format: 'json'        }).always(function (data) {            if (data.purge && data.purge[0].purged === '') {                clockNode.textContent = msg.purgesuccess;                location.reload(true);            } else {                clockNode.textContent = msg.purgefail;            }        }); }

function clockClick(event) { event.preventDefault;

if (!mw.config.get('wgIsArticle')) { // can't purge/edit if we're not on an article page return; }

stopClock(true);

if (event.shiftKey) { mw.loader.using('mediawiki.util', nullEditPage); } else { mw.loader.using('mediawiki.util', purgePage); }   }

function i18n { // load translations via i18n-js if (!(window.dev && window.dev.i18n && window.dev.i18n.loadMessages)) { mw.loader.load('https://dev.fandom.com/load.php?mode=articles&articles=MediaWiki:I18n-js/code.js&only=scripts'); }

mw.hook('dev.i18n').add(function (i18njs) {           i18njs.loadMessages('DisplayTimer').done(function (i18n) { // update messages object w/ loaded translations Object.keys(msg).forEach(function (key) {                   msg[key] = i18n.msg(key).plain;                });

// update existing tooltip if (clockNode) { clockNode.title = msg.tooltip; }           });        });    }

function main { var $container = $(''); var $clock = $('').on('click', clockClick).attr({           title: msg.tooltip,            href: '?action=purge'        });

clockNode = $clock[0];

switch (mw.config.get('skin')) { case 'oasis': $container.css({               border: 0,                marginInlineStart: 'auto',                order: 1            }).appendTo('.toolbar > .tools'); break; case 'hydra': case 'hydradark': $container = $(' ').addClass('netbar-box right').insertAfter('#netbar .netbar-spacer'); break; default: // vector, monobook, etc.           $container.css('text-transform', 'none').prependTo('#p-personal ul'); }

$container.attr('id', 'displayTimer').css('direction', 'ltr').append($clock);

startClock; document.addEventListener('visibilitychange', startClock); }

$(main); i18n; }(jQuery, mediaWiki)); /** * Name:       EditcountTab * Version:     v1.0 * Author:      KockaAdmiralac <1405223@gmail.com> * Description: Adds a tab to user profile pages linking to their *              edit count. */ (function { var username = $('#UserProfileMasthead h1').text; if (       window.EditcountTabLoaded ||        !$('#WikiaUserPagesHeader').exists ||        // TODO: Fix weird loading order        mw.util.isIPv4Address(username) ||        mw.util.isIPv6Address(username)    ) { return; }   window.EditcountTabLoaded = true; mw.loader.using([       'mediawiki.api',        'mediawiki.util'    ]).then(function {        return new mw.Api.get({ action: 'query', meta: 'allmessages', ammessages: 'editcount', amlang: mw.config.get('wgUserLanguage') });   }).then(function(d) {        var text = d.query.allmessages[0]['*'];        $('#WikiaUserPagesHeader .tabs-container .tabs').append( $('', {               'data-id': 'editcount',                id: 'editcount-tab'            }).append(                $('', { href: mw.util.getUrl('Special:Editcount/' + username), title: text, text: text })           )        );    }); });