User:Peaceray/sandbox/Template:Userbox/doc

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.

Nonfree images may not be displayed in userboxes, and are subject to summary removal by any editor without any notice being required.

Sandbox Reminder:

 * Always practice or experiment in the "Template:Userbox/sandbox" or "Template:Userbox/testcases"
 * Once you are satisfied: Copy your code!
 * In your Browser's address bar, change "sandbox" or "testcases" to the name of your new Userbox.
 * Example:
 * CHANGE http://en.wikivoyage.org/wiki/Template:Userbox/sandbox
 * TO http://en.wikivoyage.org/wiki/Template:Userbox/WhateverYourNewBoxNameIs
 * If the name of your new Userbox is taken, create a different name.
 * You will be prompted to Start or Create your new Template Userbox!
 * Paste your code into the space provided.

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.