coding help

About

This userbox template works a lot like the regular userbox, but it's easier to specify a premade color scheme. These are based on our wiki colors and will look nice beside other userboxes that use these themes.

Color examples

Default pastel theme
Darker left pastel theme
Dark theme

More info

Userbox where you can pick a color theme

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Box colorcolor

Choose from available colors (default: Yellow)

Suggested values
Blue Gray Green Pink Purple Yellow
Example
Blue
Unknownsuggested
Color themetheme

Pastel, dark, or darker on the left? (Default: Pastel)

Suggested values
Dark Darker left pastel Pastel
Example
Dark
Unknownsuggested
Image on the left (optional)image

If you don't put an image here, you may use text instead.

Unknownsuggested
Image widthwidth

Width of image (default 25px, box size is 45px)

Unknownsuggested
Image link (optional)imagelink

Name of a wiki page to link the image to

Example
Acessibility
Unknownsuggested
Image alt textalt

Not needed for decorative images (i.e., most userbox images). Add very short, concise text if needed for screen readers

Example
Heart, Smile
Unknownoptional
Left logo textlogo

If you aren't using an image, put an emoji or a few letters.

Unknownoptional
Left font size (if using text)logo-size

Default: 14pt

Example
12pt, 16px
Unknownoptional
Left text color (if using text)logo-color

no description

Example
black, #333
Unknownoptional
Right info textinfo

The text on the right side

Example
This user is beautiful
Unknownsuggested
Right info text colorinfo-color

Brown is #943025. (default: black)

Suggested values
white #943025
Example
#943025, #333, black
Unknownsuggested
Right info font sizeinfo-size

Tip: up to 11pt for 2 lines of text; try 12pt for one line of text (default: 10pt)

Example
9pt, 12pt
Unknownsuggested
Special classesclass

Optional special controls like link colors (links are dark by default)

Suggested values
dark-links light-links
Example
light-links
Unknownoptional
Left styleslogo-styles

Special CSS styles for the left logo area

Example
line-height: 20px;
Unknownoptional
Right info stylesinfo-styles

Special CSS styles for the info area

Unknownoptional
CSS filterfilter

Special CSS filter for the image

Suggested values
brightness(200%) brightness(50%) hue-rotate(90deg) contrast(150%)
Example
brightness(200%)
Unknownoptional
For template usage only: Is this a demo?demo

Only relevant for the template namespace. Put "Yes" to override the "List of userbox" category inclusion.

Suggested values
Yes No
Example
Yes
Unknownoptional