Difference between revisions of "Template:PBGH battleship/lonOnly"

From Geohashing
imported>Aperfectring
(Created page with '{{#vardefine:lon|-123.01}}{{#vardefine:lonsign|{{#ifexpr: {{#var:lon}}<0 | -1 | 1}}}}{{#vardefine:lonten|{{#expr:{{#var:lon}}*10}}}} {{#vardefine:lontenthsign|{{#expr:{{#expr:{…')
 
imported>Aperfectring
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:lon|-123.01}}{{#vardefine:lonsign|{{#ifexpr: {{#var:lon}}<0 | -1 | 1}}}}{{#vardefine:lonten|{{#expr:{{#var:lon}}*10}}}}   
+
{{#vardefine:lon|{{{1}}}}}{{#vardefine:lonsign|{{#ifexpr: {{#var:lon}}<0 | -1 | 1}}}}{{#vardefine:lonten|{{#expr:{{#var:lon}}*10}}}}   
 
{{#vardefine:lontenthsign|{{#expr:{{#expr:{{#var:lonten}} mod {{#expr:{{#expr: {{#var:lonten}} + {{#expr:0.5 * {{#var:lonsign}}}}}} round 0}}}} - {{#expr:{{#expr:{{#var:lon}} mod {{#expr:{{#expr: {{#var:lon}} + {{#expr:0.5 * {{#var:lonsign}}}}}} round 0}}}}*10}}}}}}{{#vardefine:lontenth|{{#ifexpr: {{#var:lonsign}}<0|{{#expr:{{#var:lontenthsign}}+10}}|{{#expr:{{#var:lontenthsign}}+1}}}}}}{{#switch:{{#var:lontenth}}
 
{{#vardefine:lontenthsign|{{#expr:{{#expr:{{#var:lonten}} mod {{#expr:{{#expr: {{#var:lonten}} + {{#expr:0.5 * {{#var:lonsign}}}}}} round 0}}}} - {{#expr:{{#expr:{{#var:lon}} mod {{#expr:{{#expr: {{#var:lon}} + {{#expr:0.5 * {{#var:lonsign}}}}}} round 0}}}}*10}}}}}}{{#vardefine:lontenth|{{#ifexpr: {{#var:lonsign}}<0|{{#expr:{{#var:lontenthsign}}+10}}|{{#expr:{{#var:lontenthsign}}+1}}}}}}{{#switch:{{#var:lontenth}}
 
  | 1 = A
 
  | 1 = A

Latest revision as of 03:05, 27 April 2010