Difference between revisions of "Template:UB Gender"
From Nookipedia, the Animal Crossing wiki
(fix filename) |
PanchamBro (talk | contribs) (removing template's reliance on the Variables extension) |
||
(11 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{userbox | {{userbox | ||
− | | border-c = {{#switch: {{{1| | + | | border-c = {{#if:{{{color1|}}}|{{{color1|}}}|{{#switch: {{lc:{{{1|}}}}}|female=#db7093|male=#4169e1|#default=#8580a2}}}} |
− | | | + | | id = {{{2|{{#switch:{{lc:{{{1|}}}}} |
− | | | + | |female=[[File:Player {{{num|6}}} NH.png{{!}}x40px]] |
− | | id = {{{2|{{#switch: {{{1| | + | |male=[[File:Player {{{num|1}}} NH.png{{!}}x40px]] |
− | | | + | |#default={{#if:{{{num|}}}|[[File:Player {{{num|1}}} NH.png{{!}}x40px]]|[[File:Rover Series Art 2D.png{{!}}x42px]]}}}}}}} |
− | | | + | | id-c = {{#if:{{{color1|}}}|{{{color1|}}}|{{#switch: {{lc:{{{1|}}}}}|female=#db7093|male=#4169e1|#default=#8580a2}}}} |
− | | id-c = {{#switch: {{{1| | + | | info = This user's gender is {{#switch:{{lc:{{{1|}}}}}|male=male|female=female|#default={{{1|undisclosed}}}}}. |
− | | | + | | info-c = {{#if:{{{color2|}}}|{{{color2|}}}|{{#switch: {{lc:{{{1|}}}}}|female=#ffb6c1|male=#6495ed|#default=#bfb7e8}}}} |
− | | | ||
− | | info = This user is {{#switch: {{{1| | ||
− | | | ||
− | | | ||
− | | info-c = {{#switch: {{{1| | ||
− | | | ||
− | | | ||
}}<noinclude> | }}<noinclude> | ||
− | {{ | + | {{clear}}<br>{{Documentation}} |
− | |||
− | |||
− | |||
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
[[Category:Userboxes]]</noinclude> | [[Category:Userboxes]]</noinclude> |
Latest revision as of 13:00, November 1, 2022
Template documentation (view)
Usage
Base
{{UB Gender|<Gender>}}
Customization
This userbox accepts and displays any gender value entered. It will display pre-defined colors for the following inputs:
- Female
- Male
The border and image background color can be customized using the color1
parameter. (example: color1=#bfb7e8
)
The text background color can be customized using the color2
parameter. (example: color2=#8580a2
)
Additionally, the image displayed in this userbox may be customized:
- By assigning the
num
parameter a value from 1 to 10 to cycle through New Horizons player images. - By entering a custom image code as the second input. (example:
{{UB Gender|Genderless|[[File:Player 1 NH.png|20px]]}}
)
Examples
{{UB Gender|undisclosed}} |
{{UB Gender|female}} |
{{UB Gender|male}} |
{{UB Gender|non-binary|num=10|color1=#7e21c9|color2=#fff94c}} |