User:Zache/maptest externaldata

From MediaWiki.org
Jump to navigation Jump to search
<mapframe width=300 height=400 zoom=16 latitude=52.6319 longitude=-1.1398>
{
  "type": "ExternalData",
  "service": "page",
  "title": "Leicester_Castle_precinct.map"
}
</mapframe>

Same with width, height, zoom, lat and lon as template params[edit]

{{#tag:mapframe|[
{
  "type": "ExternalData",
  "service": "page",
  "title": "Leicester_Castle_precinct.map"
}
]
|width={{{width|250}}}
|height={{{height|250}}}
|zoom={{#ifeq:{{{zoom|}}}|-||{{{zoom|16}}}}}
|longitude={{{long|-1.1398}}}
|latitude={{{lat|52.6319}}}
|
}}