Template:Shading PVI/doc

This template automatically shades the table cell containing PVI data with the default party shading colors, autocalculates sort values for the given PVI value, and shows it in the form X+n format, where X is the party, and n is the degree of lean.
 * For autocalculating the PVI value, and showing it in the form X+n format, without shading the table cell, use Template:PVI instead.

Usage
Copy and paste the template below:
 * NOTE:Additional table formatting such as rowspan= should be written just before this template, without any bar "|" (see subsection below). The style= tags however do not work (see  subsection below).

For better understanding see Examples & TemplateData below.

TemplateData
{	"params": { "party": { "aliases": [ "1"			],			"label": "Party", "description": "Party name: Use D for Democratic-leaning, R for Republican-leaning & Even for Even districts.", "type": "string", "suggestedvalues": [ "D", "R", "Even" ],			"required": true },		"value": { "aliases": [ "2"			],			"label": "Value", "description": "Denotes the degree of Democratic/ Republican lean. Do not use any symbols before or after the number. Not required to specify for Even districts.", "type": "number", "required": true }	},	"format": "inline" }