On Sat, Apr 19, 2014 at 9:24 PM, Roan Kattouw <[email protected]> wrote:
Do you need the gender of the current user, or of another user?
If you need the gender of the current user, all you need to do is
depend on mediawiki.user and mediawiki.jqueryMsg, then just pass
mw.user (the user object) as the parameter to {{GENDER:$1|...}}. If
you need the gender of a different user, I'm not sure that's even
available.
"Gergo Tisza" <[email protected]> writes:
> 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.
Maybe not a good solution but a working one: Just assume the user did
not reveal their gender: use the "gender unknown" message variant and
avoid gender processing. Of course, you could make this behavior
depend on a sort of "misermode" switch.
Purodha
_______________________________________________
Mediawiki-i18n mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-i18n