User:RyaNayR/Code/code.js

/** * Code *  By User:AnimatedCartoons */   "use strict";
 * (function ($, mw, window, location, importArticle) {

$(function {        var load = function (s) {                // Translations                window.lng = {                    // English                    en: {                        changes: 'Changes',                        characters: 'characters',                        editing: 'Editing',                        goToLine: 'Go to line',                        load: 'Load',                        minorEdit: 'Minor edit',                        newVersion: 'There is a new version of this code. Would you like to replace the existing code with the new one?',                        no: 'No',                        paste: 'Paste to editor',                        publish: 'Publish',                        publishAs: 'Publish as',                        replace: 'Replace',                        save: 'Save',                        search: 'Search this wiki',                        selectAll: 'Select all', shortcut: 'Shortcuts', showChanges: 'Show changes', summary: 'Summary', unpublished: 'You have made some unpublished edits. Are you sure you want to leave without publishing them?', view: 'View code', yes: 'Yes' },                   // Polish pl: { changes:	'Zmiany', characters:	'znaków', editing:	'Edytowanie', goToLine:	'Idź do linii', load:		'Wczytaj', minorEdit:	'Drobna edycja', newVersion:	'Istnieje nowa wersja tego kodu. Czy chcesz zastąpić istniejący kod nowym?', no:		'Nie', paste:		'Wklej do edytora', publish:	'Publikuj', publishAs:	'Publikuj jako', replace:	'Zastąp', save:		'Zapisz', search:		'Przeszukaj tę wiki', selectAll:	'Zaznacz wszystko', shortcut:	'Skróty', showChanges:	'Pokaż zmiany', summary:	'Opis zmian', unpublished:	'Masz pewne nieopublikowane zmiany. Na pewno chcesz opuścić stronę bez ich zapisywania?', view:		'Zobacz kod', yes:		'Tak' }               };

window.lng = $.extend(window.lng.en, window.lng[mw.config.get('wgUserLanguage')]);

importArticle({                   type: 'script',                    article: 'u:community:User:RyaNayR/Code/' + s + '.js'                }); };

if (mw.config.get('skin') === 'oasis' && [0, 2, 8].indexOf(mw.config.get('wgNamespaceNumber')) !== -1 && mw.config.get('wgAction') === 'view' && !/oldid\=|diff\=/.test(location.href) && !$('.noarticletext, .CodeMirror').length) { if (/\.js$/.test(mw.config.get('wgPageName'))) { load('javascript'); } else if (/\.css$/.test(mw.config.get('wgPageName'))) { load('css'); }       }    }); }(this.jQuery, this.mediaWiki, this, this.location, this.importArticle));