coding help

Userbox template

Make your own userboxes! You can use this template or the {{Userbox themed}} variant that has built-in color themes.

Note that any images you upload must be PG and not overly flashy. If you want to use an existing image, check out Category:Icons for ideas.

Accessibility tips

Beauty tips

Courtesy

Note

Our rules apply to any images that you upload.

Admins reserve the right to:

More info

If a parameter doesn't make sense to you, just leave it alone. A few of the ones near the bottom are for special fancy features that you typically don't need.

This code is copied from the Autism Living Wiki.

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Border colorborder-color

Color of border

Example
white, #abc
Unknownsuggested
Left BG colorlogo-bg-color

Background color for left logo area

Example
e.g. lavender, #abc
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
Accessibility
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 BG colorbg-color

Green is #C5D96B, blue is #BBDEE8, pink is #F4C5D0 (default: yellow)

Suggested values
#C5D96B #BBDEE8 #F4C5D0
Example
#BBDEE8
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