WikiProject:Vermont Town Clickable Maps: Difference between revisions
No edit summary |
|||
Line 1: | Line 1: | ||
{{breadcrumb | |||
| link1=[[FamilySearch Wiki:Current Projects|Current Projects Page]] | | link1=[[FamilySearch Wiki:Current Projects|Current Projects Page]] | ||
| link2= | | link2= | ||
Line 18: | Line 18: | ||
*Choose a county from the [https://docs.google.com/spreadsheets/d/1pHO3mN2xNG75CTIl8Jx1kgpy5EK5R4QPuAoETTs6MbQ/edit?usp=sharing Task List] | *Choose a county from the [https://docs.google.com/spreadsheets/d/1pHO3mN2xNG75CTIl8Jx1kgpy5EK5R4QPuAoETTs6MbQ/edit?usp=sharing Task List] | ||
*Create a blank template for you to create a clickable map by copying and pasting this into the Wiki search field:<br> | *Create a blank template for you to create a clickable map by copying and pasting this into the Wiki search field:<br> | ||
Line 27: | Line 26: | ||
<br> | <br> | ||
*Perform the search and click on the red link to create the template.<br> | *Perform the search and click on the red link to create the template.<br> | ||
=== Step 2 - Create a Map Template=== | |||
*Copy | |||
*Create a blank template for the town map you are working on. Copy the following code and paste it into the Search Field on any Wiki page. | |||
<br> | <br> | ||
<nowiki> | <nowiki>Template:VTCOUNTYTOWN</nowiki> | ||
<br> | <br> | ||
* | For example, <nowiki>Template:VTAddisonAddison</nowiki><br> | ||
<br> | |||
*Replace the county and town name in the template before clicking on Enter. | |||
*This will bring back a red link for the proposed new template. Click on the red link to make the page. | |||
* | |||
<br> | <br> | ||
=== Step 3 - Create a Image Map === | |||
1. Create image map using these instructions '''[[Help:Wiki_University_Wikitext--Image_Maps#Select_a_source_image_for_upload_to_the_Online_Image_Map_Editor|here]]''' at Step 1.<br> | |||
2. After you have finished making the map clickable, and after you have clicked "Create Image Map" on the [https://niebert.github.io/imgmap/index.html Map Editor Tool], '''copy''' all of the generated Wikitext code.<br><br> | |||
=== Step 4 - Add the Image Map Code to the Wiki page === | |||
1. Go back to the template you are creating in the Wiki and paste the Image Map code into the Wiki page.<br> | |||
<br> | |||
3. At the end of the image map code at the bottom of the Wiki page, highlight the code: <nowiki></imagemap></nowiki> and delete it.<br> | |||
<br> | |||
4. Copy and paste the following wikitext directly below the code for the clickable map:<br> | |||
<br> | |||
<nowiki><noinclude>desc none | |||
</imagemap>[[Category:Image map templates]][[Category:COUNTYNAME County, Vermont]] </noinclude></nowiki><br> | |||
<br> | |||
5. Replace COUNTYNAME in the category to the county your town is in.<br> | |||
<br> | |||
6. Click on Save Page.<br> | |||
<br> | |||
7. Review the page to make sure the map is clickable and the category is not a red link.<br> | |||
<br> | |||
=== Step 5 - Add the Template to the Town Page === | |||
1. Go to | 1. Go back to the [https://docs.google.com/spreadsheets/d/1pHO3mN2xNG75CTIl8Jx1kgpy5EK5R4QPuAoETTs6MbQ/edit?usp=sharing Task List] to go to the town page where you will put the template.<br> | ||
<br> | <br> | ||
2. In the Contents, click on Maps and go down to the header, Maps or scroll down the page to the header, Maps. | |||
<br> | <br> | ||
3. Click on Edit Source next to the Maps header.<br> | |||
<br> | <br> | ||
4. Directly under the Maps header, paste the following wikitext code:<br> | |||
<br> | <br> | ||
<nowiki>[[Image:{{VTCOUNTYTOWN}}|right]]</nowiki><br> | |||
<nowiki> [[ | |||
<br> | <br> | ||
5. Change "VTCOUNTYTOWN" to match the name of the clickable map template you made. | |||
LIMIT SIZE??? | |||
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:<br> | 4. Here is a completed template for Allen County, Kansas as an example:<br> | ||
Line 165: | Line 96: | ||
*Notice how the line of code for each county starts with the word "poly." | *Notice how the line of code for each county starts with the word "poly." | ||
[[Category:WikiProject United States]] | [[Category:WikiProject United States]] |
Revision as of 16:38, 14 April 2023
Purpose[edit | edit source]
- Part 1: Make the Vermont County map clickable and applying it to all town maps
- Part 2:
Task List[edit | edit source]
Instructions[edit | edit source]
Step 1 - Choose a County[edit | edit source]
- Choose a county from the Task List
- Create a blank template for you to create a clickable map by copying and pasting this into the Wiki search field:
Template:VTCOUNTYTOWN
For example, Template:VTAddisonAddison
- Perform the search and click on the red link to create the template.
Step 2 - Create a Map Template[edit | edit source]
- Create a blank template for the town map you are working on. Copy the following code and paste it into the Search Field on any Wiki page.
Template:VTCOUNTYTOWN
For example, Template:VTAddisonAddison
- Replace the county and town name in the template before clicking on Enter.
- This will bring back a red link for the proposed new template. Click on the red link to make the page.
Step 3 - Create a Image Map[edit | edit source]
1. Create image map using these instructions here at Step 1.
2. After you have finished making the map clickable, and after you have clicked "Create Image Map" on the Map Editor Tool, copy all of the generated Wikitext code.
Step 4 - Add the Image Map Code to the Wiki page[edit | edit source]
1. Go back to the template you are creating in the Wiki and paste the Image Map code into the Wiki page.
3. At the end of the image map code at the bottom of the Wiki page, highlight the code: </imagemap> and delete it.
4. Copy and paste the following wikitext directly below the code for the clickable map:
<noinclude>desc none </imagemap>[[Category:Image map templates]][[Category:COUNTYNAME County, Vermont]] </noinclude>
5. Replace COUNTYNAME in the category to the county your town is in.
6. Click on Save Page.
7. Review the page to make sure the map is clickable and the category is not a red link.
Step 5 - Add the Template to the Town Page[edit | edit source]
1. Go back to the Task List to go to the town page where you will put the template.
2. In the Contents, click on Maps and go down to the header, Maps or scroll down the page to the header, Maps.
3. Click on Edit Source next to the Maps header.
4. Directly under the Maps header, paste the following wikitext code:
[[Image:{{VTCOUNTYTOWN}}|right]]
5. Change "VTCOUNTYTOWN" to match the name of the clickable map template you made.
LIMIT SIZE???
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]]
poly 230 266 224 189 336 196 338 265 338 265 [[Crawford County, Kansas Genealogy|Crawford County]]
<noinclude>[[Category:Image map templates]]</noinclude>
- Notice how the line of code for each county starts with the word "poly."