Template:Infobox mapframe/doc/parameters
外观

- 基本参数:
- mapframe — 指定yes或no以显示或隐藏地图,覆盖默认值。默认:no
- mapframe-caption — Caption for the map.默认:'blank(或如果设置了
|mapframe-geomask=
,“Location ingeomask's label
”) - mapframe-custom — 使用自定义地图代替自动mapframe。请指定
{{maplink}}
模板,或其他可生成mapframe的模板,或图像名称。如果使用,后续的mapframe参数将被忽略。默认:未指定 - mapframe-id或id或qid — 要使用的维基数据项目的QID。默认:当前页面对应数据项
- mapframe-coordinates或mapframe-coord或 coordinates或coord — 使用的坐标,而不是维基数据上的坐标。使用{{Coord}}模板,例如:
|coord=
。默认:来自维基数据的坐标{{Coord|12.34|N|56.78}}
- mapframe-wikidata — 当设置了
|coord=
时,设为yes
以显示维基数据中的形状/线条特征(如果有)。默认:'未指定
- 自定义显示哪些功能:
- mapframe-shape — 设为
none
时关闭形状特征的显示。设为inverse
时使用反转形状(geomask)代替常规形状。默认:'未指定 - mapframe-point — 设为
none
时关闭点特征的显示。设为on
时强制显示点标记。默认:'未指定 - mapframe-line — Turn off display of line feature by setting to
none
.默认:'未指定 - mapframe-geomask — Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number),或a property that specifies the item to use (e.g.
P17
for 国家 (P17),P131
for 所在行政领土实体 (P131)).默认:'未指定 - mapframe-switcher — set to
auto
或geomasks
或zooms
to enable Template:Switcher-style switching between multiple mapframes.默认:'未指定auto
— switch geomasks found in 位置 (P276) and 所在行政领土实体 (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.geomasks
— switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameterzooms
— switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of3
), "zoomed out" is1
, and "zoomed midway" is the average
- mapframe-shape — 设为
- Other optional parameters:
- mapframe-frame-width或mapframe-width — Frame width.默认:270
- mapframe-frame-height或mapframe-height — Frame height.默认:200
- mapframe-shape-fill — Color used to fill shape features.默认:#606060
- mapframe-shape-fill-opacity — Opacity level of shape fill, a number between 0 and 1.默认:0.5
- mapframe-stroke-color或mapframe-stroke-colour — Color of line features, and outlines of shape features.默认:#ff0000
- mapframe-stroke-width — Width of line features, and outlines of shape features; default is "5".默认:5
- mapframe-marker — Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. 默认:'未指定 (i.e. blank)
- Can also be set to
blank
to override any default marker symbol
- Can also be set to
- mapframe-marker-color或mapframe-marker-colour — Background color for the marker.默认:#5E74F3
- mapframe-geomask-stroke-color或mapframe-geomask-stroke-colour — Color of outline of geomask shape.默认:#555555
- mapframe-geomask-stroke-width — Width of outline of geomask shape.默认:2
- mapframe-geomask-fill — Color used to fill outside geomask features.默认:#606060
- mapframe-geomask-fill-opacity — Opacity level of fill outside geomask features, a number between 0 and 1.默认:0.5
- mapframe-zoom — Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length或area.默认:10
- mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 — Determine zoom level by passing in object's length (in kilometres或miles)或area (in square kilometres或square miles).默认:未指定
- mapframe-frame-coordinates或mapframe-frame-coord — Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}.默认:derived from item coordinates