Template:US party balance shading/doc

This template automatically shades the table cell containing party balance data with the default party shading colors, as per whichever party has more members, autocalculates sort values for the given party balance value, and shows it in the mD, nR format, where m, n are the number of members of the parties D and R.

TemplateData
{	"params": { "shading": { "label": "Shading", "description": "Used to override the default shading produced by the template. Can be used when party balance is dominated by independent or third-party members.", "type": "string", "example": "Independent (US), Libertarian, Green" },		"R": { "aliases": [ "2"			],			"label": "Republicans", "description": "Number of Republicans", "type": "number", "default": "0", "suggested": true, "example": "0, 2, 5" },		"D": { "aliases": [ "1"			],			"label": "Democrats", "description": "Number of Democrats", "type": "number", "default": "0", "suggested": true, "example": "0, 2, 5" },		"text": { "label": "Text", "description": "Used to override the default text produced by the template. Can be used when independent or third-party members exist in party balance.", "type": "string", "example": "3D, 1L ; 5R, 2I, 1D ; 2L, 1R" }	},	"paramOrder": [ "D", "R", "shading", "text" ],	"format": "inline" }