This template uses the {{GENDER:username|text if male|text if female|text if unknown}}
magic word to output a user's gender based on what that user has set in their preferences. All parameters are completely optional, however, the username parameter must be specified if this userbox is used outside of the User or User talk namespace.
- name (optional) = Your real name. (replaces "This user" text)
- username (optional/required) = Grab gender data from the preferences of a different username. If it is not specified, the base page name (
{{BASEPAGENAME}}
) will be used. This parameter is only required if it is used outside of the User or User talk namespaces.
- male (optional) = Text to be given if the user has set their gender as "Male" in their preferences.
- female (optional) = Text to be given if the user has set their gender as "Female" in their preferences.
- unknown (optional) = Text to be given if the user has set their gender as "Unknown" in their preferences.