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 |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
$( | $("#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); | |||
}); | |||
}); | }); |
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); }); });