Template:Type/doc

The Type template and associated sub-templates are used to standardize the way type icons are presented and colors are displayed.

Type
Main template composed of the Type/Icon and Type/Label sub-templates, displaying both. Takes two parameters.
 * First parameter defines the type of icon and label. Defaults to blank space. See next section for appropriate inputs.
 * (Optional) Second parameter defines a second type of icon and label.

Examples:
 * produces
 * produces
 * produces
 * produces

Type/Icon
Sub-template that displays a type icon. Takes two parameters.
 * First parameter defines the type for the icon. Defaults to (empty), which produces blank space.
 * (Optional) Second parameter defines the size of the icon. Requires a first parameter to be set. Defaults to 24x24 pixels.

Type/Color
The Type/Color sub-template that produces a hexadecimal code to be used in design. Takes two parameters.
 * First parameter defines the type for the color. Defaults to (empty), which produces "unset".
 * (Optional) Second parameter defines whether to use the base, "light", or "dark" version of the color. "text" returns font color for use on default background. Defaults to the base color set.

Type/Label
Sub-template that displays a type icon. Takes a single parameter for which type to display. Defaults to (empty), which produces blank space. Colors determined using the above table for Type/Color.

TemplateData
{	"params": { "1": {			"label": "Type", "required": true, "description": "Defines the type of icon and label.", "type": "string", "suggested": true },		"2": {			"label": "Secondary Type", "description": "Defines the secondary type of icon and label.", "type": "string" }	},	"format": "inline", "description": "Used to display a type icon and label.", "paramOrder": [ "1",		"2"	] }