Template:UserGenderBox

From Inkipedia, the Splatoon wiki

Template invocation of Module:UserGenderBox.

Displays a userbox regarding a user's gender identity or pronouns.

This module passes arguments to Module:Userbox after helpfully switching based on the first parameter.


Usage

Parameters

Parameter Type Status Description
identifier Named or unnamed (first positional) Optional, defaults to "" The identifier that the module should use. Pre-defined ones are:
  • male or boy
  • female or girl
  • nb or nonbinary or non-binary
  • trans or transgender

Otherwise, if the identifier contains a '/', and gender is not set, then the box assumes this is a pronoun(s).
Otherwise, the box prefixes the identifier with "This user is "

gender Named or unnamed (second positional) Optional The gender to use. If identifier is set above, you need not set this. You could set this for a more specific gender, e.g. calling {{UserGenderBox|trans|transmasc}}.

If text is set, this parameter does nothing.

text Named only Optional Fully overrides the box text.
punctuation Named only Optional, defaults to . Prefixes the text with the punctuation. By default this is a period however some users have changed this to !.

If text is set, this parameter does nothing.

genderColor Named only Optional, defaults to "inherit" Customizes the gender's color with the given color. Typical CSS rules apply, e.g. use #ABC123, rbg(50, 100, 150), or pink etc.

For additional parameters, see Module:Userbox. All parameters there are also valid for this module.


Examples

Markup

* {{UserGenderBox}}
* {{UserGenderBox|male}}
* {{UserGenderBox|female}}
* {{UserGenderBox|nb|genderColor=darkorchid}}
* {{UserGenderBox|trans}}
* {{UserGenderBox|transgender|transfem|genderColor=#F5A9B8|id-c=white|info-c=white|punctuation=!}}
* {{UserGenderBox|she/they}}
* {{UserGenderBox|they/<br>them|text=This user is non-binary!}}
* {{UserGenderBox|It|text=This user only uses it/its pronouns}}

Output

?This user keeps their gender a mystery.
MaleUser.svgThis user is male.
FemaleUser.svgThis user is female.
Non-binaryUser.svgThis user is non-binary.
Trans flag square.svgThis user is trans.
Trans flag square.svgThis user is transfem!
she/theyThis user uses she/they pronouns.
they/
them
This user is non-binary!
itThis user only uses it/its pronouns