Difference between revisions of "Template:SOV"
Jump to navigation
Jump to search
m (Fix Math for overlay) |
(No www on travellermap.com links) |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <span style="font-size: 75%;float: left; | + | <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: Templates]][[Category:TravellerMap templates]] |
− | This template, along with the renderTravellerMap() javascript in [[MediaWiki:Common.js]], produces a iframe to [http:// | + | 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: | ||
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> |
Latest revision as of 12: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:
- 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.