$3 in logentry-rights-rights should support gender. It currently doesn't appear to do so, as it's a link to a user page. If that user page is on another wiki, gender cannot be determined, but if it's on the local wiki, it can be, and should be.
Customize query in gerrit
|mediawiki/core||master||+2 -2||Add GENDER support to $3 in logentry-rights-rights|