wikis

Userbox template

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

Note that any images you upload must follow our rules. If you want to use an existing image, check out Category:Icons for ideas.

Beauty and accessibility tips

Courtesy

Note

Our rules apply to images you upload for userboxes.

Admins reserve the right to:

Want to add this template to your wiki?

You absolutely can! Initial creator MissLunaRose made this for sharing.

How admins can add CSS for text link color control

For more info, see How I control template link colors with CSS at the Autism Living Wiki.

Text links inside a userbox aren't a good idea unless you can use CSS to control link color. Otherwise, text links may be hard to read in dark and/or light mode.

Want to make it happen? First, you'll need access to the wiki's CSS, which only admins have. Go to both desktop and mobile CSS and paste this:

.dark-links a { color: DarkSlateGray; }

This code creates the "dark-links" class and says that any link within a "dark-links" box will be DarkSlateGray. You can change the "DarkSlateGray" to any HTML-friendly dark color you want, including hex codes and colors from this color list.

You can also make more classes for your userboxes if you want. Here's an example you could copy-paste and play with:

.dark-links a { color: DarkSlateGray; }
.light-blue-links a { color: Azure; }
.navy-links a { color: Navy; }

When you're making a userbox, use the "class" parameter to specify which class you want to use (e.g. "light-blue-links") in a given userbox. Make sure you've done a hard refresh on your browser to see the link coloration take effect.

More info

This is imported and adapted 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
Autism Living Wiki
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

no description

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 CSS classes, if enabled my admins

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