Widget:Geo anchor

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
     math assign='d' equation="d*(-1)" d=$lat}--><!--{/if}--><!--{
     math assign='d' equation="d*(-1)" d=$lat}--><!--{/if}--><!--{
   assign var='lat' value=$d}--><!--{
   assign var='lat' value=$d}--><!--{
 +
/if}--><!--{
 +
assign var='c' value=$lon}--><!--{
 +
assign var='d' value=$c|regex_replace:"/([^ ]+) ([^ ]+) ([^ ]+)/":"\\1"}--><!--{
 +
if $d != $c}-->!!!<!--{
 +
  math assign='d' equation="d+m/60" d=$d m=$c|regex_replace:"/([^ ]+) ([^ ]+) ([^ ]+)/":"\\2"}--><!--{
 +
  assign var='h' value=$c|regex_replace:"/([^ ]+) ([^ ]+) ([^ ]+)/":"\\3"}--><!--{
 +
  if $h == 's' || $h == 'S' || $h == 'w' || $h == 'W'}--><!--{
 +
    math assign='d' equation="d*(-1)" d=$lat}--><!--{/if}--><!--{
 +
  assign var='lon' value=$d}--><!--{
/if}--><span> data-lat="<!--{$lat}-->" data-lon="<!--{$lon}-->" href="<!--{$href}-->"</span><!--{$content}-->
/if}--><span> data-lat="<!--{$lat}-->" data-lon="<!--{$lon}-->" href="<!--{$href}-->"</span><!--{$content}-->

Revision as of 14:17, 16 May 2017

!!!!!! data-lat="" data-lon="" href=""

Personal tools
advertisement
Friends of Cruisers Wiki