Widget:TChartlet static

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(Undo revision 188528 by Vadim (talk))
 
(3 intermediate revisions not shown)
Line 23: Line 23:
assign var='h' value=$height|replace:"px":""
assign var='h' value=$height|replace:"px":""
}--><!--{
}--><!--{
-
assign var='url' value="http://staticmap.openstreetmap.de/staticmap.php?center=`$lat`,`$lon`&zoom=`$zoom`&size=`$w`x`$h`&maptype=mapnik"
+
assign var='url' value="http://staticmap.openstreetmap.de/staticmap.php?center=`$lat`,`$lon`&zoom=`$zoom`&size=`$w`x`$h`&maptype=mapnik"|escape
}--><!--{
}--><!--{
assign var='style' value="width:`$width`; height:`$height`; background-image:url($url)"|escape
assign var='style' value="width:`$width`; height:`$height`; background-image:url($url)"|escape
-
}--><noscript><div class="chartlet-static"  style="width:<!--{$width}-->; height:<!--{$height}-->; background-image:url(<!--{$url}-->"></div></noscript><!--{*  
+
}--><noscript><img class="chartlet-static"  src="<!--{$url}-->"></noscript><!--{*  
no sure why it so, but noscript to be repeated, otherwise every other instance is not rendered
no sure why it so, but noscript to be repeated, otherwise every other instance is not rendered

Latest revision as of 16:33, 18 November 2018


see Template:Chartlet static

div class="chartlet-static" style="width:; height:; background-image:url(http://staticmap.openstreetmap.de/staticmap.php?center=,&zoom=&size=x&maptype=mapnik)"

img class="chartlet-static" src=""

      • wikimedia

div class="chartlet-static" style="width:; height:; background-image:url(https://maps.wikimedia.org/img/osm-intl,,,,x.png)"

assign var='url' value=https://maps.wikimedia.org/img/osm-intl,`$zoom`,`$lat`,`$lon`,`$w`x`$h`.png

Personal tools
advertisement
Friends of Cruisers Wiki