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.

Parameters edit

  • 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.

Usage edit

Template output Stand alone code
 This user does not want anyone to know what their gender is or hasn't updated their preferences recently.
{{User:UBX/gender}}
 Jimmy Wales does not want anyone to know what their gender is or hasn't updated their preferences recently.
{{User:UBX/gender|username=Jimbo Wales|name=[[Jimmy Wales]]}}
 This user is male.
{{User:UBX/gender|username=Deskana}}
 This user is a dude.
{{User:UBX/gender|username=Deskana|male=is a '''[[dude]]'''|female=is a '''[[girl|chick]]'''}}
 This user is female.
{{User:UBX/gender|Littleb2009}}
 This user is a chick.
{{User:UBX/gender|username=Littleb2009|male=is a '''[[dude]]'''|female=is a '''[[girl|chick]]'''}}
 This user did not care to specify their gender.
{{User:UBX/gender|unknown=did not care to specify their '''[[gender]]'''}}

See also edit