Template:Zone Map
From HorizonXI Wiki
This is the template code for the Zone Map & Notes & Coordinates
This template is used for drawing the map on the page and passing the user notes to it for display. For this reason, there are two sets of parameters to be concerned with. A complete set of parameters will look like this:
{{Zone Map|map=Qufim Island.png|zone=Qufim|notes= {{Zone Map Notes|30|50|Check|This is checkmark 1}} {{Zone Map Notes|30|30|Check|This is checkmark 2}} {{Zone Map Notes|50|30|Check|This is checkmark 3}} {{Zone Map Notes|95|95|Blip|This is checkmark 4}} |coords= {{Zone Map Coordinates|mapsize=500|coord = A-1}} {{Zone Map Coordinates|mapsize=500|coord = A-10}} {{Zone Map Coordinates|mapsize=500|coord = G-1}} {{Zone Map Coordinates|mapsize=500|coord = G-8}} }}
The first line contains the name of this template and takes several parameters:
- map= is for the name of the map to be used for display. If a valid map is not given, no map will be displayed!
- zone= allows the user to select the default pop-up text which will show when the mouse is over the map.
- size= (optional) this is the size of the map in pixels, any positive number up to 1002, default is 501 if not defined
- notes= is to be left empty, that is the handler for the template code on the following lines.
The second through fifth lines are the notes to be included, there may be one or more of these added as needed
- Usage: {{Zone Map Notes|1|2|3|4}}
- Fields:
- 1 The X co-ordinate - how far across the map to display the icon, expressed as a percentage of the width of the map.
- 2 The Y co-ordinate - how far down the map to display the icon, expressed as a percentage of the height of the map.
- 3 The name of the icon to use, see below (default: Blip).
- 4 The text to display when hovering over the note (optional).
The sixth line is "coords=" and should be left as it is, while the seventh through tenth lines are the gridsquares to be highlighted, there may be one or more of these added as needed
- Usage: {{Zone Map Coordinates|mapsize=500|coord = G-8}}
- Fields:
- mapsize The size in pixels of the map displayed.
- coord The gridsquare on the map you want highlighted.
- Approximate X/Y Coordinates for Zone Map Notes
- | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 6/6 | 12/6 | 19/6 | 25/6 | 31/6 | 38/6 | 44/6 | 50/6 | 56/6 | 63/6 | 69/6 | 75/6 | 82/6 | 88/6 | 94/6 |
2 | 6/12 | 12/12 | 19/12 | 25/12 | 31/12 | 38/12 | 44/12 | 50/12 | 56/12 | 63/12 | 69/12 | 75/12 | 82/12 | 88/12 | 94/12 |
3 | 6/19 | 12/19 | 19/19 | 25/19 | 31/19 | 38/19 | 44/19 | 50/19 | 56/19 | 63/19 | 69/19 | 75/19 | 82/19 | 88/19 | 94/19 |
4 | 6/25 | 12/25 | 19/25 | 25/25 | 31/25 | 38/25 | 44/25 | 50/25 | 56/25 | 63/25 | 69/25 | 75/25 | 82/25 | 88/25 | 94/25 |
5 | 6/31 | 12/31 | 19/31 | 25/31 | 31/31 | 38/31 | 44/31 | 50/31 | 56/31 | 63/31 | 69/31 | 75/31 | 82/31 | 88/31 | 94/31 |
6 | 6/38 | 12/38 | 19/38 | 25/38 | 31/38 | 38/38 | 44/38 | 50/38 | 56/38 | 63/38 | 69/38 | 75/38 | 82/38 | 88/38 | 94/38 |
7 | 6/44 | 12/44 | 19/44 | 25/44 | 31/44 | 38/44 | 44/44 | 50/44 | 56/44 | 63/44 | 69/44 | 75/44 | 82/44 | 88/44 | 94/44 |
8 | 6/50 | 12/50 | 19/50 | 25/50 | 31/50 | 38/50 | 44/50 | 50/50 | 56/50 | 63/50 | 69/50 | 75/50 | 82/50 | 88/50 | 94/50 |
9 | 6/56 | 12/56 | 19/56 | 25/56 | 31/56 | 38/56 | 44/56 | 50/56 | 56/56 | 63/56 | 69/56 | 75/56 | 82/56 | 88/56 | 94/56 |
10 | 6/63 | 12/63 | 19/63 | 25/63 | 31/63 | 38/63 | 44/63 | 50/63 | 56/63 | 63/63 | 69/63 | 75/63 | 82/63 | 88/63 | 94/63 |
11 | 6/69 | 12/69 | 19/69 | 25/69 | 31/69 | 38/69 | 44/69 | 50/69 | 56/69 | 63/69 | 69/69 | 75/69 | 82/69 | 88/69 | 94/69 |
12 | 6/75 | 12/75 | 19/75 | 25/75 | 31/75 | 38/75 | 44/75 | 50/75 | 56/75 | 63/75 | 69/75 | 75/75 | 82/75 | 88/75 | 94/75 |
13 | 6/82 | 12/82 | 19/82 | 25/82 | 31/82 | 38/82 | 44/82 | 50/82 | 56/82 | 63/82 | 69/82 | 75/82 | 82/82 | 88/82 | 94/82 |
14 | 6/88 | 12/88 | 19/88 | 25/88 | 31/88 | 38/88 | 44/88 | 50/88 | 56/88 | 63/88 | 69/88 | 75/88 | 82/88 | 88/88 | 94/88 |
15 | 6/94 | 12/94 | 19/94 | 25/94 | 31/94 | 38/94 | 44/94 | 50/94 | 56/94 | 63/94 | 69/94 | 75/94 | 82/94 | 88/94 | 94/94 |
Sample
{{Zone Map|map=Qufim Island.png|zone=Qufim|notes= {{Zone Map Notes|30|50|Check|This is checkmark 1}} {{Zone Map Notes|30|30|Check|This is checkmark 2}} {{Zone Map Notes|50|30|Check|This is checkmark 3}} {{Zone Map Notes|95|95|Blip|This is checkmark 4}} |coords= {{Zone Map Coordinates|mapsize=500|coord = A-1}} {{Zone Map Coordinates|mapsize=500|coord = A-10}} {{Zone Map Coordinates|mapsize=500|coord = G-1}} {{Zone Map Coordinates|mapsize=500|coord = G-8}} }}