Widget:Geo anchor

From CruisersWiki

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

Revision as of 13:03, 16 May 2017

-

Personal tools
advertisement
Friends of Cruisers Wiki