How do I find out how many edits a user has for my MediaWiki extension?
问题 I'm writing an extension that will allow me to add the magic words: CURRENTUSER , CURRENTUSERREALNAME , CURRENTUSERLANGABBR , CURRENTUSERGROUPS , and now I want to add CURRENTUSEREDITCOUNT and CURRENTUSEREDITCOUNTALL . That section of my code is currently: function wfGetCustomVariable(&$parser,&$cache,&$index,&$ret) { switch ($index) { case MAG_CURRENTUSER: $parser->disableCache(); # Mark this content as uncacheable $ret = $GLOBALS['wgUser']->getName(); break; case MAG_CURRENTUSERREALNAME: