Regel 10: | Regel 10: | ||
Edit the page to see the template text. |
Edit the page to see the template text. |
||
</noinclude><includeonly> |
</noinclude><includeonly> |
||
− | {{#vardefine:varRad|0.01}} |
+ | {{#vardefine:varRad|0.01}}{{#vardefine:varAng|175*pi/180}}{{#vardefine:varN|{{#explode:{{PAGENAME}}| |-1}}}}{{#vardefine:varX|{{#expr: {{#var:varRad}} * sin( {{#var:varN}} * {{#var:varAng}} )}}}}{{#vardefine:varY|{{#expr: {{#var:varRad}} * cos( {{#var:varN}} * {{#var:varAng}} )}}}}{{#vardefine:varGC|{{#geocode:{{{Location|}}}|format=float|directional=no}}}}{{#vardefine:varGCX|{{#explode:{{#var:varGC}}|,|0}}}}{{#vardefine:varGCY|{{#explode:{{#var:varGC}}|,|1}}}}{{#expr:{{#var:varGCX}} + {{#var:varX}}}}, {{#expr:{{#var:varGCY}} + {{#var:varY}}}} |
− | {{#vardefine:varAng|175*pi/180}} |
||
− | {{#vardefine:varN|{{#explode:{{PAGENAME}}| |-1}}}} |
||
− | |||
− | |||
− | |||
− | {{#vardefine:varX|{{#expr: {{#var:varRad}} * sin( {{#var:varN}} * {{#var:varAng}} )}}}} |
||
− | {{#vardefine:varY|{{#expr: {{#var:varRad}} * cos( {{#var:varN}} * {{#var:varAng}} )}}}} |
||
− | |||
− | |||
− | |||
− | |||
− | {{#vardefine:varGC|{{#geocode:{{{Location|}}}|format=float|directional=no}}}} |
||
− | {{#vardefine:varGCX|{{#explode:{{#var:varGC}}|,|0}}}} |
||
− | {{#vardefine:varGCY|{{#explode:{{#var:varGC}}|,|1}}}} |
||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#expr:{{#var:varGCX}} + {{#var:varX}}}}, {{#expr:{{#var:varGCY}} + {{#var:varY}}}} |
||
</includeonly> |
</includeonly> |
This is the "Geoshiftcode" template. It should be called in the following format:
{{Geoshiftcode |Location= }}
Edit the page to see the template text.