MediaWiki:Common.js/Usertags.js

Sẽ chỉnh sau / Usertags // Core configuration. We add 2 custom tags and change what the built-in sysop tag says. window.UserTagsJS = { modules: {}, tags: { technician: 'Technician', featured: 'Featured User', wasfeatured: 'Former Featured User', analyst: 'Plant + Zombie Analyst', tenshi: 'Tenshi', technetium: 'Technetium', } }; // Add custom groups to several users UserTagsJS.modules.custom = { 'BLACK OUT': ['technician', 'tenshi'], 'Guppie the Third': ['technician', 'wasfeatured'], 'Emeraldgreeny': ['wasfeatured'], 'Uglyfish63': ['wasfeatured'], 'Milesprower2': ['analyst', 'wasfeatured'], 'MasterNinja321': ['wasfeatured'], 'Logologologol': ['technetium'], 'FlamingoPhoenixFeathers': ['featured'],

}; UserTagsJS.modules.autoconfirmed = true; UserTagsJS.modules.newuser = true; UserTagsJS.modules.inactive = 30; // Inactive if no edits in 30 days UserTagsJS.modules.mwGroups = ['bureaucrat', 'chatmoderator', 'rollback']; // Add bureaucrat group to bureaucrats UserTagsJS.modules.userfilter = { 'John Smith': ['inactive'] // John Smith is never inactive, even when he is }; UserTagsJS.modules.metafilter = { sysop: ['bureaucrat'], rollback: ['bureaucrat'], chatmoderator: ['bureaucrat'] }

importArticle({type:'script', article:'w:c:dev:UserTags/code.js'});