User:Who R you?/sandbox28/jurisdiction

Used in the Canadian election result / CANelec template series

Returns the Country, Province/Territory, or City name for the passed code.

Examples:

jurisdiction|CA|type=name  →   Canadian Federal

jurisdiction|ON|type=name  →   Ontario provincial

jurisdiction|AB|type=Title  →   Alberta general

jurisdiction|VAN|type=name  → Vancouver municipal