MediaWiki:Gadget-OnlineAdmins.js: Difference between revisions

From Test Wiki
Content deleted Content added
find admins > admins (match formatting)
minor changes
Line 87: Line 87:
};
};
if (admins.length > 0) {
if (admins.length > 0) {
var adminsstring = ['<center><p><b>Online Admin(s)</b></p></center>'];
var adminsstring = ['<center><p><b>Online Administrators:</b></p></center>'];


if (admins.length > 0) {
if (admins.length > 0) {
Line 98: Line 98:
mw.notify($(adminsstring.join('')));
mw.notify($(adminsstring.join('')));
} else {
} else {
mw.notify('Sorry! There are currently no administrators online');
mw.notify('Sorry! There are no Administrators online.');
}
}
}).fail(function () {
}).fail(function () {
Line 196: Line 196:
};
};
if (bureaucrats.length > 0) {
if (bureaucrats.length > 0) {
var adminsstring = ['<center><p><b>Bureaucrat(s) Online:</b></p></center>'];
var adminsstring = ['<center><p><b>Online Bureaucrats:</b></p></center>'];
if (bureaucrats.length > 0) {
if (bureaucrats.length > 0) {
adminsstring.push('<p style="word-break:break-all;">There are currently ' + bureaucrats.length + ' bureaucrat(s) <br>online:');
adminsstring.push('<p style="word-break:break-all;">There are currently ' + bureaucrats.length + ' bureaucrat(s) <br>online:');
Line 206: Line 206:
mw.notify($(adminsstring.join('')));
mw.notify($(adminsstring.join('')));
} else {
} else {
mw.notify('Sorry! There are no bureaucrats online');
mw.notify('Sorry! There are no Bureaucrats online.');
}
}
}).fail(function () {
}).fail(function () {
Line 304: Line 304:
};
};
if (stewards.length > 0) {
if (stewards.length > 0) {
var adminsstring = ['<center><p><b>Steward(s) Online:</b></p></center>'];
var adminsstring = ['<center><p><b>Online Stewards:</b></p></center>'];
if (stewards.length > 0) {
if (stewards.length > 0) {
adminsstring.push('<p style="word-break:break-all;">There are currently ' + steward(s).length + ' steward(s) <br>online:');
adminsstring.push('<p style="word-break:break-all;">There are currently ' + steward(s).length + ' steward(s) <br>online:');
Line 314: Line 314:
mw.notify($(adminsstring.join('')));
mw.notify($(adminsstring.join('')));
} else {
} else {
mw.notify('Sorry! There are no stewards online');
mw.notify('Sorry! There are no Stewards online.');
}
}
}).fail(function () {
}).fail(function () {