Template:Userbox gender: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(gonna try creating this template. probably might be controversial.)
 
m (autolang replace)
 
(24 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{doc}}<includeonly><onlyinclude>
{{doc}}{{ulf|en=1|vi=1}}
{{Userbox<!--
<includeonly><onlyinclude><!-- DO NOT ADD ANY NEW AUTOLANG TRANSLATION TO THIS TEMPLATE TO AVOID CODE CLUTTERED. INSTEAD SEE /STRINGS SUBPAGE. -->
    -->| border-c = #ffffff66<!--
{{Userbox<!-- Adding other genders may cause some controversy from other political groups, which they might edit warring or making disputed edits over this template, so having Male or Female, unspecified is enough. VDC is all about helping modders and not for drama-related stuff.
    -->| id      = {{GENDER:{{PAGENAME}}|♂|♀|{{#switch:{{{custom}}}|#default|unspecified=♂/♀/?}}<!--
-->| border-c = #{{#switch:{{{gender}}}|#default|auto={{GENDER:{{#switch:{{{enablecustomname}}}|#default={{PAGENAME}}|yes|true={{{customname}}}}}|5BCEFA<!-- male color -->|F5A9B8<!-- female color -->|CCCCCC<!-- unspecified clr -->}}
    -->| id-s    = background:#ffffff29<!--
|male|Male=5BCEFA
    -->| info-s  = background:#ffffff29<!--
|female|Female=F5A9B8
    -->| info    = {{Autolang|This user gender is {{GENDER:{{PAGENAME}}|Male|Female|{{#switch:{{{custom}}}|#default|unspecified=Unspecified}}.}}<!--
|Unspecified|unspecified=CCCCCC}}66<!--
  -->}}<!--
-->| id      = <font style="font-size: 24px; vertical-align: text-bottom;">'''{{#switch:{{{gender}}}|#default|auto={{GENDER:{{#switch:{{{enablecustomname}}}|#default={{PAGENAME}}|yes|true={{{customname}}}}}|♂️|♀️|⚧️}}
}}<!--
|male|Male=&#010;♂️
|female|Female=&#010;♀️
|Unspecified|unspecified=&#010;⚧️}}'''</font><!--
-->| id-s    = background:#{{#switch:{{{gender}}}|#default|auto={{GENDER:{{#switch:{{{enablecustomname}}}|#default={{PAGENAME}}|yes|true={{{customname}}}}}|5BCEFA|F5A9B8|cccccc}}
|male|Male=5BCEFA
|female|Female=F5A9B8
|Unspecified|unspecified=CCCCCC}}29<!--
-->| info-s  = background:#{{#switch:{{{gender}}}|#default|auto={{GENDER:{{#switch:{{{enablecustomname}}}|#default={{PAGENAME}}|yes|true={{{customname}}}}}|5BCEFA|F5A9B8|cccccc}}
|male|Male=5BCEFA
|female|Female=F5A9B8
|Unspecified|unspecified=CCCCCC}}29<!--
-->| info    = {{#switch: {{language}}|#default = {{Userbox gender/strings|Thisuser}}&nbsp;{{#switch:{{{gender}}}|#default|auto={{GENDER:{{#switch:{{{enablecustomname}}}|#default={{PAGENAME}}|yes|true={{{customname}}}}}|{{Userbox gender/strings|Male}}|{{Userbox gender/strings|Female}}|{{Userbox gender/strings|Unspecified}}}}
|male|Male={{Userbox gender/strings|Male}}
|female|Female={{Userbox gender/strings|Female}}
|Unspecified|unspecified={{Userbox gender/strings|Unspecified}}}}.
}}


-->{{#if:{{{nocat|}}}||{{GENDER:{{PAGENAME}}|[[Category:Male Users]]|[[Category:Female Users]]|{{#if:{{{gender|}}}|{{{gender}}}}}<!--
{{#if:{{{nocat|}}}||
  -->}}}}</onlyinclude></includeonly><!--
{{#switch:{{{gender}}}|#default|auto={{GENDER:{{PAGENAME}}|[[Category:Male Users]]|[[Category:Female Users]]|{{blank}}
|male|Male=[[Category:Male Users|{{Userbox gender/strings|Male_cat}}]]
|female|Female=[[Category:Female Users|{{Userbox gender/strings|Female_cat}}]]
|Unspecified|unspecified={{blank}}}}}}<!--
  -->}}}}</onlyinclude></includeonly>

Latest revision as of 19:04, 5 August 2024

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.

Userbox used for specifying the user's gender.

Note.pngNote: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

Icon-translate.png
This template uses a strings subpage
Please 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.
None
⚧️

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.
{{Banned user|nocat=1}}
English (en)Tiếng Việt (vi)