Difference between revisions of "Template:Infobox U.S. County"

From FamilySearch Wiki
Jump to: navigation, search
(change county map to parameter)
(change state map to parameter)
Line 12: Line 12:
 
| Georgia = [[Georgia (U.S. state)|Georgia]]
 
| Georgia = [[Georgia (U.S. state)|Georgia]]
 
| [[{{{state|}}}]]}}
 
| [[{{{state|}}}]]}}
|- <!-- It seems that the U.S. maps that show one state highlighted are named "Map of USA MD.svg" (for Maryland, as an example. This switch statement looks at the state name and replaces it with the two-letter abbreviation. This way, we can simply call "Map of USA {{Switch for state}} without having to manually update every county's page. User:Timneu22 February 18 -->
+
|-  
|colspan="2" style="text-align: center;" {{!}} [[Image:Map of USA {{#switch:{{{state}}}
+
|colspan="2" style="text-align: center;" {{!}} [[Image:{{{state_map}}}{{!}} Map of the USA highlighting {{{state}}}{{!}}200px{{!}}Map of the U.S. highlighting {{{state}}}]]<br>{{{state}}}'s location in the [[United States|U.S.]]
| 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>{{{state}}}'s location in the [[United States|U.S.]]
+
 
|-
 
|-
 
| colspan="2" style="text-align: center; background:#E0E0E0;" | '''Statistics'''
 
| colspan="2" style="text-align: center; background:#E0E0E0;" | '''Statistics'''

Revision as of 06:58, 10 August 2009


[view] [edit] [history] [purge] Documentation icon Template documentation