User:Willscrlt/UBX/Userbox-2

id1 info id2


Purpose

edit

{{User:Willscrlt/UBX/Userbox-2}} — makes a userbox for users to provide information about themselves on their user page. This version has two ID boxes and a center Info area.

This template was copied from the Userbox-2 template available on the English Wikipedia, which may have more usage examples and may have been changed since it was copied.

This is version User:Willscrlt/UBX/Userbox 1.1 of my custom template. The most current version is available from my English Wikipedia account.

Usage

edit

Compact

edit

Using the compact form, you do not use labels; simply include the values in the proper order. All attributes are optional, but you may not skip any attributes prior to the one you want to specify. It is the order of the attributes that is important in this form. Skipping attributes messes up the order and breaks the template.

{{User:Willscrlt/UBX/Userbox-2
 | side-box 1 color
 | main box color
 | ID/icon 1
 | message
 | ID/icon 2
 | border color (defaults to same as side-box 1)
 | side-box 2 color (defaults to same as side-box 1)
}}

Extended

edit

Using the extended form gives you much more control, but you must use labels as shown. All attributes are optional and may appear in any order.

{{User:Willscrlt/UBX/Userbox-2
 |float    = 
 |border-c = border color
 |border-s = border width
 |id1      = side-box 1 content
 |id1-c    = side-box 1 colour
 |id1-s    = side-box 1 font size
 |id1-fc   = side-box 1 font color
 |id1-op   = side-box 1 CSS properties
 |info     = main box content
 |info-c   = main box colour
 |info-s   = main box font size
 |info-fc  = main box font color
 |info-lh  = main box line height
 |info-p   = main box padding
 |info-op  = main box CSS properties
 |id2      = side-box 2 content
 |id2-c    = side-box 2 colour
 |id2-s    = side-box 2 font size
 |id2-fc   = side-box 2 font color
 |id2-op   = side-box 2 CSS properties
}}

Notes

edit
  • If border-c is not specified, id1-c will be used
  • Equal signs ("=") break the compact form. You will have to use the extended form if you include an equal sign.
  • Pipes ("|") characters may break both forms. You may be able to use the {{!}} template or a related template in place of the pipe.
edit
My versions of the templates available here at English Wikispecies
Local versions (if any) of the templates available here at English Wikispecies
Original versions available on the English Wikipedia which include more examples