MediaWiki:Common.js/listStaff.js

/** * __NOWYSIWYG__ * * lists all admins on the wiki * documentation at: http://dev.wikia.com/wiki/ListAdmins * © Peter Coester, 2012 * * Modified by User:Mythrun * List Bureaucrats: * List Administrators: * List Rollback: */ $(function(a){"use strict";if(a(".bureaucrat-list").length||a(".sysop-list").length||a(".rollback-list").length){var b=[];a.getJSON("/api.php?action=query&list=allusers&augroup=bureaucrat&format=json",function(c){if(c.query&&c.query.allusers){for(var d="",e=0;e'+f+""}d.length&&a(".bureaucrat-list").length&&a(".bureaucrat-list").html(""+d+"")}var h=[];a.getJSON("/api.php?action=query&list=allusers&augroup=sysop&format=json",function(c){if(c.query&&c.query.allusers){for(var d="",e=0;e'+f+""}}d.length&&a(".sysop-list").length&&a(".sysop-list").html(""+d+"")}a.getJSON("/api.php?action=query&list=allusers&augroup=rollback&format=json",function(c){if(c.query&&c.query.allusers){for(var d="",e=0;e'+f+""}}d.length&&a(".rollback-list").length&&a(".rollback-list").html(""+d+"</ul>")}})})})}});