MediaWiki:Gadget-OnlineAdmins.js: Difference between revisions

Jump to navigation Jump to search
m
PB2008 moved page User:PB2008/OnlineAdmins.js to MediaWiki:Gadget-OnlineAdmins.js without leaving a redirect
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 Admins</b></p></center>'];
                         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 + ' administrators <br> online:');
                             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>Bureaucrats Online:</b></p></center>'];
                         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 + ' bureaucrats <br>online:');
                             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',
     '#',
     '#',
     'Bureaucrats',
     'Stewards',
     't-onlinebureaucrat',
     't-onlinesteward',
     'Seek help from bureaucrats.',
     '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 steward online');
                         mw.notify('Sorry! There are no stewards online');
                     }
                     }
                 }).fail(function () {
                 }).fail(function () {
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu