Difference between revisions of "Template:JumpMap"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="va-infobox">http://www.travellermap.com/api/jumpmap?sector={{{1|Dagudashaag}}}&hex={{{2|0833}}}&jump=3&scale=32&junk=junk.png
+
<div class="va-infobox" style="margin-left:0px; text-align: center; background-color: transparent">[https://travellermap.com/api/jumpmap?sector={{urlencode:{{{1|Trojan Reach}}}|QUERY}}&hex={{{2|0240}}}&options=8451&jump=3&scale=32&junk=junk.png style="width: 220px; height: 250px;"]<div style="font-size: 75%;text-align: center">Jump map from [https://travellermap.com/go/{{urlencode:{{{1|Trojan Reach}}}|PATH}}/{{{2|0240}}} Travellermap.com] {{#tag: ref|"[https://travellermap.com/doc/api#jump-worlds--return-a-list-of-worlds-within-n-parsecs Jump Map API]" and [https://travellermap.com/go/{{urlencode:{{{1|Trojan Reach}}}|PATH}}/{{{2|0240}}} map location] from [https://travellermap.com Travellermap.com]}}</div></div><noinclude>
<span style="font-size: 75%;text-align: center">Jump map from [http://www.travellermap.com Travellermap.com]</span></div><noinclude>
 
 
[[Category: Templates|JumpMap]]
 
[[Category: Templates|JumpMap]]
 
[[Category:TravellerMap templates]]
 
[[Category:TravellerMap templates]]
This template uses the [http://www.travellermap.com/api.htm#jumpmap JumpMap] functionality from Traveller Map to render a small map of the space around a given world.
+
This template uses the [https://travellermap.com/doc/api#jump-worlds--return-a-list-of-worlds-within-n-parsecs JumpMap] functionality from Traveller Map to render a small map of the space around a given world.
  
 
Example: <nowiki>{{JumpMap|<sector>|<hex>}}</nowiki>
 
Example: <nowiki>{{JumpMap|<sector>|<hex>}}</nowiki>

Latest revision as of 17:20, 9 September 2023

This template uses the JumpMap functionality from Traveller Map to render a small map of the space around a given world.

Example: {{JumpMap|<sector>|<hex>}}

The template takes two unnamed parameters:

  1. The sector is the common name of the sector as used by Traveller Map to identify the sectors.
  2. Hex is the hex location with in the sector where the world is located. The puts the identified hex as the center of the map.

The map is sized and placed to fit with in the space allocated for infoboxs, and works with the world articles.