Difference between revisions of "Template:Userbox"

From OrthodoxWiki
Jump to: navigation, search
(attempting to port userboxes for language use)
 
m (Purpose: fix sp)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
| 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''}}}}}}}}}
 
| 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>
 
|}</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>

Latest revision as of 17:22, April 28, 2008

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:

SealLogo1.gif Information text



Ordered parameter method

If you do not name the parameters, the template will use them in this order:

  1. border-c
  2. info-c
  3. id
  4. info

(see above for parameter defaults and meaning)

Example:

{{Userbox|red|#44ffff|[[Image:Rublev Trinity.jpg|50px]]|User has Icons}}

gives:

Rublev Trinity.jpg User has Icons