The wiki upgrade is complete. If you notice anything that seems to be functioning incorrectly, please file a bug report.
|
[dismiss] |
Guild Wars Wiki:Projects/Interactive Maps/Format
Interactive Maps FormatThis is a guide on how to build interactive maps for the wiki. This process uses two templates and a lot of manual guess work. | |
[edit] Instructions
[edit] Naming FormatGenerally, map pages are a subpage of the main article they represent. For instance, the map for the Ascalon region would be Ascalon/Map, and the map for Archipelagos would be Archipelagos/Map. [edit] Code SyntaxThis is the basic format we use for creating the map:
{{Image label begin|image=Map name clean.jpg|width=1000|link=}}
<!-- Name of Section -->
{| class="collapsible" style="margin-left: 0em; margin-top: 0em; width: 200px;" cellspacing="0"
|'''Name of Section'''
|-
|
{{Image label|x=0.000|y=0.000|scale=1000|text={{dynamic map label|label = Ascalon City| labeltype = outpost}}}}
{{Image label|x=0.000|y=0.000|scale=1000|text=[[File:TownIcon.png|65px|link=Ascalon City]]}}
{{Image label|x=0.355|y=0.71|scale=1000|text={{dynamic map label|label = Shing Jea Arena| labeltype = pvpoutpost}}}}
{{Image label|x=0.375|y=0.725|scale=1000|text=[[File:FactionsArenaIcon.png|65px|link=Shing Jea Arena]]}}
{{Image label|x=0.67|y=0.91|scale=1000|text={{dynamic map label|label = Maatu Keep | labeltype = outpost}}}}
{{Image label|x=0.685|y=0.865|scale=1000|text=[[File:FactionsOutpostIcon.png|50px|link=Maatu Keep]]}}
{{Image label|x=0.645|y=0.217|scale=1000|text={{dynamic map label|label = The Wilds | labeltype = mission}}}}
{{Image label|x=0.665|y=0.18|scale=1000|text=[[File:MissionIconIncomplete.png|50px|link= The Wilds ]]}}
{{Image label|x=0.87|y=0.28|scale=1000|text={{dynamic map label|label = Traveler's Vale| labeltype = explorable}}}}
|}
{{Image label end}}
{{Interactive Maps nav}}
It may look complex, but it can be fairly easy to use once you are familiar with it. For each label to be made, there is a pair of label codes that need to be placed: one for the text (top) and one for the icon (bottom). The icon label should always be placed as near to it's placement in-game as possible and the text right below it (unless it doesn't fit, in which case the text can be moved around). Here, we'll look at the syntax for the code to give an idea of how it works. For the most part, everything not following an equals sign or in quotes is static and can be left alone. [edit] Code ExplanationUnder the {{Image label begin}} template:
Everything else in this line is static and can be left alone. |' ' 'Name of section' ' ' defines the name of the label on the toggle feature for that section, and is named the same as above.
{{Interactive <name of relevant template>}} adds the navigation table for the other interactive maps. (The list of templates can be found here with the "Interactive" prefix)
[edit] Additional helpAdding the following code beneath the {{image label begin}} template will position guides onto your image to help you estimate the coordinates. Remember to change the "500px" to the chosen width of the base image.
{{Image label|x=0|y=0|scale=|text=[[File:Interactive Maps Project transparent guides.png|500px|link=]]}}
|
|