Template:U.S. politician abbreviation/doc

Usage
This template generates party and state affiliations for U.S. Senators and Representatives, complete with a non-breaking hyphen. It takes two mandatory parameters, party affiliation and state abbreviation, and one optional parameter for House members, district number, and returns text with a tooltip. Use y to generate links instead of a tooltip. The shortcut can be used.

TemplateData
{	"params": { "1": {			"label": "Party affiliation", "example": "D", "required": true, "description": "One-letter party affiliation of the politician" },		"2": {			"label": "State", "description": "USPS abbreviation of politician's state", "example": "NH", "type": "string", "required": true },		"3": {			"label": "House district number", "example": "47", "type": "number", "suggested": true, "description": "District number for a member of the U.S. House of Representatives" },		"link": { "description": "Provides wikilinks instead of a tooltip", "type": "boolean", "suggested": true, "autovalue": "no" }	},	"paramOrder": [ "1",		"2",		"3",		"link" ],	"description": "Generates party and state affiliations for U.S. Senators and Representatives" }

Examples

 * generates D‑HI
 * generates R‑NH
 * generates D‑CA 47th
 * generates R‑VT ALth
 * generates D‑CA 47th
 * generates I‑WA
 * generates R‑VT ALth