Difference between revisions of "Template:Travellermap Subsector"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
Line 1: Line 1:
[http://www.travellermap.com/?x={{#expr: {{{1|-2}}} * 27.776 + 13.888 + {{#switch: {{lc: {{{3|a}}}}} |a|e|i|m=-11.284 |b|f|j|n=-4.34 |c|g|k|o=2.604 |d|h|l|p=9.548}} }}&y={{#expr: {{{2|1}}} * 40 + 20 + {{#switch: {{lc: {{{3|a}}}}} |a|b|c|d=15 |e|f|g|h=5 |i|j|k|l=-5 |m|n|o|p=-15}}}}&scale=32&options=25439 {{{4|Corridor}}} style="width: 250px; height: 350px; border: solid 1px black;"]<br><span style="font-size: 75%;text-align: center">map from [http://www.travellermap.com Travellermap.com]</span><noinclude>
+
[http://www.travellermap.com/?x={{#expr: {{{1|-2}}} * 27.776 + 13.888 + {{#switch: {{lc: {{{3|a}}}}} |a|e|i|m=-11.284 |b|f|j|n=-4.34 |c|g|k|o=2.604 |d|h|l|p=9.548}} }}&y={{#expr: {{{2|1}}} * 40 + 20 + {{#switch: {{lc: {{{3|a}}}}} |a|b|c|d=15 |e|f|g|h=5 |i|j|k|l=-5 |m|n|o|p=-15}}}}&scale=32&options=25439&galdir=0 {{{4|Corridor}}} style="width: 250px; height: 350px; border: solid 1px black;"]<br><span style="font-size: 75%;text-align: center">map from [http://www.travellermap.com Travellermap.com]</span><noinclude>
 
[[Category: Templates]]
 
[[Category: Templates]]
 
[[Category: TravellerMap templates]]
 
[[Category: TravellerMap templates]]

Revision as of 08:08, 25 January 2014

Corridor style="width: 250px; height: 350px; border: solid 1px black;"
map from Travellermap.com

This template, along with the renderTravellerMap() javascript in MediaWiki:Common.js, produces a iframe to Travellermap.com. This is a fully scrollable image, you can wander all over charted space. By double clicking the image you can zoom in. See Travellermap.com for more details, and other options.

Example:

{{Travellermap Subsector|x|y|p|name}}

This template takes four unnamed parameters:

  1. x - Sector location from the imperial Coordinates, 0 is core sector, +to trailing, - to spinward.
  2. y - Sector location from the Imperial Coordinates, 0 is core sector, +to coreward, - to rimward.
  3. p - position of the subsector within the sector (one of A-P).
  4. name - sector name, used as the placeholder.