Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Jump to content

Template:Userbox

Permanently protected template
From Meta, a Wikimedia project coordination wiki
{{{info}}}
Template documentation

Usage

{{Userbox
| bodyclass     = <!--Adds an HTML class attribute to the entire template's HTML table, to allow for styling, emission of microformats, etc.-->
| border-c      = <!--border color (default=id-c)-->
| border-s      = <!--border width in pixels (default=1)-->
| float         = <!--left|right|none (default=left)-->
| id            = <!--id image or text (standard height=x45px)-->
| id-class      = <!--Adds an HTML class attribute to the "id" HTML table cell, to allow for styling, emission of microformats, etc.-->
| id-a          = <!--id horizontal alignment left/center/right/justify (default=center)-->
| id-c          = <!--id background color (default=#d0d0d0)-->
| id-fc         = <!--id font color (default=black)-->
| id-h          = <!--id box height in pixels (default=45)-->
| id-lh         = <!--id line height (default=1.25em)-->
| id-op         = <!--id other CSS parameters-->
| id-p          = <!--id cell padding (default=0 1px 0 0)-->
| id-s          = <!--id text size in points (default=14)-->
| id-w          = <!--id box width in pixels (default=45)-->
| info-class    = <!--Adds an HTML class attribute to the "info" HTML table cell, to allow for styling, emission of microformats, etc.-->
| info          = <!--info text or image-->
| info-a        = <!--info horizontal alignment left/center/right/justify (default=left)-->
| info-c        = <!--info background color (default=#e0e0e0)-->
| info-fc       = <!--info font color (default=black)-->
| info-lh       = <!--info line height (default=1.25em)-->
| info-op       = <!--info other CSS parameters-->
| info-p        = <!--info padding (default=0 4px 0 4px)-->
| info-s        = <!--info text size in points (default=8)-->
| usercategory  = <!--user category (optional)-->
| usercategory2 = <!--user category (optional)-->
| usercategory3 = <!--user category (optional)-->
| nocat         = <!--block page category declarations; see [[w:WP:NOCAT]] (default=false)-->
}}
  • All parameters are optional
  • Images should normally be scaled to x45px or less.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.

TemplateData for Userbox

This template can be used to quickly create a userbox for display on a user's user page without having to know HTML or Wikitable syntax.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Body – Class Attributebodyclass

Adds an HTML class attribute to the entire template’s HTML table, to allow for styling, emission of microformats, etc.

Stringoptional
Body – Border Colorborder-c

border color

Default
#999
Stringoptional
Body – Border Widthborder-s

border width in pixels

Default
1
Numberoptional
Body – Floatfloat

left|right|none

Suggested values
left right none
Default
left
Stringoptional
IDid

id image or text

Linesuggested
ID – Class Attributeid-class

Adds an HTML class attribute to the “id” HTML table cell, to allow for styling, emission of microformats, etc.

Stringoptional
ID – Background Colorid-c

id background color

Default
#D0D0D0
Stringoptional
ID – Text Colorid-fc

id font color

Default
black
Stringoptional
ID – Box Heightid-h

id box height in pixels

Default
45
Numberoptional
ID – Box Widthid-w

id box width in pixels

Default
45
Numberoptional
ID – Paddingid-p

id cell padding

Default
0 1px 0 0
Stringoptional
ID – Text Sizeid-s

id text size in points

Default
14
Numberoptional
ID – CSS line-heightid-lh

id line height

Default
1.25em
Stringoptional
ID – Horizontal Alignmentid-a

id horizontal alignment left/center/right/justify

Default
center
Stringoptional
ID – Other CSS Parametersid-op

id other CSS parameters

Stringoptional
Infoinfo

info text or image

Contentrequired
Info – Class Attributeinfo-class

Adds an HTML class attribute to the “info” HTML table cell, to allow for styling, emission of microformats, etc.

Stringoptional
Info – Background Colorinfo-c

info background color

Default
#E0E0E0
Stringoptional
Info – Text Colorinfo-fc

info font color

Default
black
Stringoptional
Info – Paddinginfo-p

info padding

Default
0 4px 0 4px
Stringoptional
Info – Text Sizeinfo-s

info text size in points

Default
8
Numberoptional
Info – CSS line-heightinfo-lh

info line height

Default
1.25em
Stringoptional
Info – Horizontal Alignmentinfo-a

info horizontal alignment left/center/right/justify

Suggested values
left center right justify
Default
left
Stringoptional
Info – Other CSS Parametersinfo-op

info other CSS parameters

Stringoptional
User Category 1usercategory

user category (optional)

Stringoptional
User Category 2usercategory2

user category (optional)

Stringoptional
User Category 3usercategory3

user category (optional)

Stringoptional
No Category?nocat

block page category declarations (see WP:NOCAT)

Booleanoptional