Book of Travels Wiki:Editors Guide/Interactive Map Guide

From Book of Travels Wiki
Jump to navigation Jump to search

How to make a Map Page?

When making the page, type "Map:" at the start of the title before the Location's name, this will prompt a unique pop up to insert the image of the map. You can see the images of Maps at Category:Maps

As of 2023, unlike the old wiki, there is currently no Visual Editor for making maps, so you would have to do it manually by altering the code.

Group meaning

Spawn Points

This refers to spawn points of very specific NPCs that spawns in the location.

How to add groups?

After creating the base layout made by the pop up, if you scroll down in the code, there is a segment that says

"groups": {

Under this page, there is a template that setup the structure for the groups and marker, copy and paste it, make sure to not overwrite the last 2 "}" of the code.


Note! If there are more groups you would like to add, do edit in Map:Common Groups, make sure to also update the template below to have the marker have the group name.

How to add markers into the groups?

After pasting the template, click the "Show Preview" Button at the bottom of the creation page. If all works well, you will be able to preview the map itself.

If you hover around the map, you will see coordinates of where your mouse is at, you can use this to help place in the x and y coordinates of your marker into the code below

			{
				"x": 0, "y": 0,
				"name": "Name of Marker",
				"description": "Short description on Marker", /optional, u can make multi line using <br>
				"image": "Imgname.jpg", /optional
				"article": "Insert Page name here" /optional (Links to page)
			},

How to insert Map to a page?

Insert this into a page

{{DataMap:Map Name here}}

Resources

Read the official documentation of this Interactive Map script here

Templates

Example of a finished map

Alken Rock Coast

Check our old Wiki's Maps to help make porting easier instead of doing it from scratch.

Group Template

Template you can paste for groups instead of typing it all down.

	"include": [
	  "Map:Common Groups"
	],
	"markers": {
		"Events": [
		],
		"Quests": [
		],
		"NonTravellers": [
		],
		"Trader": [
		],
		"Spawn": [
		],
		"Endeavors": [
		],
		"Drops": [
		],
		"Connections": [
		],
		"Boats": [
		],
		"Trains": [
		],
		"Shrines": [
		],
		"Reagents": [
		],
		"Fireplace": [
		],
		"Buildings": [
		],
		"Fishing": [
		],
		"Enemies": [
		],
        "Outmarks": [
        ]