From Valve Developer Community
Jump to navigation
Jump to search

Available doc translations
…
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.
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.
|
|
⚧️
This user's gender is Unspecified.
|
{{{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:
⚧️
This user's gender is Unspecified. User:kr0tchet:
♂️
This user's gender is Male.
|
{{{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:
♂️
This user's gender is Male.
Female:
♀️
This user's gender is Female.
|
{{{nocat}}}
|
Prevent the template from adding category. Does not change anything visibly. Only use this if you want to preview the template.
|
|