<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Apr 19, 2014 at 9:24 PM, Roan Kattouw <span dir="ltr"><<a href="mailto:roan.kattouw@gmail.com" target="_blank">roan.kattouw@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><span style="color:rgb(34,34,34)">Do you need the gender of the current user, or of another user?</span><br>
</div></div>
<br>
If you need the gender of the current user, all you need to do is<br>
depend on mediawiki.user and mediawiki.jqueryMsg, then just pass<br>
mw.user (the user object) as the parameter to {{GENDER:$1|...}}. If<br>
you need the gender of a different user, I'm not sure that's even<br>
available.</blockquote><div><br></div><div>I need the gender of a different user (the one who uploaded a given image - not even necessarily a user on the same wiki). It is available via the users API, [1] what I need to know is whether it is necessary.</div>
<div><br></div><div><br></div><div>[1] <a href="https://www.mediawiki.org/wiki/API:Users">https://www.mediawiki.org/wiki/API:Users</a></div></div></div></div>