Difference between revisions of "Template:SOV"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
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/iframe.htm?x={{#expr: {{{sx|-2}}} * 27.776 + 26}}&y={{#expr: {{{sy|1}}} * 40}}&ox={{#expr: {{{sx|-2}}} * 27.776}}&oy={{#expr: {{{sy|1}}} * 40 + 40}}&ow={{#expr: {{{dx|1}}} * 27.776 }}&oh={{#expr: {{{dy|1}}} * 40 }}&scale={{{scale|2}}}&options=887 {{{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: left; clear: right">map from [http://www.travellermap.com Travellermap.com]<br>[http://www.travellermap.com/iframe.htm?x={{#expr: {{{sx|-2}}} * 27.776 + 26 + {{{xcen|0}}}}}&y={{#expr: {{{sy|1}}} * 40 + {{{ycen|0}}}}}&ox={{#expr: {{{sx|-2}}} * 27.776}}&oy={{#expr: {{{sy|1}}} * 40 + 40}}&ow={{#expr: {{{dx|1}}} * 27.776 }}&oh={{#expr: {{{dy|1}}} * 40 }}&scale={{{scale|2}}}&options=887 {{{name|Corridor}}} style="width: 250px; height: 350px; border: solid 1px black; float: left; margin-right: 20px"]<br></span><noinclude>
 
[[Category: Templates]]
 
[[Category: Templates]]
  
Line 8: Line 8:
 
<nowiki>{{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>}}</nowiki>
 
<nowiki>{{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>}}</nowiki>
  
This template takes five named parameters:  
+
This template takes five named parameters, and some optional ones:  
 
# sx - from the imperial Coordinates, 0 is core sector, +to trailing, - to spinward.
 
# sx - from the imperial Coordinates, 0 is core sector, +to trailing, - to spinward.
 
# sy - from the Imperial Coordinates, 0 is core sector, +to coreward, - to rimward.
 
# sy - from the Imperial Coordinates, 0 is core sector, +to coreward, - to rimward.
Line 15: Line 15:
 
# name - sector name, used as the placeholder.  
 
# name - sector name, used as the placeholder.  
 
# scale - optional override of the default scale of 2
 
# scale - optional override of the default scale of 2
 +
# xcen - optional adjustment to x axis centre
 +
# 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.  
 
See [[Charted Space]] and the sector matrix for the coordinate to a sector if they are not included in the InfoboxSector already.  
  
 
</noinclude>
 
</noinclude>

Revision as of 14:28, 26 February 2008

map from Travellermap.com
Corridor style="width: 250px; height: 350px; border: solid 1px black; float: left; margin-right: 20px"

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.