Template

Userbox/doc

< Template:Userbox

Lua error in package.lua at line 80: module 'strict' not found. Lua error in package.lua at line 80: module 'strict' not found.

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-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-row, 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)-->
| nocat         = <!--block page category declarations; see [[w:WP:NOCAT]] (default=false)-->
| usercategory  = <!--user category (optional)-->
| usercategory2 = <!--user category (optional)-->
| usercategory3 = <!--user category (optional)-->
}}
  • All parameters are optional
  • Images should normally be scaled to x45px or less.

Template Data

<TemplateData>{ "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
 }

}}</TemplateData>