FamilySearch Wiki:WikiProject Clickable County Maps: Difference between revisions
m (→Instructions) |
|||
| (26 intermediate revisions by 4 users not shown) | |||
| Line 8: | Line 8: | ||
== Purpose == | == Purpose == | ||
Making clickable map templates and adding them the Maps and Gazetteers section of the county pages. | |||
== Task List == | == Task List == | ||
| Line 14: | Line 14: | ||
== Instructions == | == Instructions == | ||
1. Create image map, instructions [[Help:Wiki_University_Wikitext--Image_Maps|here]].<br> | 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)'' | ''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. | :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.<br> | :b. You must change the %2C to a <font color="red">comma</font>. <br>The wiki does not recognize the %2C.<br> | ||
2. Save the image coding as a template, for example: <font color="red"><nowiki>template:KS Allen County</nowiki></font>.<br> | 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. | :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> | :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> | :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. | :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 | ::<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> | ''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> | 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: | 4. Here is a completed template for Allen County, Kansas as an example: | ||
<div style="border:1px solid black; padding:1em> | <div style="border:1px solid black; padding:1em; width:800px> | ||
<nowiki><imagemap>Image:Allen,_Kansas.JPG|</nowiki><font color="red">250px</font><br> | <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 123 179 123 99 226 103 223 181 223 181 [[Allen County, Kansas Genealogy|Allen County]]</nowiki><br> | ||
| Line 126: | Line 37: | ||
<nowiki>poly 17 265 14 178 117 184 115 266 115 266 [[Wilson County, Kansas Genealogy|Wilson 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 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> | <nowiki>poly 230 266 224 189 336 196 338 265 338 265 [[Crawford County, Kansas Genealogy|Crawford County]]</nowiki><nowiki></imagemap></nowiki><font color="red"><nowiki><noinclude>[[Category:Image map templates]]</noinclude></nowiki></font></div> | ||
<nowiki></imagemap></nowiki><font color="red" | |||
== | ==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> | 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> | ::<font color="red"><nowiki>{{KS Neighboring Counties Intro|county={{County Name}}}}</nowiki></font><br> | ||
| Line 141: | Line 50: | ||
<nowiki>{{KS Maps Intro|Allen}}</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> | <font color="red"><nowiki>{{KS Neighboring Counties Intro|county={{KS Allen County}}}}</nowiki></font><br></div> | ||
Revision as of 09:43, 5 October 2017
Purpose[edit | edit source]
Making clickable map templates and adding them the Maps and Gazetteers section of the county pages.
Task List[edit | edit source]
Instructions[edit | edit source]
1. Create image map, instructions here.
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 %2C after the name of the county in the first line of code.
- b. You must change the %2C to a comma.
The wiki does not recognize the %2C.
2. Save the image coding as a template, for example: template:KS Allen County.
- 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 two letter post office codes for each state.
- c. Next is the name of the county for which you are creating the image map.
- d. Add the this line of code to the bottom of all the code. This give the image map a category.
- <noinclude>[[Category:Image map templates]]</noinclude>
Note the noinclude just means that the text for the category will not show on the page even though it has been placed in a category.
3.Limit size to 250px. See Help:Wiki University Wikitext--Image Maps
4. Here is a completed template for Allen County, Kansas as an example:
<imagemap>Image:Allen,_Kansas.JPG|250px
poly 123 179 123 99 226 103 223 181 223 181 [[Allen County, Kansas Genealogy|Allen County]]
poly 122 96 119 11 225 14 224 96 224 96 [[Anderson County, Kansas Genealogy|Anderson County]]
poly 17 99 7 1 115 18 115 99 115 99 [[Coffey County, Kansas Genealogy|Coffey County]]
poly 230 97 230 10 344 2 339 98 340 98 [[Linn County, Kansas Genealogy|Linn County]]
poly 15 179 16 93 118 100 119 178 119 178 [[Woodson County, Kansas Genealogy|Woodson County]]
poly 229 190 228 99 339 102 337 190 337 190 [[Bourbon County, Kansas Genealogy|Bourbon County]]
poly 17 265 14 178 117 184 115 266 115 266 [[Wilson County, Kansas Genealogy|Wilson County]]
poly 195 250 120 267 124 179 223 184 225 266 122 265 122 265 [[Neosho County, Kansas Genealogy|Neosho County]]
Placing template[edit | edit source]
1.Place the clickable map under the heading Maps and Gazetteers, and under first template, for example, under {{KS Maps Intro|Allen}} on the Allen County, Kansas page by typing:
- {{KS Neighboring Counties Intro|county={{County Name}}}}
- {{KS Neighboring Counties Intro|county={{County Name}}}}
- There may be a link to a image of the county under this template that looks like our image map. If so delete it as you will be replacing it with a clickable image map.
2.In place of "County Name" enter the template name for the county you are adding the image map too, for example:
- {{KS Neighboring Counties Intro|county={{KS Allen County}}}}
- {{KS Neighboring Counties Intro|county={{KS Allen County}}}}
3.It will look like this, using Allen County, Kansas as an example:
=== Maps and Gazetteers ===
{{KS Maps Intro|Allen}}