Template:InteractiveMap/doc
Jump to navigation
Jump to search
Usage
{{InteractiveMap}}
is a template for creating interactive maps.
Syntax
{{InteractiveMap|file|links...}}
File
- The file should be formatting similarly to regular wiki File links (Just without the
[[File:]]
part) - To separate parameters of the image, the
|
character must be escaped as{{!}}
.- Using an
=
will also cause the parser to treat it as a Named Parameter, so{{=}}
must be used to escape it.
- Using an
Parameters
- As many parameters as needed can be passed into the Template.
- Each one will create a new region that links to a page and can be clicked.
- The parameter name (The left hand side of the
=
) should be a page name- Page names are passed into the {{LocalizedLink}} template for proper translation
- The parameter value (The right hand side of the
=
) should be one of the following:poly
: Draws a custom polygonal arearect
: Draws a rectangular areacircle
: Draws a circular areadefault
: Makes the entire image link to this page- See ImageMap for more details
Examples
{{InteractiveMap|Kilima-Map.png{{!}}1000px{{!}}center{{!}}alt{{=}}"Clickable Image"
|Tailor = poly 1240 1471 1306 1563 1223 1621 1175 1497
|General Store = poly 1326 1448 1386 1535 1308 1566 1251 1466
|Furniture Store = poly 1386 1416 1451 1495 1387 1532 1328 1443
|City Hall = poly 1500 1528 1569 1529 1614 1603 1585 1678 1514 1686 1468 1630 1471 1574
|Tavern = poly 1347 1671 1251 1598 1170 1696 1240 1741 1248 1777 1297 1804 1313 1761 1291 1746
|Blacksmith = poly 1358 1663 1422 1697 1383 1798 1299 1743
|Tish's House = poly 1050 1780 1112 1870 1181 1826 1108 1740 1074 1766
|Elouisa and Caleri's House = poly 1266 1898 1177 1832 1133 1875 1209 1965
|Apothecary = poly 1278 1934 1377 1952 1347 2080 1220 2037
|Mayor's Estate = poly 1556 1983 1606 2264 1722 2255 1808 2216 1741 2122 1716 2004 1651 1947 1581 1959
|Remembrance Garden = poly 1105 2058 1272 2125 1272 2211 1304 2249 1289 2325 1191 2370 1072 2345 977 2278 948 2192 982 2103
|Daiya Family Farm = poly 543 1295 396 1266 368 1319 404 1420 570 1557 746 1586 750 1308 657 1305
|Night Sky Temple = poly 642 1124 741 1158 717 1239 597 1222
|Mirror Pond Ruins = poly 781 645 901 662 964 722 917 881 758 826 725 740
|Hekla's Tent = poly 691 880 781 891 767 960 669 943
|Chayne's House = poly 1562 1000 1536 1122 1631 1142 1651 1002
|Zeki's House = poly 1274 1233 1373 1315 1434 1241 1324 1177
|Library = poly 1445 1355 1505 1419 1453 1489 1384 1409
|Sifuu's House = poly 1840 1373 1844 1459 1961 1461 1960 1365
|Einar's Cave = poly 2156 1622 2162 1721 2280 1716 2267 1618
|Bahari Bay = poly 2477 1369 2476 1489 2610 1495 2612 1366
|Maji's Hollow = poly 2078 926 2065 1058 2204 1065 2229 928
|Housing Plot = poly 1706 1129 1713 1259 1881 1263 1857 1084
<!-- Remove the 'default' if you don't want the map itself to be clickable -->
|Kilima Valley = default
}}