Open main menu

OrthodoxWiki β

Changes

Template:Userbox

3,568 bytes added, 17:22, April 28, 2008
m
Purpose: fix sp
| style="font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:4pt; line-height:1.25em; color:{{{info-color|{{{info-fc|black}}}}}};" | {{{info|{{{4|{{{info|''info''}}}}}}}}}
|}</div>
<noinclude>
<br clear="all">
==Purpose==
'''<nowiki>{{Userbox}}</nowiki>''' — makes a userbox, for information about a user on their user page. It can also be used by other [[OrthodoxWiki:Glossary#Template|templates]] to make dedicated userboxs.
 
==Usage==
===Named parameter method===
All parameters are optional, so just typing '''<nowiki>{{Userbox}}</nowiki>''' will give what is shown above.
 
<nowiki> {{Userbox</nowiki><br>
<nowiki> | border-c =</nowiki>''#rrggbb''<br>
<nowiki> | border-s =</nowiki> ''number''<br>
<nowiki> | id-c =</nowiki> ''#rrggbb''<br>
<nowiki> | id-s =</nowiki> ''number''<br>
<nowiki> | id-fc =</nowiki> ''#rrggbb''<br>
<nowiki> | info-c =</nowiki> ''#rrggbb''<br>
<nowiki> | info-s =</nowiki> ''number''<br>
<nowiki> | info-fc =</nowiki>'' #rrggbb''<br>
<nowiki> | id = [[Image:Image name|50px]]</nowiki><br>
<nowiki> | info = Information text }}</nowiki><br>
 
'''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:'''
 
'''<nowiki>{{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 }}</nowiki>'''
 
gives:
 
{{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 }}
 
<br clear="all">
 
===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:'''
 
'''<nowiki>{{Userbox|red|#44ffff|[[Image:Rublev Trinity.jpg|50px]]|User has Icons}}</nowiki>'''
 
gives:
 
{{Userbox|red|#44ffff|[[Image:Rublev Trinity.jpg|50px]]|User has Icons}}
 
<br clear="all">
[[Category:User templates]]</noinclude>