Widget:Chartlet static
From CruisersWiki
(Difference between revisions)
Line 2: | Line 2: | ||
<!--{ | <!--{ | ||
assign var='c' value=$lat}--><!--{ | assign var='c' value=$lat}--><!--{ | ||
- | assign var='d' value=$c|regex_replace:"/([^ ]+) | + | assign var='d' value=$c|regex_replace:"/([^ ]+) ([^ ]+) ([^ ]+)/":"\\1"}--><!--{ |
if $d != $c}--><!--{ | if $d != $c}--><!--{ | ||
- | math assign='d' equation="d+m/60" d=$d m=$c|regex_replace:"/([^ ]+) | + | math assign='d' equation="d+m/60" d=$d m=$c|regex_replace:"/([^ ]+) ([^ ]+) ([^ ]+)/":"\\2"}--><!--{ |
- | assign var='h' value=$c|regex_replace:"/([^ ]+) | + | assign var='h' value=$c|regex_replace:"/([^ ]+) ([^ ]+) ([^ ]+)/":"\\3"}--><!--{ |
if $h == 's' || $h == 'S' || $h == 'w' || $h == 'W'}--><!--{ | if $h == 's' || $h == 'S' || $h == 'w' || $h == 'W'}--><!--{ | ||
math assign='d' equation="d*(-1)" d=$lat}--><!--{ | math assign='d' equation="d*(-1)" d=$lat}--><!--{ | ||
Line 12: | Line 12: | ||
/if}--><!--{ | /if}--><!--{ | ||
assign var='c' value=$lon}--><!--{ | assign var='c' value=$lon}--><!--{ | ||
- | assign var='d' value=$c|regex_replace:"/([^ ]+) | + | assign var='d' value=$c|regex_replace:"/([^ ]+) ([^ ]+) ([^ ]+)/":"\\1"}--><!--{ |
if $d != $c}--><!--{ | if $d != $c}--><!--{ | ||
- | math assign='d' equation="d+m/60" d=$d m=$c|regex_replace:"/([^ ]+) | + | math assign='d' equation="d+m/60" d=$d m=$c|regex_replace:"/([^ ]+) ([^ ]+) ([^ ]+)/":"\\2"}--><!--{ |
- | assign var='h' value=$c|regex_replace:"/([^ ]+) | + | assign var='h' value=$c|regex_replace:"/([^ ]+) ([^ ]+) ([^ ]+)/":"\\3"}--><!--{ |
if $h == 's' || $h == 'S' || $h == 'w' || $h == 'W'}--><!--{ | if $h == 's' || $h == 'S' || $h == 'w' || $h == 'W'}--><!--{ | ||
math assign='d' equation="d*(-1)" d=$lat}--><!--{/if}--><!--{ | math assign='d' equation="d*(-1)" d=$lat}--><!--{/if}--><!--{ |
Revision as of 10:57, 11 September 2017