From Valve Developer Community
		
		
		
		
		Jump to navigation
		Jump to search
		
				
				
				
				
				
				|     |  | 
| Line 5: | Line 5: | 
|  |      -->| id-s     = background:#ffffff29<!-- |  |      -->| id-s     = background:#ffffff29<!-- | 
|  |      -->| info-s   = background:#ffffff29<!-- |  |      -->| info-s   = background:#ffffff29<!-- | 
|  |      -->| info     = {{Autolang|This user gender is {{GENDER:{{PAGENAME}}|Male|Female|{{#switch:{{{custom}}}|#default|unspecified=Unspecified}}.}}<!-- |  |      -->| info     = {{Autolang|This user gender is {{GENDER:{{PAGENAME}}|Male|Female|{{#switch:{{{custom}}}|#default|unspecified=Unspecified}}.}} | 
|  |   -->}}<!--
 |  | }} | 
|  | }}<!--
 |  | 
|  | 
 |  | 
 | 
|  | -->{{#if:{{{nocat|}}}||{{GENDER:{{PAGENAME}}|[[Category:Male Users]]|[[Category:Female Users]]|{{#if:{{{gender|}}}|{{{gender}}}}}<!-- |  | -->{{#if:{{{nocat|}}}||{{GENDER:{{PAGENAME}}|[[Category:Male Users]]|[[Category:Female Users]]|{{#if:{{{gender|}}}|{{{gender}}}}}<!-- | 
|  |   -->}}}}</onlyinclude></includeonly><!-- |  |   -->}}}}</onlyinclude></includeonly><!-- | 
		Revision as of 06:22, 25 August 2023

 Available doc translations 
…
 English
 EnglishThis template uses a strings subpagePlease follow the format on this subpage(s) to add translations.
 
Userbox used for specifying the user's gender.
 Note:To change user gender automatically, go to your account Preferences > How do you prefer to be described? > Select Male or Female.
Note:To change user gender automatically, go to your account Preferences > How do you prefer to be described? > Select Male or Female.
Or you can specify it manually below using parameters.Translations
This template uses a strings subpagePlease follow the format on this subpage(s) to add translations.
 
Copy and Paste
{{Userbox gender
| enablecustomname = <yes/true> or <no/false> (default)
| customname    = <username on this wiki, without "User:" part. "enablecustomname" must be enabled first! Example: "Gabe Newell">
| gender = <auto/male/female/unspecified>
}}
Parameters and Examples
| Parameter | Description | Example | Preview | 
| {{{type}}} | Default appearance, gender defaults to unspecified if not specified on User Preferences. Username is set to
 {{PAGENAME}}, aka the user page that you are currently on. |  | {{Userbox| border-c = #ffffff66| id       = {{GENDER:Userbox gender|♂|♀|♂/♀/?| id-s     = background:#ffffff29| info-s   = background:#ffffff29| info     = 
 This template (and its redirect) is  Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template . Once no more pages use this template, it should be Marked for deletion .Additional notes: Use #switch parser function instead. Example  {{#switch: {{language}}| #default = English
 | ja = 日本語
 | zh-tw = 中文(台灣)
 }}
-->
 | 
| {{{enablecustomname}}}and{{{customname}}} | Enable and specify custom username. Most users may not have their gender specified in User Preferences. | | enablecustomname = <yes/true> or <no/false> (default) | User:Gabe Newell: {{Userbox| border-c = #ffffff66| id       = {{GENDER:Userbox gender|♂|♀|♂/♀/?| id-s     = background:#ffffff29| info-s   = background:#ffffff29| info     = 
 This template (and its redirect) is  Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template . Once no more pages use this template, it should be Marked for deletion .Additional notes: Use #switch parser function instead. Example  {{#switch: {{language}}| #default = English
 | ja = 日本語
 | zh-tw = 中文(台灣)
 }}
-->
 User:kr0tchet: 
{{Userbox| border-c = #ffffff66| id       = {{GENDER:Userbox gender|♂|♀|♂/♀/?| id-s     = background:#ffffff29| info-s   = background:#ffffff29| info     =
 This template (and its redirect) is  Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template . Once no more pages use this template, it should be Marked for deletion .Additional notes: Use #switch parser function instead. Example  {{#switch: {{language}}| #default = English
 | ja = 日本語
 | zh-tw = 中文(台灣)
 }}
-->
 | 
| {{{gender}}} | Manually set user gender without changing user preferences, and without specify custom username. By default this is automatic based off user's preferences.
 | | gender = <auto/male/female/unspecified> (default is "auto") | Male: {{Userbox| border-c = #ffffff66| id       = {{GENDER:Userbox gender|♂|♀|♂/♀/?| id-s     = background:#ffffff29| info-s   = background:#ffffff29| info     = 
 This template (and its redirect) is  Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template . Once no more pages use this template, it should be Marked for deletion .Additional notes: Use #switch parser function instead. Example  {{#switch: {{language}}| #default = English
 | ja = 日本語
 | zh-tw = 中文(台灣)
 }}
-->male
 Female: 
{{Userbox| border-c = #ffffff66| id       = {{GENDER:Userbox gender|♂|♀|♂/♀/?| id-s     = background:#ffffff29| info-s   = background:#ffffff29| info     =
 This template (and its redirect) is  Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template . Once no more pages use this template, it should be Marked for deletion .Additional notes: Use #switch parser function instead. Example  {{#switch: {{language}}| #default = English
 | ja = 日本語
 | zh-tw = 中文(台灣)
 }}
-->
 | 
| {{{nocat}}} | Prevent the template from adding category. Does not change anything visibly. Only use this if you want to preview the template. |  |