imported>Allexx.Sn |
|
(не показаны 2 промежуточные версии 1 участника) |
Строка 1: |
Строка 1: |
| /* Special User Statuses */ | | /* Здесь расположен JS-код вики */ |
| function addMastheadTags() {
| |
| var rights = {};
| |
|
| |
| rights["FRAER"] = ["БЮРОКРАТ", "АДМИНИСТРАТОР"],
| |
| rights["-Falcon-"] = ["АДМИНИСТРАТОР", "SOCIAL"],
| |
| rights["Ассистент"] = ["ОТКАТЧИК"],
| |
| rights["САМТ"] = ["БОТ"];
| |
|
| |
| if (wgCanonicalSpecialPageName == "Contributions") {
| |
| var user = wgPageName.substring(wgPageName.lastIndexOf("/") + 1).replace(/_/g, " ");
| |
| } else {
| |
| var user = wgTitle;
| |
| }
| |
|
| |
| if (typeof rights[user] != "undefined") {
| |
| $('.UserProfileMasthead .masthead-info span.tag').remove();
| |
|
| |
| for(var i = 0, len = rights[user].length; i < len; i++) {
| |
| $('<span class="tag" span style="margin-left: 10px !important">' + rights[user][i] + '</span>').appendTo('.masthead-info hgroup');
| |
| }
| |
| }
| |
| };
| |
|
| |
| $(function() {
| |
| if ($('#UserProfileMasthead')) {
| |
| addMastheadTags();
| |
| }
| |
| });
| |
| | |
| | |
| | |
| /* Inactive User Statuses */
| |
| //Inactive users
| |
| InactiveUsers = {
| |
| months: 1,
| |
| text: 'НЕАКТИВЕН'
| |
| };
| |
|
| |
| importScriptPage('InactiveUsers/code.js', 'dev');
| |