MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
$("#editcountgo").click(function() { | $("#editcountgo").click(function() { | ||
var urlstring = " | var urlstring = "/api.php?action=query&list=users&usprop=editcount&format=json&ususers="; | ||
urlstring = urlstring + $("#editcountuser").val(); | urlstring = urlstring + $("#editcountuser").val(); | ||
$.get( urlstring, function( data ) { | $.get( urlstring, function( data ) { | ||
alert( | alert(data.query.users[0].editcount); | ||
}); | }); | ||
}); | }); |
Latest revision as of 08:53, 20 January 2021
$("#editcountgo").click(function() { var urlstring = "/api.php?action=query&list=users&usprop=editcount&format=json&ususers="; urlstring = urlstring + $("#editcountuser").val(); $.get( urlstring, function( data ) { alert(data.query.users[0].editcount); }); });