Actions

User

Difference between revisions of "MarkHinton/Infobox WPCounty"

From The RadioReference Wiki

< User:MarkHinton
(Created page with "{{#if:{{{lat deg|}}}| {{#if:{{{long deg|}}}| {{coord|{{{lat deg}}}|{{{lat min|0}}}|N|{{{long deg}}}|{{{long min|0}}}|W|type:adm2nd_region:US-{{StateAbbr|{{{state}}}}}|display=tit...")
 
(Blanked the page)
 
Line 1: Line 1:
{{#if:{{{lat deg|}}}| {{#if:{{{long deg|}}}| {{coord|{{{lat deg}}}|{{{lat min|0}}}|N|{{{long deg}}}|{{{long min|0}}}|W|type:adm2nd_region:US-{{StateAbbr|{{{state}}}}}|display=title}} }} }}
+
 
{| class="infobox geography vcard" style="width:23em;"
 
|-
 
|colspan="2" style="width:100%; text-align:center; font-size:1.25em; white-space:nowrap"| '''<span class="fn org">{{{county}}}</span>, <span class="adr"><span class="region">{{{state}}}</span></span>'''
 
|- class="mergedtoprow"
 
{{#if: {{{ex image|}}}|
 
{{!}} colspan="2" {{!}} [[File:{{{ex image}}}|center|{{{ex image size|200}}}px]]<div style="text-align:center"><small>{{{ex image cap|}}}</small></div> }}
 
|- class="mergedtoprow" <!--- flag, seal and logo ---->
 
{{#if:{{{flag|}}}{{{seal|}}}{{{logo|}}}|
 
{{!}} class="maptable" colspan="2" style="text-align:center; padding:0.4em 0" {{!}} <table style="width:100%; background:none"><tr><!--
 
-->{{#if: {{{flag|}}}|<td style="vertical-align:middle" align="center">[[File:{{{flag}}}|{{{flag size|100}}}px|border|Flag of {{{county}}}, {{{state}}}]]<br /><small>'''Flag'''</small></td>}}<!--
 
-->{{#if: {{{seal|}}}|<td style="vertical-align:middle" align="center">[[File:{{{seal}}}|{{{seal size|75}}}px|Seal of {{{county}}}, {{{state}}}]]<br /><small>'''Seal'''</small></td>}}<!--
 
-->{{#if: {{{logo|}}}|{{#ifeq:{{#expr:{{#if:{{{flag|}}}|1|0}}+{{#if:{{{seal|}}}|1|0}}+{{#if:{{{logo|}}}|1|0}}}}|3<!--Show all three images-->|</tr><tr><td colspan=2 style="vertical-align:middle" align="center">|<td style="vertical-align:middle" align="center">}}[[File:{{{logo}}}|{{{logo size|100}}}px|Logo of {{{county}}}, {{{state}}}]]<br /><small>'''Logo'''</small></td>}}<!--
 
--></tr></table>}}
 
|- class="mergedrow"
 
{{#if: {{{motto|}}}|<!-- OLD WAY -->
 
! colspan="2" style="text-align:center" {{!}} [[Motto]]: {{{motto}}} }}
 
|- class="mergedrow"
 
|colspan="2" style="text-align: center;"| [[File:Map of {{{state}}} highlighting {{{county}}}.svg|{{#switch:{{{state}}}|New Hampshire=110|Alabama|Delaware|Mississippi|New Jersey|Vermont=120|Idaho|Illinois|Indiana|Maine|Nevada=130|Ohio=180|200}}px|Map of {{{state}}} highlighting {{{county}}} ]]<br><small>Location in the state of {{#switch:{{{state}}}
 
| Georgia = [[Georgia (U.S. state)|Georgia]]
 
| Washington = [[Washington (U.S. state)|Washington]]
 
| [[{{{state}}}]]}}</small>
 
|- class="mergedbottomrow"
 
|colspan="2" style="text-align: center;" {{!}} [[File:Map of USA {{#switch:{{{state}}}
 
| Alabama = AL.svg
 
| Alaska = AK full.png
 
| Arizona = AZ.svg
 
| Arkansas = AR.svg
 
| California = CA.svg
 
| Colorado = CO.svg
 
| Connecticut = CT.svg
 
| Delaware = DE.svg
 
| Florida = FL.svg
 
| Georgia = GA.svg
 
| Hawaii = HI full.png | Hawai{{okina}}i = HI full.png
 
| Idaho = ID.svg
 
| Illinois = IL.svg
 
| Indiana = IN.svg
 
| Iowa = IA.svg
 
| Kansas = KS.svg
 
| Kentucky = KY.svg
 
| Louisiana = LA.svg
 
| Maine = ME.svg
 
| Maryland = MD.svg
 
| Massachusetts = MA.svg
 
| Michigan = MI.svg
 
| Minnesota = MN.svg
 
| Mississippi = MS.svg
 
| Missouri = MO.svg
 
| Montana = MT.svg
 
| Nebraska = NE.svg
 
| Nevada = NV.svg
 
| New Hampshire = NH.svg
 
| New Jersey = NJ.svg
 
| New Mexico = NM.svg
 
| New York = NY.svg
 
| North Carolina = NC.svg
 
| North Dakota = ND.svg
 
| Ohio = OH.svg
 
| Oklahoma = OK.svg
 
| Oregon = OR.svg
 
| Pennsylvania = PA.svg
 
| Rhode Island = RI.svg
 
| South Carolina = SC.svg | South&nbsp;Carolina = SC.svg
 
| South Dakota = SD.svg
 
| Tennessee = TN.svg
 
| Texas = TX.svg
 
| Utah = UT.svg
 
| Vermont = VT.svg
 
| Virginia = VA.svg
 
| Washington = WA.svg
 
| West Virginia = WV.svg
 
| Wisconsin = WI.svg
 
| Wyoming = WY.svg
 
| ERROR, wrong state name. looking for Map of USA XX.svg where XX is the two-letter abbreviation of the state}} | Map of the USA highlighting {{{state}}}|200px|Map of the U.S. highlighting {{{state}}}]]<br><small>{{{state}}}'s location in the [[United States|U.S.]]</small>
 
|-
 
! {{{founded title|Founded}}} <!-- old way, use "founded". new way: use date, year (and automatically create links-->
 
| {{#if:{{{founded|}}}|{{{founded}}}
 
| {{#if:{{{founded date|}}}| {{{founded date}}}, {{{founded year|}}}
 
| {{#if:{{{founded year|}}}| {{{founded year}}} | ''information needed''}} }} }}
 
|- class="mergedrow"
 
{{#if: {{{named for|}}}|
 
{{!}} '''Named for''' {{!}}{{!}} {{{named for}}}}}
 
|-
 
! [[County seat|{{#ifeq:{{{state}}}|Vermont|Shire Town|Seat}}]]<!-- use old way and new way -->
 
| {{#if:{{{seat|}}}|{{{seat}}}
 
| {{#if:{{{seat wl|}}}|[[{{{seat wl}}}, {{{state}}}|{{{seat wl}}}]]}} }}
 
|- class="mergedrow"
 
{{#if: {{{largest city|}}}|<!-- OLD WAY -->
 
! Largest city
 
{{!}} {{{largest city}}} }}
 
|- class="mergedrow"
 
{{#if: {{{largest city wl|}}}|<!-- NEW WAY; if a user has "largest city" and "largest city wl", they can just correct it-->
 
! Largest {{#if:{{{city type|}}}|{{{city type}}}|city}}
 
{{!}} {{#ifeq: {{{largest city wl}}}|{{{seat wl}}}|{{{largest city wl}}}|[[{{{largest city wl}}}, {{{state}}}|{{{largest city wl}}}]] }} }}
 
|-
 
! Area<br>&nbsp;- Total<br>&nbsp;- Land<br>&nbsp;- Water
 
| <br> {{#if:{{{area_total_sq_mi|}}}|{{formatnum:{{{area_total_sq_mi}}}}}&nbsp;sq&nbsp;mi|{{#if:{{{area_total_km2|}}}|{{formatnum:{{#expr:{{{area_total_km2}}}/ 2.589988110336 round 0}}}}&nbsp;sq&nbsp;mi}} }} {{#if:{{{area_total_km2|}}}|({{formatnum:{{{area_total_km2}}}}}&nbsp;km²)|{{#if:{{{area_total_sq_mi|}}}|({{formatnum:{{#expr:{{{area_total_sq_mi}}}* 2.589988110336 round 0}}}}&nbsp;km²) }}}}<br>{{#if:{{{area_land_sq_mi|}}}|{{formatnum:{{{area_land_sq_mi}}}}}&nbsp;sq&nbsp;mi|{{#if:{{{area_land_km2|}}}|{{formatnum:{{#expr:{{{area_land_km2}}}/ 2.589988110336 round 0}}}}&nbsp;sq&nbsp;mi}} }} {{#if:{{{area_land_km2|}}}|({{formatnum:{{{area_land_km2}}}}}&nbsp;km²)|{{#if:{{{area_land_sq_mi|}}}|({{formatnum:{{#expr:{{{area_land_sq_mi}}}* 2.589988110336 round 0}}}}&nbsp;km²) }}}}<br>{{#if:{{{area_water_sq_mi|}}}|{{formatnum:{{{area_water_sq_mi}}}}}&nbsp;sq&nbsp;mi|{{#if:{{{area_water_km2|}}}|{{formatnum:{{#expr:{{{area_water_km2}}}/ 2.589988110336 round 0}}}}&nbsp;sq&nbsp;mi}} }} {{#if:{{{area_water_km2|}}}|({{formatnum:{{{area_water_km2}}}}}&nbsp;km²)|{{#if:{{{area_water_sq_mi|}}}|({{formatnum:{{#expr:{{{area_water_sq_mi}}}* 2.589988110336 round 0}}}}&nbsp;km²) }}}}, {{{area percentage|}}}
 
|-
 
! Population{{#if:{{{census estimate yr|}}}|<sup>Est.</sup>||}}<br>&nbsp;-&nbsp;{{#if: {{{census yr|}}}|([[{{{census yr}}} United States Census|{{{census yr}}}]])<br>&nbsp;-}}{{#if: {{{census estimate yr|}}}|([[United States Census Bureau|{{{census estimate yr}}}]])<br>&nbsp;-}} Density
 
|<br> {{formatnum:{{{pop|}}}}} <br> {{#if:{{{density_sq_mi|}}}|{{formatnum:{{{density_sq_mi}}}}}/sq&nbsp;mi|{{#if:{{{density_km2|}}}|{{formatnum:{{#expr:{{{density_km2}}}* 2.589988110336 round 0}}}}/sq&nbsp;mi}} }} {{#if:{{{density_km2|}}}|({{formatnum:{{{density_km2}}}}}/km²)|{{#if:{{{density_sq_mi|}}}|({{formatnum:{{#expr:{{{density_sq_mi}}}/ 2.589988110336 round 0}}}}/km²) }}}}
 
|-
 
{{#if: {{{district|}}}|
 
! Congressional district{{#if: {{{district2|}}}|s}}
 
{{!}} {{#switch: {{{state}}}
 
|Texas
 
|Kansas
 
|Illinois
 
|Arkansas
 
|Massachusetts = [[{{{state}}}' {{{district}}} congressional district|{{{district}}}]]
 
|[[{{{state}}}'s {{{district}}} congressional district|{{{district}}}]]
 
}}}}{{#if: {{{district2|}}}|
 
{{#switch: {{{state}}}
 
|Texas
 
|Kansas
 
|Illinois
 
|Arkansas
 
|Massachusetts =, [[{{{state}}}' {{{district2}}} congressional district|{{{district2}}}]]
 
|, [[{{{state}}}'s {{{district2}}} congressional district|{{{district2}}}]]
 
}}}}{{#if: {{{district3|}}}|
 
{{#switch: {{{state}}}
 
|Texas
 
|Kansas
 
|Illinois
 
|Arkansas
 
|Massachusetts =, [[{{{state}}}' {{{district3}}} congressional district|{{{district3}}}]]
 
|, [[{{{state}}}'s {{{district3}}} congressional district|{{{district3}}}]]
 
}} }}
 
|-
 
{{#if: {{{time zone|}}}|
 
! [[Time in the United States|Time zone]]
 
{{!}} {{#switch:{{{time zone}}}
 
| Eastern = [[Eastern Time Zone|Eastern]]: [[Coordinated Universal Time|UTC-5]]/[[Daylight saving time|-4]]
 
| Central = [[Central Time Zone (North America)|Central]]: [[Coordinated Universal Time|UTC-6]]/[[Daylight saving time|-5]]
 
| Mountain = {{#ifeq:{{{state}}}|Arizona|[[Mountain Time Zone|Mountain]]: [[Coordinated Universal Time|UTC-7]]|[[Mountain Time Zone|Mountain]]: [[Coordinated Universal Time|UTC-7]]/[[Daylight saving time|-6]]}}
 
| Pacific = [[Pacific Time Zone|Pacific]]: [[Coordinated Universal Time|UTC-8]]/[[Daylight saving time|-7]]
 
| Alaska = [[Alaska Time Zone|Alaska]]: [[Coordinated Universal Time|UTC-9]]/[[Daylight saving time|-8]]
 
| Hawaii = [[Hawaii-Aleutian Time Zone|Hawaii-Aleutian]]: [[Coordinated Universal Time|UTC-10]]
 
| {{{time zone}}} : {{{UTC offset|}}}/{{{DST offset|}}}
 
}} }}
 
|-
 
{{#if: {{{web|}}}|
 
{{!}} '''Website'''  {{!}}{{!}} <span class="url">[http://{{{web}}} {{{web}}}]</span>}}
 
|-
 
<!----- footnotes ----->
 
{{#if: {{{footnotes|}}}|
 
{{!}} colspan="2" {{!}} <small>'''Footnotes:''' {{{footnotes}}}</small> }}
 
|}<!--Add the category automatically, except for some states-->{{cat handler
 
|main={{#switch:{{{state}}}
 
  |Alaska=[[Category:Alaska boroughs]]
 
  |Georgia=[[Category:Georgia (U.S. state) counties]]
 
  |Louisiana=[[Category:Louisiana parishes]]
 
  |Washington=[[Category:Washington (state) counties]]
 
  |[[Category:{{{state}}} counties]]
 
}}
 
}}<noinclude>
 
{{documentation}}
 
</noinclude>
 

Latest revision as of 19:21, 1 October 2011