746
edits
mNo edit summary |
m (PB2008 moved page User:PB2008/OnlineAdmins.js to MediaWiki:Gadget-OnlineAdmins.js without leaving a redirect) Tags: Mobile edit Mobile web edit |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 87: | Line 87: | ||
}; | }; | ||
if (admins.length > 0) { | if (admins.length > 0) { | ||
var adminsstring = ['<center><p><b>Online | var adminsstring = ['<center><p><b>Online Admin(s)</b></p></center>']; | ||
if (admins.length > 0) { | if (admins.length > 0) { | ||
adminsstring.push('<p style="word-break:break-all;">There are currently ' + admins.length + ' | adminsstring.push('<p style="word-break:break-all;">There are currently ' + admins.length + ' administrator(s) <br> online:'); | ||
$.each(admins, function(i, e) { | $.each(admins, function(i, e) { | ||
adminsstring.push(userlink(e)); | adminsstring.push(userlink(e)); | ||
Line 196: | Line 196: | ||
}; | }; | ||
if (bureaucrats.length > 0) { | if (bureaucrats.length > 0) { | ||
var adminsstring = ['<center><p><b> | var adminsstring = ['<center><p><b>Bureaucrat(s) Online:</b></p></center>']; | ||
if (bureaucrats.length > 0) { | if (bureaucrats.length > 0) { | ||
adminsstring.push('<p style="word-break:break-all;">There are currently ' + bureaucrats.length + ' | adminsstring.push('<p style="word-break:break-all;">There are currently ' + bureaucrats.length + ' bureaucrat(s) <br>online:'); | ||
$.each(bureaucrats, function(i, e) { | $.each(bureaucrats, function(i, e) { | ||
adminsstring.push(userlink(e)); | adminsstring.push(userlink(e)); | ||
Line 218: | Line 218: | ||
'p-personal', | 'p-personal', | ||
'#', | '#', | ||
' | 'Stewards', | ||
't- | 't-onlinesteward', | ||
'Seek help from | 'Seek help from stewards.', | ||
'', | '', | ||
'#pt-userpage' | '#pt-userpage' | ||
Line 314: | Line 314: | ||
mw.notify($(adminsstring.join(''))); | mw.notify($(adminsstring.join(''))); | ||
} else { | } else { | ||
mw.notify('Sorry! There are no | mw.notify('Sorry! There are no stewards online'); | ||
} | } | ||
}).fail(function () { | }).fail(function () { |