Difference between revisions of "Template:FIPS"
Jump to navigation
Jump to search
imported>Zyxw (updates to handle 10-digit codes - see documentation for usage and examples) |
imported>Zyxw m (update parameter name) |
||
| Line 1: | Line 1: | ||
| − | {{#ifeq: {{#invoke:String|len|s={{{ | + | {{#ifeq: {{#invoke:String|len|s={{{cs|}}}}} | 10 |
| − | | [https://factfinder.census.gov/bkmk/table/1.0/en/DEC/10_DP/DPDP1/0600000US{{{ | + | | [https://factfinder.census.gov/bkmk/table/1.0/en/DEC/10_DP/DPDP1/0600000US{{{cs}}} {{{cs}}}] |
| {{#ifeq: {{#invoke:String|len|s={{{p|}}}}} | 10 | | {{#ifeq: {{#invoke:String|len|s={{{p|}}}}} | 10 | ||
Latest revision as of 06:47, 23 May 2019
Template:FIPS displays the specified FIPS state and place codes, with an external link to 2010 United States Census population data for the associated place.
Usage
Places
{{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://factfinder.census.gov/bkmk/table/1.0/en/DEC/10_DP/DPDP1/1600000US3901630
{{FIPS|39|01630}}→ 39-01630{{FIPS|p=3904501630}}→ 3904501630
County subdivisions
{{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://factfinder.census.gov/bkmk/table/1.0/en/DEC/10_DP/DPDP1/0600000US3904501637
{{FIPS|39|01637|045}}→ 39-01637{{FIPS|cs=3904501637}}→ 3904501637
See also
- Federal Information Processing Standards
- Federal Information Processing Standard state code
- American FactFinder
| The above documentation is transcluded from Template:FIPS/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |