Interface administrators, smwadministrator, smwcurator, smweditor
82,369
edits
No edit summary |
m (→Instructions) |
||
| Line 14: | Line 14: | ||
== Instructions == | == Instructions == | ||
1. Create image map, instructions [[Help:Wiki_University_Wikitext--Image_Maps|here]].<br> | |||
''Hint: When entering the name of the page for the county in the "Href" box, I usually copy and paste these county names so I don't misspell them and then have to "move" or rename the template)'' | |||
:a. You may see <font color="red">%2C</font> after the name of the county in the first line of code. | |||
:b. You must change the %2C to a <font color="red">comma</font>. <br>The wiki does not recognize the %2C.2. Save the image coding as a template, for example: <font color="red"><nowiki>template:KS Allen County</nowiki></font>.<br> | |||
:a. Must have the word "template:" as part of the name of the image template. Note the colon. | |||
:b. First two capital letters are the [https://www.bls.gov/cew/cewedr10.htm two letter post office codes] for each state.<br> | |||
:c. Next is the name of the county for which you are creating the image map. <br> | |||
:d. Add the this line of code to the bottom of all the code. This give the image map a category.<br> | |||
::<font color="red"><nowiki><noinclude>[[Category:Image map templates]]</noinclude></nowiki></font>. | |||
''Note the <font color="red">noinclude</font> just means that the text for the category will not show on the page even though it has been placed in a category.''<br> | |||
3.'''Limit size to 250px'''. See [[Help:Wiki_University_Wikitext--Image_Maps#Limit size of image map]]<br><br> | |||
4. Here is a completed template for Allen County, Kansas as an example: | |||
<div style="border:1px solid black; padding:1em; width:800px> | |||
<nowiki><imagemap>Image:Allen,_Kansas.JPG|</nowiki><font color="red">250px</font><br> | |||
<nowiki>poly 123 179 123 99 226 103 223 181 223 181 [[Allen County, Kansas Genealogy|Allen County]]</nowiki><br> | |||
<nowiki>poly 122 96 119 11 225 14 224 96 224 96 [[Anderson County, Kansas Genealogy|Anderson County]]</nowiki><br> | |||
<nowiki>poly 17 99 7 1 115 18 115 99 115 99 [[Coffey County, Kansas Genealogy|Coffey County]]</nowiki><br> | |||
<nowiki>poly 230 97 230 10 344 2 339 98 340 98 [[Linn County, Kansas Genealogy|Linn County]]</nowiki><br> | |||
<nowiki>poly 15 179 16 93 118 100 119 178 119 178 [[Woodson County, Kansas Genealogy|Woodson County]]</nowiki><br> | |||
<nowiki>poly 229 190 228 99 339 102 337 190 337 190 [[Bourbon County, Kansas Genealogy|Bourbon County]]</nowiki><br> | |||
<nowiki>poly 17 265 14 178 117 184 115 266 115 266 [[Wilson County, Kansas Genealogy|Wilson County]]</nowiki><br> | |||
<nowiki>poly 195 250 120 267 124 179 223 184 225 266 122 265 122 265 [[Neosho County, Kansas Genealogy|Neosho County]]</nowiki><br> | |||
<nowiki>poly 230 266 224 189 336 196 338 265 338 265 [[Crawford County, Kansas Genealogy|Crawford County]]</nowiki><br> | |||
<nowiki>#<!-- Created by Online Image Map Editor (http://www.maschek.hu/imagemap/index) --></nowiki><br> | |||
<nowiki></imagemap></nowiki><br> | |||
<font color="red"><nowiki><noinclude>[[Category:Image map templates]]</noinclude></nowiki></font></div> | |||
==Placing template== | |||
1.Place the clickable map under the heading '''Maps and Gazetteers''', and under first template, for example, under <nowiki>{{KS Maps Intro|Allen}}</nowiki> on the Allen County, Kansas page by typing:<br> | |||
::<font color="red"><nowiki>{{KS Neighboring Counties Intro|county={{County Name}}}}</nowiki></font><br><br> | |||
2.In place of "County Name" enter the template name for the county you are ungrading, for example: <br> | |||
::<font color="red"><nowiki>{{KS Neighboring Counties Intro|county={{KS Allen County}}}}</nowiki></font><br><br> | |||
3.It will look like this, using Allen County, Kansas as an example: <br> | |||
<div style="border:1px solid black; padding:1em; width:400px"> | |||
<nowiki>=== Maps and Gazetteers ===</nowiki><br> | |||
<nowiki>{{KS Maps Intro|Allen}}</nowiki><br> | |||
<font color="red"><nowiki>{{KS Neighboring Counties Intro|county={{KS Allen County}}}}</nowiki></font><br></div> | |||