User talk:Snowolf/Archives/201112

RE: Admin statistics on StrategyWiki

Here's the code:

Code
addOnloadHook(test);

function test() {
  var admin = 'Snowolf';
  var dateStart = '2008-01-01T00:00:01Z';
  var dateEnd = '2008-12-31T23:59:59Z';
  var next = dateStart;
  var counter = 0;
  var stopCounter = 0;
  var rowCode = '| '+admin+' || ';

// PATROLS
  while (next != 'stop') {
    queryApi('action=query&list=logevents&letype=patrol&lelimit=max&leuser='+admin+'&lestart='+next+'&leend='+dateEnd+'&ledir=newer', function (leResponse) {
      for (var item in leResponse.query.logevents) {
        if(leResponse.query.logevents[item].patrol.auto == 0) {
          counter++;
        };
      };

      if (leResponse["query-continue"]) {
        next = leResponse["query-continue"].logevents.lestart;
      } else {
        next = 'stop';
      };

    });
  };
  rowCode += counter+' || ';
  counter = 0;

// PROTECTS
  next = dateStart;
  while (next != 'stop') {
    queryApi('action=query&list=logevents&letype=protect&lelimit=max&leuser='+admin+'&lestart='+next+'&leend='+dateEnd+'&ledir=newer', function (leResponse) {
      counter += leResponse.query.logevents.length;

      if (leResponse["query-continue"]) {
        next = leResponse["query-continue"].logevents.lestart;
      } else {
        next = 'stop';
      };

    });
  };
  rowCode += counter+' || ';
  counter = 0;

// DELETES
  next = dateStart;
  while (next != 'stop') {
    queryApi('action=query&list=logevents&letype=delete&lelimit=max&leuser='+admin+'&lestart='+next+'&leend='+dateEnd+'&ledir=newer', function (leResponse) {
      for (var item in leResponse.query.logevents) {
        if(leResponse.query.logevents[item].action == 'delete') {
          counter++;
        };
      };

      if (leResponse["query-continue"]) {
        next = leResponse["query-continue"].logevents.lestart;
      } else {
        next = 'stop';
      };

    });
  };
  rowCode += counter+' || ';
  counter = 0;

// HIDES
  next = dateStart;
  while (next != 'stop') {
    queryApi('action=query&list=logevents&letype=delete&lelimit=max&leuser='+admin+'&lestart='+next+'&leend='+dateEnd+'&ledir=newer', function (leResponse) {
      for (var item in leResponse.query.logevents) {
        if(leResponse.query.logevents[item].action == 'event' || leResponse.query.logevents[item].action == 'revision') {
          counter++;
        };
      };

      if (leResponse["query-continue"]) {
        next = leResponse["query-continue"].logevents.lestart;
      } else {
        next = 'stop';
      };

    });
  };
  rowCode += counter+' || ';
  counter = 0;

// BLOCKS
  next = dateStart;
  while (next != 'stop') {
    queryApi('action=query&list=logevents&letype=block&lelimit=max&leuser='+admin+'&lestart='+next+'&leend='+dateEnd+'&ledir=newer', function (leResponse) {
      for (var item in leResponse.query.logevents) {
        if(leResponse.query.logevents[item].action == 'block') {
          counter++;
        };
      };

      if (leResponse["query-continue"]) {
        next = leResponse["query-continue"].logevents.lestart;
      } else {
        next = 'stop';
      };

    });
  };
  rowCode += counter;
  
  alert(rowCode);
};

function queryApi(query, callback) {
  try {
    var xmlRequest = new XMLHttpRequest();
  } catch(e) {
    try {
      var xmlRequest = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
      try {
      var xmlRequest = new ActiveXObject("Microsoft.XMLHTTP");
      } catch(e) {
        throw "Could not create an XmlHttpRequest";
        }
      }
    }

  xmlRequest.open('POST', wgScriptPath+'/api.php', false);
  xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  xmlRequest.send(query+'&format=json');
  var xmlResponse = new Function("return "+xmlRequest.responseText)();
  if (!xmlResponse) {
    alert('Problem retrieving information');
  } else {
    callback(xmlResponse);
  };
};

and you can get a list of the administrators here by replacing the &aufrom= argument in the URL with the query-continue admin at the bottom of the results, i.e. Gadget850 in the first results.

This script is pretty rough, since I made it as a one-off before we had jQuery and I only use once a year. It can be modified in a variety of ways to make it easier to use, so let me know. The way I use it is to edit a non-existent page like User:Snowolf/test.js then put the admin's username you want to see in the admin variable and hit "Show preview". I'm not sure what level of familiarity you have with JavaScript, so just to be thorough, that means you'd replace your username in the fourth line with the name of the admin between the single quotes. As it is, you're not meant to actually save the .js page. The script returns a wikitext table row in an alert for copy-pasting somewhere.

If you just want to see your own stats, this method is doable—we only have a few administrators on StrategyWiki so I don't mind doing it by hand. If you wanted to see every administrator, or a big list, I could probably do that. Let me know if you have any problems with it (my talk here on Wikipedia is fine), although I'm not an admin, so I can't run the script myself to troubleshoot. Cheers, — Bility (talk) 04:08, 1 December 2011 (UTC)

I forgot to mention also that you have to change the years in the timestamps on the two lines below the admin variable to whichever year you want to run it for. In case you didn't just want to see 2008's stats.  Bility (talk) 04:20, 1 December 2011 (UTC)

Articles you might like to edit, from SuggestBot

We are currently running a study on the effects of adding additional information to SuggestBot’s recommendations. Participation in the study is voluntary. Should you wish to not participate in the study, or have questions or concerns, you can find contact information in the consent information sheet.

We have added information about the opportunity to make substantial valuable contributions to an article using a Low/Medium/High scale which goes from Low   to High      . The score is calculated by combining an article's readership and quality.

SuggestBot predicts that you will enjoy editing some of these articles. Have fun!

Stubs   Cleanup
      Love Like Woe     Alfalfa
      2004 WGC-NEC Invitational         Scott Verplank
      Luxor 5th Passage         Erik Bethke
    VG Holding Corp.   Merge
      Jack Simpson         Off plan property
    Ed Furgol         Closing costs
      Tom Kidd (golfer)       List of The Price Is Right pricing games
      Solar Fields   Add sources
      Carlos Franco         Tommy Armour
      Josh Dean     Batman: Arkham City
      John Saul's Blackstone Chronicles         Infinity Engine
      S.T.A.L.K.E.R. 2   Wikify
      Floodgate Entertainment         Neverwinter Nights: Shadowguard
      John Ball (golfer)         Australian Game Developers Conference
    Fred Herd         Mortgage Investment Corporation
      TaleWorlds   Expand
    Louisy Mathieu       Digimon
      Tick dragging     2011
      Trampling       Final Fantasy: The 4 Heroes of Light

SuggestBot picks articles in a number of ways based on other articles you've edited, including straight text similarity, following wikilinks, and matching your editing patterns against those of other Wikipedians. It tries to recommend only articles that other Wikipedians have marked as needing work. We appreciate that you have signed up to receive suggestions regularly, your contributions make Wikipedia better — thanks for helping!

If you have feedback on how to make SuggestBot better, please let us know on SuggestBot's talk page. Regards from Nettrom (talk), SuggestBot's caretaker. -- SuggestBot (talk) 14:02, 1 December 2011 (UTC)

question re someone nominated for adminship

Hi, I left a message on this user's talkpage and saw your intention to nominate him/her for adminship. Is there anywhere where I could suggest imho that this step might be a bit early as yet? Thanks Manytexts (talk) 06:41, 3 December 2011 (UTC)

Ah, okay, thanks for reply re date -- still too early imho  ;) Manytexts (talk) 23:16, 3 December 2011 (UTC)

You quit deleting my stuff

you gay quit deleting my stuff. i would say worse but this stupid website wont let me — Preceding unsigned comment added by CaVs 4 MaVs (talkcontribs) 20:28, 4 December 2011 (UTC)

Snowolf, I'm watching this one. Banhammer has been taken out of its case and is ready for use. Mjroots (talk) 20:33, 4 December 2011 (UTC)
Noticed, s/he's all yours :) Snowolf How can I help? 20:34, 4 December 2011 (UTC)
i hate you delete my account I DONT CARE!!!!!!!!!!!!!!!!!!!!!!!!!!!! — Preceding unsigned comment added by CaVs 4 MaVs (talkcontribs) 20:35, 4 December 2011 (UTC)
Indeffed  . Mjroots (talk) 20:41, 4 December 2011 (UTC)
Too bad, seemed like such a nice chap :P Snowolf How can I help? 20:42, 4 December 2011 (UTC)

whatever.

You keep kissing up to the abusive right wingers, you boring brainless kiss-ass. — Preceding unsigned comment added by 173.115.28.250 (talk) 21:57, 4 December 2011 (UTC)

I know. Now if you want to reason, I really have no clue what's going on, but whatever legitimate grievance you may have will get ignored if you personally attack those who you disagree with. If you got a point to make it, make it thru reasoning, facts and whatnot, not personal attacks. Snowolf How can I help? 22:01, 4 December 2011 (UTC)

Hubert Sumlin confirmation

https://www.facebook.com/pages/BMA-tours/197898765542

BMA tours It is with deep and profound sadness we confirm the passing of the Legendary Blues Guitarist Hubert Sumlin. Hubert died this morning, December 4, 2012 in Wayne, NJ at St. Joseph's Hospital of heart failure. Hubert was the kindest and most giving man I have ever known. His smile not only lite up a room, it lit up a concert venue with 20,000 people watching. His gift of music is well documented but his gift of life to all of us who knew his was far more significant. I love you and I will miss you my friend. — Preceding unsigned comment added by 76.15.41.72 (talk) 22:02, 4 December 2011 (UTC)

Thanks, feel free to put the death date and such back on the page, just put something on the lines of "per https://www.facebook.com/pages/BMA-tours/197898765542" in the summary so anybody reviewing will understand ;-) Snowolf How can I help? 22:05, 4 December 2011 (UTC)

The Signpost: 05 December 2011

"Incoming attacks"

What do you mean by "incoming attacks" ? [1]. You can reply here. --Supreme Deliciousness (talk) 05:00, 10 December 2011 (UTC)

IRC

Hi, I appreciate your diligence, but it really was me, and I really have forgotten how to use IRC (I was trying to log in to wp-en-admins but just kept getting incorrect username / other error messages). If you could remind me how to use IRC, that would be great. It Is Me Here t / c 13:27, 11 December 2011 (UTC)

Oh I get it. We understood it as you asking for a password reset on-wiki, which is why I thought totally unlikely any admin would ask for :) Unbanned you from there, sorry about the misunderstanding, we've just had some users coming in trolling about password resets yesterday. To get a password reset on irc, ask for in #freenode - see [2]. Snowolf How can I help? 13:32, 11 December 2011 (UTC)

FYI

  Hello. You have a new message at Erikeltic's talk page. Erikeltic (Talk) 03:36, 13 December 2011 (UTC)

The Signpost: 12 December 2011

Articles you might like to edit, from SuggestBot

We are currently running a study on the effects of adding additional information to SuggestBot’s recommendations. Participation in the study is voluntary. Should you wish to not participate in the study, or have questions or concerns, you can find contact information in the consent information sheet.

We have added information about the opportunity to make substantial valuable contributions to an article using a Low/Medium/High scale which goes from Low   to High      . The score is calculated by combining an article's readership and quality.

SOPA

Hi Snowolf, I just vandalized your comment here -- if that's an obnoxious way to alert you/others to the existence of the page, feel free to revert or respond however :) -Pete (talk) 21:22, 13 December 2011 (UTC)

A beer for you!

  Thanks for your recent help. Prost! Erikeltic (Talk) 20:36, 14 December 2011 (UTC)

WP:UWTEST update

Hi Snowolf,

We're currently busy designing some new tests, and we need your feedback/input!

  1. ImageTaggingBot - a bot that warns users who upload images but don't provide adequate source or license information (drafts here)
  2. CorenSearchBot - a bot that warns users who copy-paste text from external websites or other Wikipedia articles (drafts here)

We also have a proposal to test new "accepted," "declined," and "on-hold" templates at Articles for Creation (drafts here). The discussion isn't closed yet, so please weigh in if you're interested.

Thanks for your help! Maryana (WMF) (talk) 02:15, 15 December 2011 (UTC)

Are you a wizard

. — Preceding unsigned comment added by 96.48.165.227 (talk) 09:24, 15 December 2011 (UTC)

Articles you might like to edit, from SuggestBot

We are currently running a study on the effects of adding additional information to SuggestBot’s recommendations. Participation in the study is voluntary. Should you wish to not participate in the study, or have questions or concerns, you can find contact information in the consent information sheet.

We have added information about the opportunity to make substantial valuable contributions to an article using a Low/Medium/High scale which goes from Low   to High      . The score is calculated by combining an article's readership and quality.

SuggestBot predicts that you will enjoy editing some of these articles. Have fun!

Stubs   Cleanup
      Sixth Floor Museum at Dealey Plaza     The Elder Scrolls: Arena
    Willie Smith (golfer)     Shadow the Hedgehog
  Tecanu River         1976 African Cup of Nations
      J. J. Killeen   Merge
      Tony Manero         Incitement to ethnic or racial hatred
      Australian White (sheep)         Volksverhetzung
      2011 Conference USA Football Championship Game         Rha (Cyrillic)
  Eccellenza Abruzzo 2008–09   Add sources
      2002 European Men's Handball Championship       Luke Donald
      Jay Hebert     Seve Ballesteros
      George Sargent (golfer)     Catalonia Government 1992–1995 term of office
    Richard Bolitho, Midshipman   Wikify
      Joe Lloyd       Extended Secondary School
      1998 European Men's Handball Championship         1978 UEFA European Under-21 Football Championship
      Bikeman Island         List of universities in Australia by enrolment
      Osteonectin   Expand
      John the Armenian     Gameplay of The Elder Scrolls series
    John Conroy Hutcheson     Rory McIlroy
      Slither (song)       Water polo at the 2001 World Aquatics Championships – Women's tournament

SuggestBot picks articles in a number of ways based on other articles you've edited, including straight text similarity, following wikilinks, and matching your editing patterns against those of other Wikipedians. It tries to recommend only articles that other Wikipedians have marked as needing work. We appreciate that you have signed up to receive suggestions regularly, your contributions make Wikipedia better — thanks for helping!

If you have feedback on how to make SuggestBot better, please let us know on SuggestBot's talk page. Regards from Nettrom (talk), SuggestBot's caretaker. -- SuggestBot (talk) 14:48, 15 December 2011 (UTC)

Test

Testing section. Snowolf How can I help? 04:37, 18 December 2011 (UTC)

Snowolf How can I help? 04:42, 18 December 2011 (UTC)

Thanks

Much appreciated.... Spartaz Humbug! 13:31, 19 December 2011 (UTC)

  • Well spotted, thanks again. Spartaz Humbug! 16:03, 19 December 2011 (UTC)

Talkback

 
Hello, Snowolf. You have new messages at Cyberpower678's talk page.
Message added 21:29, 19 December 2011 (UTC). You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

cyberpower (X-Mas Chat)(Contrib.) 21:29, 19 December 2011 (UTC)

Talkback

 
Hello, Snowolf. You have new messages at Cyberpower678's talk page.
Message added 21:42, 19 December 2011 (UTC). You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

To stop this, just ask. —cyberpower (X-Mas Chat)(Contrib.) 21:42, 19 December 2011 (UTC)

User:NamSandStorm

Thank you for rectifying that; I had just gotten a message on my talkpage, but you had already taken care of it. My explanation is at the bottom of his page, if you're interested. Thanks again. The Blade of the Northern Lights (話して下さい) 00:03, 21 December 2011 (UTC)

WP:CSD edit request

In G8, can you at least change [[WP:User pages|user pages]] to say [[WP:User pages|user pages]] without a parent page, to at least make it fit what the discussion was for, about making it not be applicable to user pages without a parent page? I'd do it, but the length of the section is too long for me to edit. LikeLakers2 (talk | Sign my guestbook!) 02:24, 21 December 2011 (UTC)

Talkback

 
Hello, Snowolf. You have new messages at LikeLakers2's talk page.
Message added 02:35, 21 December 2011 (UTC). You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

LikeLakers2 (talk | Sign my guestbook!) 02:35, 21 December 2011 (UTC)

A barnstar for you!

  The Anti-Vandalism Barnstar
Your story is cool and I think you are a bro. Lucasoutloud (talk) 02:37, 21 December 2011 (UTC)

Deleting of my content.

Hello there.

Recently you have deleted my content I've put here on wiki. I probably now why, but I just don't know how I can improve it to not be deleted. — Preceding unsigned comment added by FiXcz (talkcontribs) 02:47, 21 December 2011 (UTC)

The Signpost: 19 December 2011

Talkback

 
Hello, Snowolf. You have new messages at La goutte de pluie's talk page.
Message added 00:07, 22 December 2011 (UTC). You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

Toddst1 (talk) 00:07, 22 December 2011 (UTC)

typo?

Re [3] -- seems like you meant "lose-lose"? Nobody Ent (Gerardw) 22:47, 23 December 2011 (UTC)

Merry Christmas!!

File:Feel Like A sir.svg
DEAR SIR! I WISH YOU A MERRY CHRISTMAS.

--Zalgo User:Zalgo/Oh --Zalgo (talk) 01:22, 25 December 2011 (UTC)

The Bugle: Issue LXIX, November 2011

 
Your Military History Newsletter

The Bugle is published by the Military history WikiProject. To receive it on your talk page, please join the project or sign here.
If you are a project member who does not want delivery, please remove your name from this page. Ian Rose (talk) and Ed [talk] [majestic titan] 21:09, 27 December 2011 (UTC)

The Signpost: 26 December 2011

Articles you might like to edit, from SuggestBot

We are currently running a study on the effects of adding additional information to SuggestBot’s recommendations. Participation in the study is voluntary. Should you wish to not participate in the study, or have questions or concerns, you can find contact information in the consent information sheet.

We have added information about the opportunity to make substantial valuable contributions to an article using a Low/Medium/High scale which goes from Low   to High      . The score is calculated by combining an article's readership and quality.

SuggestBot predicts that you will enjoy editing some of these articles. Have fun!

Stubs   Cleanup
      1996 European Men's Handball Championship       Jewish Autonomous Oblast
      Flag of the Green Mountain Boys         Fuzzy Zoeller
      Péndulo Studios, S.L.       Big Oak Tree State Park
      Fifth planet (hypothetical)   Merge
      Mad Season (album)         Neverwinter Nights: Kingmaker (module)
    Jolly Rover         Submarine simulator
    Ysgol Dyffryn Conwy     2.5D
      Pronation   Add sources
      2012 BCS National Championship Game     Minecraft
    Peguis Juniors         Namba Station
      Glitterati (film)     Korfball at the 2009 World Games
    Mark McCumber   Wikify
      Dolwyddelan         DXFramework
      Ulch language     Long Island Interscholastic Athletic League
      Alec Ross     ELECRAMA
      Lord of Souls   Expand
      The Elder Scrolls Adventures: Redguard     Metal Gear Solid: Portable Ops
      Humidistat         Counter-Strike
    Anton Sutterlüty         Mass Effect: Ascension

SuggestBot picks articles in a number of ways based on other articles you've edited, including straight text similarity, following wikilinks, and matching your editing patterns against those of other Wikipedians. It tries to recommend only articles that other Wikipedians have marked as needing work. We appreciate that you have signed up to receive suggestions regularly, your contributions make Wikipedia better — thanks for helping!

If you have feedback on how to make SuggestBot better, please let us know on SuggestBot's talk page. Regards from Nettrom (talk), SuggestBot's caretaker. -- SuggestBot (talk) 13:30, 29 December 2011 (UTC)