Vote button trans.png
April's Project of the Month
It's spring time. It's primary election season!
Click here to find all the information you'll need to cast your ballot.




Template:Codestate

From Ballotpedia
Jump to: navigation, search
Description

Converts 2-letter state code into full state name and optionally makes it a link also. Default is "Unknown".

Usage
{{Codestate|<code>|<addlink=>}}
{{Codestate|<code=>|<addlink=>}}
Parameters
1/code = 2-letter state code (no default)
addlink= Make the state name a link (no value needed)
Examples
{{codestate|CA}}
{{codestate|code=Hi}}
{{codestate|pa}}
{{codestate|SD|addlink=}}
Output
California
Hawaii
Pennsylvania
South Dakota



Template

Unknown