"साँचा:Maplink/doc": अवतरणों में अंतर

document |raw=
mapframe parameters
पंक्ति 9:
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
 
This template adds a link, or frame, which will display map data – either from:
*data stored in GeoJSON format on Commons
*line/polygon features in OpenStreetMap.
*coordinates, either supplied or from Wikidata
*raw GeoJSON, preferably transcluded from another page
Note:
 
*GeoJSON files cannot currently be directly uploaded. Instead, on [[c:|Commons]], create a page that is in the <code>Data:</code> namespace and ends in <code>.map</code> – see [[mw:Help:Map Data]] for further information.
*To make OpenStreetMap (OSM) features available, add the Wikidata key to the OSM relation (and wait 1 or 2 days) – see [[mw:Help:Extension:Kartographer#External_data]] and [[mw:Help:Extension:Kartographer/OSM]] for further information.
पंक्ति 46:
*:...from Wikidata:<br/><code><nowiki>{{maplink|type=point|id=}}</nowiki></code> (Wikidata id only required if another article's Wikidata page is to be used)
*:...from specified coordinates:<br/><code><nowiki>{{maplink|type=point|coord=}}</nowiki></code> (specify coordinates using {{tl|Coord}} template)
*To show in a frame, add the parameter {{para|frame|yes}}
{{maplink|frame=yes|type=line|id=Q1094308|text=Mapframe example}}
 
{{-}}
Full parameter set – data page
<pre>
Line 141 ⟶ 144:
;zoom
:Zoom level, from <code>1</code> to <code>18</code> (larger numbers zoom in further); default is automatically determined by the map
Mapframe parameters (only work with inline display)
 
;frame
:Set to "yes" to show a map frame instead of a link
;frame-width
:Width of the map frame, default is <code>300</code>
;frame-height
:Width of the map frame, default is <code>200</code>
;frame-latitude
:''(or '''frame-lat''')''
:Optional - alternate latitude coordinate for initial placement of map
;frame-longitude
:''(or '''frame-lat''')''
:Optional - alternate longitude coordinate for initial placement of map
==Things this template can't do==
This template is designed to make it simple to insert a map into a page. It supports the most common types of usage, but some of the capabilities of the full ''<nowiki><maplink></nowiki>'' function are not available. Here are the things this template can't do: