Talk:Simple image MediaWiki Extension

From OpenStreetMap Wiki
Jump to: navigation, search

It is unclear to me how the new syntax should be used in a parametrized template. The following template definition:

{{#if: {{{lat|}}} | {{#if: {{{lon|}}} | <map lat="{{{lat}}}" lon="{{{lon}}}" z="14" w="300" h="200" format="jpeg" /> }} }}

gives an error: "Map error: latitude (lat) value '%1' is not a valid number" — Fnielsen 12:30, 21 October 2009 (UTC)

Ok, so I found out of this myself via the page Template:ExampleLocation:

{#if: {{{lat|}}} | {{#if: {{{lon|}}} | {{#tag:map||lat="{{{lat}}}"|lon="{{{lon}}}"|z="13"|w="300"|h="200"|format="jpeg"}} }} }}

Thanks for the extension. — Fnielsen 13:22, 21 October 2009 (UTC)


Hi Harry, it would be fine to have a marker on the map:

<map lat="51.485" lon="-0.15" mlat="51.45" mlon="-0.1509" z="11" w="300" h="200" format="jpeg" />

and a smaller syntax:

<map lat=51.485 lon=-0.15 mlat=51.45 mlon=-0.1509 z=11 w=300 h=200 format=jpeg />

also I miss "style=..."

Thanks, --Markus 16:10, 25 December 2009 (UTC)