Difference between revisions of "Template:SextantConvert"
BrianFreud (talk | contribs) m |
BrianFreud (talk | contribs) m |
||
Line 47: | Line 47: | ||
| 7 = 1323 | | 7 = 1323 | ||
}} }}<!-- | }} }}<!-- | ||
− | -->{{#vardefineecho:tx|{{#var:x}}}}<!-- | + | --><br>tx {{#vardefineecho:tx|{{#var:x}}}}<!-- |
− | -->{{#vardefineecho:Cx|{{#var:centerX}}}}<!-- | + | --><br>cx {{#vardefineecho:Cx|{{#var:centerX}}}}<!-- |
− | -->{{#vardefineecho:Nx|{{#var:width}}}}<!-- | + | --><br>nx {{#vardefineecho:Nx|{{#var:width}}}}<!-- |
− | -->{{#vardefineecho:ty|{{#var:y}}}}<!-- | + | --><br>ty {{#vardefineecho:ty|{{#var:y}}}}<!-- |
− | -->{{#vardefineecho:Cy|{{#var:centerY}}}}<!-- | + | --><br>cy {{#vardefineecho:Cy|{{#var:centerY}}}}<!-- |
− | -->{{#vardefineecho:Ny|{{#var:height}}}}<!-- | + | --><br>ny {{#vardefineecho:Ny|{{#var:height}}}}<!-- |
− | -->{{#vardefineecho:Sx|{{#expr:{{#expr:{{#expr:{{#var:tx}} - {{#var:Cx}} }} * 360 }} / {{#var:Nx}} }} }}<!-- | + | --><br>sx {{#vardefineecho:Sx|{{#expr:{{#expr:{{#expr:{{#var:tx}} - {{#var:Cx}} }} * 360 }} / {{#var:Nx}} }} }}<!-- |
− | -->{{#vardefineecho:Sy|{{#expr:{{#expr:{{#expr:{{#var:ty}} - {{#var:Cy}} }} * 360 }} / {{#var:Ny}} }} }}<!-- | + | --><br>sy {{#vardefineecho:Sy|{{#expr:{{#expr:{{#expr:{{#var:ty}} - {{#var:Cy}} }} * 360 }} / {{#var:Ny}} }} }}<!-- |
− | -->{{#vardefineecho:tempX|{{#explode:{{#var:Sx}}|.|0}}}}<!-- | + | --><br>tempx {{#vardefineecho:tempX|{{#explode:{{#var:Sx}}|.|0}}}}<!-- |
− | -->{{#vardefineecho:tempY|{{#explode:{{#var:Sy}}|.|0}}}}<!-- | + | --><br>tempy {{#vardefineecho:tempY|{{#explode:{{#var:Sy}}|.|0}}}}<!-- |
− | -->{{#vardefineecho:SouthNorth|{{#ifexpr:{{#var:tempY}} < 0|N{{#vardefine:tempY|{{#expr:0-{{#var:tempY}}}}}}|S}} }}<!-- | + | --><br>{{#vardefineecho:SouthNorth|{{#ifexpr:{{#var:tempY}} < 0|N{{#vardefine:tempY|{{#expr:0-{{#var:tempY}}}}}}|S}} }}<!-- |
− | -->{{#vardefineecho:EastWest|{{#ifexpr:{{#var:tempX}} < 0|W{{#vardefine:tempX|{{#expr:0-{{#var:tempX}}}}}}|E}} }}<!-- | + | --><br>{{#vardefineecho:EastWest|{{#ifexpr:{{#var:tempX}} < 0|W{{#vardefine:tempX|{{#expr:0-{{#var:tempX}}}}}}|E}} }}<!-- |
− | -->{{#var:tempY}}o {{#sub:{{#expr:{{#sub:{{#explode:{{#var:Sy}}|.|1}}|0|2}} * 60}}|0|2}}'{{#var:SouthNorth}}, {{#var:tempX}}o {{#sub:{{#expr:{{#sub:{{#explode:{{#var:Sx}}|.|1}}|0|2}} * 60}}|0|2}}'{{#var:EastWest}} | + | --><br>{{#var:tempY}}o {{#sub:{{#expr:{{#sub:{{#explode:{{#var:Sy}}|.|1}}|0|2}} * 60}}|0|2}}'{{#var:SouthNorth}}, {{#var:tempX}}o {{#sub:{{#expr:{{#sub:{{#explode:{{#var:Sx}}|.|1}}|0|2}} * 60}}|0|2}}'{{#var:EastWest}} |
Revision as of 03:04, 7 September 2020
tx {{{2}}}
cx
nx
ty {{{3}}}
cy
ny
sx Expression error: Unexpected < operator.
sy Expression error: Unexpected < operator.
tempx Expression error: Unexpected < operator
tempy Expression error: Unexpected < operator
Expression error: Unexpected < operator.
Expression error: Unexpected < operator.
Expression error: Unexpected < operatoro <s'Expression error: Unexpected < operator., Expression error: Unexpected < operatoro <s'Expression error: Unexpected < operator.