模板:Infobox U.S. congressional district
外觀
![]() | 本模板是以 {{Infobox constituency}} 為基礎的定製資訊框。 |
![]() | 此模板使用Lua語言: |
![]() | 本模板不能替換參照嵌入。 |
This template is used to include lots of statistical information about a United States congressional district in a neat table.
Usage
[編輯]California{{{district number}}}國會選區 | |||
---|---|---|---|
[[File:{{{image name}}}|{{{image width}}}|alt={{{image alt}}}|{{{image alt}}}]] {{{image caption}}} | |||
Member |
| ||
面積 | 123平方英里(320平方公里) | ||
人口({{{population year}}}) | {{{population}}} | ||
住戶收入中位數 | {{{median income}}} | ||
庫克黨派投票指數 | {{{cpvi}}} | ||
設立 | {{{created}}}年 | ||
裁撤 | {{{eliminated}}}年 | ||
存在時間 | {{{years}}} |
Copy and paste the template below:
{{Infobox U.S. congressional district | state = | district number = | image name = | image width = | image caption = | member type = <!-- if position is delegate or resident commissioner --> | representative = <!-- Must be current (already sworn in; still in office). Otherwise leave empty. --> | party = | residence = <!-- name of the city only --> | english area = | metric area = | percent urban = | percent rural = | population = | population year = | median income = | percent white = | percent black = | percent asian = | percent native american = | percent native hawaiian = | percent hispanic = | percent other race = | percent more than one race = | percent blue collar = | percent white collar = | percent gray collar = | cpvi = }}
Usage for Obsolete Congressional Districts
[編輯]Add the following fields to use this template in articles for obsolete congressional districts.
|obsolete = yes<!--this field is required in order for the other fields to display properly. All other fields are optional.--> |created = <!--United States Census year that created the congressional district--> |eliminated = <!--United States Census year that eliminated the congressional district--> |years = <!--Actual calendar years the congressional district existed, in format YYYY-YYYY-->
Notes
[編輯]- Only the state and district number fields are required. All other fields are optional, and the table has logic to display the data correctly even when some fields are missing. (However, if the first field in a category is missing, all fields in that category will be assumed empty. For example, if percent blue collar is missing, any value in percent white collar will be ignored.)
- You should not include units, percent signs (%), or dollar signs ($) in your fields. These are provided for you.
- For obsolete districts, the field obsolete is required, and must be yes in order for the remainder of the fields to display. This ensures that fields unique to obsolete districts will not be displayed on existing congressional districts.
Examples
[編輯]Below are three examples, and what they look like.
Alabama1國會選區 | |||
---|---|---|---|
District map as of 2002 | |||
議員 |
| ||
面積 | 7,182平方英里(18,600平方公里) | ||
城鄉分布 |
| ||
人口(2000) | 635,300 | ||
住戶收入中位數 | 34,739 | ||
種族組成 | |||
階層分布 | |||
庫克黨派投票指數 | R + 12 |
An example with all fields filled in:
{{Infobox U.S. congressional district | state = Alabama | district number = 1 | image name = Alabama1st.JPG | image width = 250 | image caption = District map as of 2002 | english area = 7,182 | metric area = 2,322 | percent urban = 64.4 | percent rural = 35.6 | population = 635,300 | population year = 2000 | median income = 34,739 | percent white = 67.8 | percent black = 28 | percent asian = 1 | percent native american = 1 | percent native hawaiian = 0.05 | percent hispanic = 1.3 | percent other race = 1 | percent more than one race = 1.91 | percent blue collar = 29.7 | percent white collar = 54.5 | percent gray collar = 15.6 | cpvi = R + 12 }}
Alabama1國會選區 | |||
---|---|---|---|
議員 |
| ||
面積 | 7,182平方英里(18,600平方公里) | ||
人口() | 635,300 | ||
住戶收入中位數 | 34,739 |
An example with few fields filled in:
{{Infobox U.S. congressional district | state = Alabama | district number = 1 | image name = Alabama1st.JPG | english area = 7,182 | population = 635,300 | median income = 34,739 }}
Alabama10國會選區 | |
---|---|
已被裁撤的選區 | |
人口(1920) | 170,857 |
設立 | 1910年 |
裁撤 | 1930年 |
存在時間 | 1913-1933 |
An example for an obsolete congressional district:
{{Infobox U.S. congressional district | state = Alabama | district number = 10 | obsolete=yes | created = 1910 | eliminated = 1930 | years = 1913-1933 | population = 170,857 | population year = 1920 }}
Tracking category
[編輯]See also
[編輯]上述文件嵌入自Template:Infobox U.S. congressional district/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |