Template:FIPS/sandbox
Appearance
This is the template sandbox page for Template:FIPS (diff). See also the companion subpage for test cases. |
Wikidata has the property:
Template:FIPS displays the specified FIPS state and place codes, with an external link to 2020 United States census population data for the associated place.
Usage
[edit]Places
[edit]{{FIPS|SS|PPPPP}}
- SS is the 2-digit FIPS state code
- PPPPP is the 5-digit FIPS place code
{{FIPS|p=SSCCCPPPPP}}
|p=
is a 10-digit code, where SSCCC is the 5-digit FIPS county code (first two digits are FIPS state code) and PPPPP is the 5-digit FIPS place code
Examples for Amanda (village), Ohio:
- https://data.census.gov/cedsci/profile?g=1600000US3901630
{{FIPS|39|01630}}
→ 39-01630{{FIPS|p=3904501630}}
→ 3904501630
County subdivisions
[edit]{{FIPS|SS|PPPPP|CCC}}
- SS is the 2-digit FIPS state code
- PPPPP is the 5-digit FIPS place code
- CCC is the last 3 digits of the FIPS county code (first two digits are FIPS state code)
{{FIPS|cs=SSCCCPPPPP}}
|cs=
is a 10-digit code, where SSCCC is the 5-digit FIPS county code (first two digits are FIPS state code) and PPPPP is the 5-digit FIPS place code
Examples for Amanda Township, Fairfield County, Ohio
- https://data.census.gov/cedsci/profile?g=0600000US3904501637
{{FIPS|39|01637|045}}
→ 39-01637{{FIPS|cs=3904501637}}
→ 3904501637