Template:Userbox
id | info |
Purpose
{{Userbox}} — makes a userbox, for information about a user on their user page. It can also be used by other templates to make dedicated userboxs.
Usage
Named parameter method
All parameters are optional, so just typing {{Userbox}} will give what is shown above.
{{Userbox
| border-c =#rrggbb
| border-s = number
| id-c = #rrggbb
| id-s = number
| id-fc = #rrggbb
| info-c = #rrggbb
| info-s = number
| info-fc = #rrggbb
| id = [[Image:Image name|50px]]
| info = Information text }}
Where parameters are:
- border-c is the color of the border expressed as red green blue values (either 3 or 6 hexadecimal digits) or a color name. The default is #999 (or #999999) or the value of id-c if given.
- border-s is the size in pixels of the line that makes the border around the whole box. The default is 1 px.
- id-c is the background color of ID (or logo) side of the box expressed as red green blue values. (either 3 or 6 hexadecimal digits) or a color name. The default is #DDD (or #DDDDDD).
- id-s is the font size of ID (or logo) side of the box expressed in points. The default is 14 pt.
- id-cf is the font color of ID (or logo) side of the box expressed as red green blue values. (either 3 or 6 hexadecimal digits) or a color name. The default is color name black (#000 or #000000).
- info-c is the background color of information side of the box expressed as red green blue values. (either 3 or 6 hexadecimal digits) or a color name. The default is #EEE (or #EEEEEE).
- info-s is the font size of information side of the box expressed in points. The default is 8 pt.
- info-cf is the font color of ID (or logo) side of the box expressed as red green blue values. (either 3 or 6 hexadecimal digits) or a color name The default is color name black (#000 or #000000).
- id can be text, or a link to an image. If an image is used, a small size, such as 50px, should be stated. The default is “ID”.
- info is the text in the information side of the box. The default is “Info”.
Example:
{{Userbox | border-c =#000000 | border-s = 1 | id-c = #444444 | id-s = 14 | id-fc = #000000 | info-c = #00aa99 | info-s = 8 | info-fc = #111188 | id = [[Image:SealLogo1.gif|50px]] | info = Information text }}
gives:
Ordered parameter method
If you do not name the parameters, the template will use them in this order:
- border-c
- info-c
- id
- info
(see above for parameter defaults and meaning)
Example:
{{Userbox|red|#44ffff|[[Image:Rublev Trinity.jpg|50px]]|User has Icons}}
gives: