Template:Map Documentation

From Book of Travels Wiki
Jump to navigation Jump to search

Last edited - 25th Dec 2023

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.

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.

			{
				"x": 0, "y": 0,
				"name": "Name of Marker",
				"article": "Insert Page name here" /optional (Links to page)
			},

Resources

Read the official documentation of this Interactive Map script here

Templates

Example of a finished map

Map:Alken_Rock_Coast Check our old Wiki's Maps to help make porting easier instead of doing it form 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": [
		]