Widget:Geo anchor
From CruisersWiki
(Difference between revisions)
m (moved Widget:Geo link to Widget:Geo anchor: not a full link) |
|||
(5 intermediate revisions not shown) | |||
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:'quotes'}-->" target="_blank"> |
Latest revision as of 14:08, 11 November 2018
<a data-lat="" data-lon="" href="" target="_blank">