User:Kbh3rd/sandbox

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Inspiration[edit]

From Template:State parks of Missouri map:

<div style="position: relative;"> <div style="position: absolute; left: 125px; top: 80px; padding: 0;"> <span style="position:relative; overflow:hidden; width:5px; height:5px; z-index:2;"> [[Image:Blue pog.svg|5px]] <span style="position:absolute; top:0; left:0; padding-top:3px; z-index:3;"> [[Arrow Rock State Historic Site|<span style="float:left; width:5px; height:5px; font-size:10px; line-height:5px; word-spacing:2px; cursor:pointer;">   </span>]] </span> </span> </div> ... </div>

Clickable Map[edit]

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

Missouri Courthouses photo status Kbh3rd.png

Coordinates for 300-pixel map[edit]

Kirksville|Adair|134|28
Savannah|Andrew|40|41
Rock Port|Atchison|12|15
Mexico|Audrain|165|84
Cassville|Barry|80|219
Lamar|Barton|62|175
Butler|Bates|60|133
Warsaw|Benton|101|134
Marble Hill|Bollinger|249|184
Columbia|Boone|146|96
Saint Joseph|Buchanan|39|51
Poplar Bluff|Butler|231|214
Kingston|Caldwell|73|58
Fulton|Callaway|162|101
Camdenton|Camden|128|147
Jackson|Cape Girardeau|262|179
Carrollton|Carroll|97|74
Van Buren|Carter|204|201
Harrisonville|Cass|59|112
Stockton|Cedar|83|164
Keytesville|Chariton|120|70
Ozark|Christian|108|201
Kahoka|Clark|170|15
Liberty|Clay|57|80
Plattsburg|Clinton|56|62
Jefferson City|Cole|153|116
Boonville|Cooper|128|95
Steelville|Crawford|188|149
Greenfield|Dade|81|179
Buffalo|Dallas|113|167
Gallatin|Daviess|77|44
Maysville|DeKalb|60|45
Salem|Dent|180|166
Ava|Douglas|132|205
Kennett|Dunklin|247|242
Union|Franklin|203|123
Hermann|Gasconade|184|109
Albany|Gentry|61|25
Springfield|Greene|104|190
Trenton|Grundy|91|35
Bethany|Harrison|74|24
Clinton|Henry|84|127
Hermitage|Hickory|104|151
Oregon|Holt|27|38
Fayette|Howard|131|85
West Plains|Howell|167|217
Ironton|Iron|220|168
Independence|Jackson|50|87
Carthage|Jasper|60|192
Hillsboro|Jefferson|222|134
Warrensburg|Johnson|86|106
Edina|Knox|151|30
Lebanon|Laclede|132|165
Lexington|Lafayette|80|83
Mount Vernon|Lawrence|82|196
Monticello|Lewis|171|32
Troy|Lincoln|203|93
Linneus|Linn|109|45
Chillicothe|Livingston|94|50
Macon|Macon|139|53
Fredericktown|Madison|234|170
Vienna|Maries|162|137
Palmyra|Marion|179|49
Hannibal|Marion|186|54
Pineville|McDonald|56|224
Princeton|Mercer|92|17
Tuscumbia|Miller|140|134
Charleston|Mississippi|277|203
California|Moniteau|136|113
Paris|Monroe|159|67
Montgomery City|Montgomery|181|94
Versailles|Morgan|124|124
New Madrid|New Madrid|270|221
Neosho|Newton|57|209
Maryville|Nodaway|39|19
Alton|Oregon|188|218
Linn|Osage|166|121
Gainesville|Ozark|142|223
Caruthersville|Pemiscot|265|244
Perryville|Perry|253|160
Sedalia|Pettis|107|109
Rolla|Phelps|170|150
Bowling Green|Pike|193|74
Platte City|Platte|42|73
Bolivar|Polk|99|169
Waynesville|Pulaski|152|157
Unionville|Putnam|117|13
New London|Ralls|184|61
Huntsville|Randolph|136|69
Richmond|Ray|76|78
Centerville|Reynolds|206|177
Doniphan|Ripley|212|222
Saint Charles|Saint Charles|224|104
Osceola|Saint Clair|87|144
Ste. Genevieve|Sainte Genevieve|244|147
Farmington|Saint Francois|229|158
Clayton|Saint Louis|231|111
St. Louis|Saint Louis City|237|112
Marshall|Saline|109|87
Lancaster|Schuyler|137|10
Memphis|Scotland|152|14
Benton|Scott|267|194
Eminence|Shannon|189|194
Shelbyville|Shelby|157|49
Bloomfield|Stoddard|251|206
Galena|Stone|97|213
Milan|Sullivan|112|28
Forsyth|Taney|112|219
Houston|Texas|162|184
Nevada|Vernon|59|156
Warrenton|Warren|196|103
Potosi|Washington|212|150
Greenville|Wayne|228|194
Marshfield|Webster|121|184
Grant City|Worth|58|12
Hartville|Wright|138|188

Script to generate HTMl from data[edit]

#!/usr/bin/perl


#Albany Gentry  61      25

while (<>) {
        my ($seat, $county, $x, $y) = split (/\|/) ;

        next unless ($x > 0 && $y > 0) ;

        printf "<div style='position:absolute; left:%dpx; top:%dpx; padding: 0;'><span style='position:relative; overflow:hidden; width: 5px; height: 5px; z-index:2;'>[[%s County, Missouri|<span style='float:left; width:5px; height:5px; font-size:10px; line-height:5px; word-spacing:2px; cursor:pointer;'>   </span>]]</span></div>\n"
                , ($x - 2)
                , ($y - 2)
                , $county
                ;
}

exit 0 ;

Notes[edit]

St. Louis City has to be hand-tweaked in the output to remove "County" from the wikilink.