Difference between revisions of "Template:SOV"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
(No www on travellermap.com links)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style="font-size: 75%;float: left; clear: right">map from [http://www.travellermap.com Travellermap.com]<br>[http://www.travellermap.com/?x={{#expr: {{{sx|-2}}} * 27.776 + 26 + {{{xcen|0}}}}}&y={{#expr: {{{sy|1}}} * 40 - {{{ycen|0}}}}}&ox={{#expr: {{{sx|-2}}} * 27.776 - 1}}&oy={{#expr: {{{sy|1}}} * 40 + 40}}&ow={{#expr: {{{dx|1}}} * 27.776 }}&oh={{#expr: {{{dy|1}}} * 40 }}&scale={{{scale|2}}}&options=859 {{{name|Corridor}}} style="width: 250px; height: 350px; border: solid 1px black; float: left; margin-right: 20px"]<br></span><noinclude>
+
<span style="font-size: 75%;float: right; clear: left; width: 252px; height: 352px">[https://travellermap.com/?x={{#expr: {{{sx|-2}}} * 27.776 + 26 + {{{xcen|0}}}}}&y={{#expr: {{{sy|1}}} * 40 - {{{ycen|0}}}}}&ox={{#expr: {{{sx|-2}}} * 27.776 - 1}}&oy={{#expr: {{{sy|1}}} * 40 + 40}}&ow={{#expr: {{{dx|1}}} * 27.776 }}&oh={{#expr: {{{dy|1}}} * 40 }}&scale={{{scale|2}}}&options=859&galdir=0 {{{name|Corridor}}} style="width: 250px; height: 350px; border: solid 1px black; float: right; clear: left"]</span><noinclude>
 
[[Category: Templates]][[Category:TravellerMap templates]]
 
[[Category: Templates]][[Category:TravellerMap templates]]
  
This template, along with the renderTravellerMap() javascript in [[MediaWiki:Common.js]], produces a iframe to [http://www.travellermap.com 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 [http://www.travellermap.com Travellermap.com] for more details, and other options.  
+
This template, along with the renderTravellerMap() javascript in [[MediaWiki:Common.js]], produces a iframe to [http://travellermap.com 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 [http://travellermap.com Travellermap.com] for more details, and other options.  
  
 
Example:   
 
Example:   

Latest revision as of 16:17, 20 April 2017

Corridor style="width: 250px; height: 350px; border: solid 1px black; float: right; clear: left"

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:

{{SOV|sx=<sector x pos>|sy=<sector y pos>|dx=<sectors x defaults to 1>|dy=<sectors in y dir, defaults to 1>|name=<name>}}

This template takes five named parameters, and some optional ones:

  1. sx - from the imperial Coordinates, 0 is core sector, +to trailing, - to spinward.
  2. sy - from the Imperial Coordinates, 0 is core sector, +to coreward, - to rimward.
  3. dx - distance along X axis
  4. dy - distance along Y axis
  5. name - sector name, used as the placeholder.
  6. scale - optional override of the default scale of 2
  7. xcen - optional adjustment to x axis centre
  8. ycen - optional adjustment to y axis centre

See Charted Space and the sector matrix for the coordinate to a sector if they are not included in the InfoboxSector already.