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

plain parameter
update
पंक्ति 1:
{{Documentation subpage}}
{{Lua|Module:Mapframe}}
{{Uses Wikidata|P625}}
{{Sister project
Line 107 ⟶ 108:
 
==Parameters==
==For overall display==
;display
:How the template is displayed. Valid values are:
Line 113 ⟶ 115:
::<code>inline,title</code> - Displays the inline link as well as the title link
::<code>title,inline</code> - Same as above
;text
:Text to display for the link; default is "Map"
;icon
:Set to "no" to turn off the icon that appears next to the link
;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
:;plain
::Set to "yes" to show just the map without the surrounding frame
:;frame-width
::Width of the map frame, default is <code>300</code>
:;frame-height
::Height 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
 
===Raw GeoJSON===
;raw
:The raw GeoJSON, preferably transcluded from a subapge of [[Wikipedia:Map data]]
 
===For each feature===
Multiple features can be displayed on a single map. For each additional feature, add a sequential number to the end of the parameter name. For example, the second uses parameters like {{para|type2}}, {{para|id2}}, etc., the third feature {{para|type3}}, {{para|id3}}, etc., and so on.
;type
:Type of data. Valid values are:
Line 140 ⟶ 170:
;marker
:Name of Maki marker image to display at the point feature. See [[mw:Maps/Icons]] for options. Defaults to <code>marker</code> (plain marker) if not set.
;marker-color
;text
:''(or '''marker-colour''')''
:Text to display for the link; default is "Map"
:Color code ([[Web colors#Hex triplet|Hex triplet]]) specifying marker background color. Default is <code>5E74F3</code> ({{Color box|#5E74F3}})
;icon
 
:Set to "no" to turn off the icon that appears next to the link
;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
:;plain
::Set to "yes" to show just the map without the surrounding frame
:;frame-width
::Width of the map frame, default is <code>300</code>
:;frame-height
::Height 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: