Widget:Geo anchor
From CruisersWiki
(Difference between revisions)
(sanitizing) |
|||
Line 1: | Line 1: | ||
- | <!--{ | + | <!--{* see Template:Geo link *}--><!--{ |
assign var='c' value=$lat}--><!--{ | assign var='c' value=$lat}--><!--{ | ||
assign var='d' value=$c|regex_replace:"/([^ ]+) ([^ ]+) ([^ ]+)/":"\\1"}--><!--{ | assign var='d' value=$c|regex_replace:"/([^ ]+) ([^ ]+) ([^ ]+)/":"\\1"}--><!--{ | ||
Line 17: | Line 17: | ||
math assign='d' equation="d*(-1)" d=$lat}--><!--{/if}--><!--{ | math assign='d' equation="d*(-1)" d=$lat}--><!--{/if}--><!--{ | ||
assign var='lon' value=$d}--><!--{ | assign var='lon' value=$d}--><!--{ | ||
- | /if}--><a data-lat="<!--{$lat}-->" data-lon="<!--{$lon}-->" href="<!--{$href}-->"> | + | /if}--><a data-lat="<!--{$lat|escape}-->" data-lon="<!--{$lon|escape}-->" href="<!--{$href|escape:'url'}-->"> |
Revision as of 11:50, 11 September 2017
<a data-lat="" data-lon="" href="">