Template:Lat & long 2: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
Created page with '{{#ifeq:{{{1}}}|{{positive|{{{1}}}}}|{{#vardefine:NS|N}}|{{#vardefine:NS|S}} }} {{#ifeq:{{{2}}}|{{positive|{{{2}}}}}|{{#vardefine:EW|E}}|{{#vardefine:EW|W}} }} {{#vardefine:latd|…'
 
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 3: Line 3:
{{#vardefine:latd|{{integerpos|{{{1}}} }} }}
{{#vardefine:latd|{{integerpos|{{{1}}} }} }}
{{#vardefine:latm|{{integer|{{#expr:({{positive|{{{1}}}}} - {{integerpos|{{{1}}}}}) * 60}} }} }}
{{#vardefine:latm|{{integer|{{#expr:({{positive|{{{1}}}}} - {{integerpos|{{{1}}}}}) * 60}} }} }}
{{#vardefine:lats|{{#expr:({{positive|{{{1}}}}} - {{integerpos|{{{1}}}}}) - ({{integer|{{#expr:({{positive|{{{1}}}}} - {{integerpos|{{{1}}}}}) * 60}} }}) / 60) * 360) round0}} }}
{{#vardefine:lats|{{#expr:({{positive|{{{1}}}}} - {{integerpos|{{{1}}}}} - ({{integer|{{#expr:({{positive|{{{1}}}}} - {{integerpos|{{{1}}}}}) * 60}} }}) / 60) * 3600 round0}} }}
{{#vardefine:longd|{{integerpos|{{{2}}} }} }}
{{#vardefine:longd|{{integerpos|{{{2}}} }} }}
{{#vardefine:longm|{{integer|{{#expr:({{positive|{{{2}}}}} - {{integerpos|{{{2}}}}}) * 60}} }} }}
{{#vardefine:longm|{{integer|{{#expr:({{positive|{{{2}}}}} - {{integerpos|{{{2}}}}}) * 60}} }} }}
{{#vardefine:longs|{{#expr:({{positive|{{{2}}}}} - {{integerpos|{{{2}}}}}) - ({{integer|{{#expr:({{positive|{{{2}}}}} - {{integerpos|{{{2}}}}}) * 60}} }}) / 60) * 360) round0}} }}
{{#vardefine:longs|{{#expr:({{positive|{{{2}}}}} - {{integerpos|{{{2}}}}} - ({{integer|{{#expr:({{positive|{{{2}}}}} - {{integerpos|{{{2}}}}}) * 60}} }}) / 60) * 3600 round0}} }}
{{#var:latd}}° {{#var:latm}}'{{#var:lats}}" {{#var:NS}}&nbsp;{{#var:longd}}° {{#var:longm}}' {{#var:longs}}" {{#var:EW}}<noinclude>[[Category:Working templates]]
{{#var:latd}}°{{#var:latm}}{{#var:lats}}''"''{{#var:NS}},&nbsp;{{#var:longd}}°{{#var:longm}}{{#var:longs}}''"''{{#var:EW}}<noinclude>[[Category:Working templates|Lat & long 2]]

Latest revision as of 16:43, 10 October 2012





Expression error: Unexpected < operator.°Expression error: Unexpected < operator.Expression error: Unexpected < operator."S, Expression error: Unexpected < operator.°Expression error: Unexpected < operator.Expression error: Unexpected < operator."W