Difference between revisions of "Template:SOV"
m (Fix Math for overlay) |
|||
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/ | + | <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> |
− | [[Category: 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://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. | ||
Line 19: | Line 19: | ||
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 10:27, 29 January 2014
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:
- 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.
- dx - distance along X axis
- dy - distance along Y axis
- name - sector name, used as the placeholder.
- 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.