Template:Userbox/doc

Usage



 * All parameters are optional.
 * Images should normally be scaled to x45px or less.

Most HTML-based tables use only a handful of these attributes. The following subset can be used to quickly convert an HTML userbox into the format used here:

Microformats

 * bodyclass : This parameter is inserted into the "class" attribute for the userbox as a whole.
 * info-class : This parameter is inserted into the "class" attribute for the info component.

This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag a userbox as containing hCard information about a person, for example, add the following parameter:


 * bodyclass    = vcard

or


 * info-class   = vcard

then (for example):


 * title        = …the books of Iain Banks

...and so forth.

Examples include:


 * - person
 * - group (WikiProject Microformats)
 * - place (Birmingham)

See WikiProject Microformats for more information on adding microformat information to Wikipedia.

Template Data
{ "description": "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.", "params": { "bodyclass": { "label": "bodyclass", "description": "Adds an HTML class attribute to the entire template's HTML table, to allow for styling, emission of microformats, etc.", "type": "string", "default": "", "required": false },"border-c": { "label": "border-c", "description": "border color", "type": "string", "default": "#999", "required": false },"border-s": { "label": "border-s", "description": "border width in pixels", "type": "string", "default": "1", "required": false },"float": { "label": "float", "description": "left|right|none", "type": "string", "default": "left", "required": false },"id": { "label": "id", "description": "id image or text", "type": "string", "default": "", "required": false },"id-a": { "label": "id-a", "description": "id horizontal alignment left/center/right/justify", "type": "string", "default": "center", "required": false },"id-c": { "label": "id-c", "description": "id background color", "type": "string", "default": "#d0d0d0", "required": false },"id-fc": { "label": "id-fc", "description": "id font color", "type": "string", "default": "black", "required": false },"id-h": { "label": "id-h", "description": "id box height in pixels", "type": "string", "default": "45", "required": false },"id-lh": { "label": "id-lh", "description": "id line height", "type": "string", "default": "1.25em", "required": false },"id-op": { "label": "id-op", "description": "id other CSS parameters", "type": "string", "default": "", "required": false },"id-p": { "label": "id-p", "description": "id cell padding", "type": "string", "default": "0 1px 0 0", "required": false },"id-s": { "label": "id-s", "description": "id text size in points", "type": "string", "default": "14", "required": false },"id-w": { "label": "id-w", "description": "id box width in pixels", "type": "string", "default": "45", "required": false },"info-class": { "label": "info-class", "description": "Adds an HTML class attribute to the \"info\" HTML table-row, to allow for styling, emission of microformats, etc.", "type": "string", "default": "", "required": false },"info": { "label": "info", "description": "info text or image", "type": "string", "default": "", "required": false },"info-a": { "label": "info-a", "description": "info horizontal alignment left/center/right/justify", "type": "string", "default": "left", "required": false },"info-c": { "label": "info-c", "description": "info background color", "type": "string", "default": "#e0e0e0", "required": false },"info-fc": { "label": "info-fc", "description": "info font color", "type": "string", "default": "black", "required": false },"info-lh": { "label": "info-lh", "description": "info line height", "type": "string", "default": "1.25em", "required": false },"info-op": { "label": "info-op", "description": "info other CSS parameters", "type": "string", "default": "", "required": false },"info-p": { "label": "info-p", "description": "info padding", "type": "string", "default": "0 4px 0 4px", "required": false },"info-s": { "label": "info-s", "description": "info text size in points", "type": "string", "default": "8", "required": false },"nocat": { "label": "nocat", "description": "block page category declarations (see WP:NOCAT)", "type": "string", "default": "false", "required": false },"usercategory": { "label": "usercategory", "description": "user category (optional)", "type": "string", "default": "", "required": false },"usercategory2": { "label": "usercategory2", "description": "user category (optional)", "type": "string", "default": "", "required": false },"usercategory3": { "label": "usercategory3", "description": "user category (optional)", "type": "string", "default": "", "required": false },"usercategory4": { "label": "usercategory4", "description": "user category (optional)", "type": "string", "default": "", "required": false },"usercategory5": { "label": "usercategory5", "description": "user category (optional)", "type": "string", "default": "", "required": false } }}