Widget:Geo anchor

From CruisersWiki

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

Revision as of 13:04, 16 May 2017

-

Personal tools
advertisement
Friends of Cruisers Wiki