Khiêu chuyển đáo nội dung

Template:Maplink

本页使用了标题或全文手工转换
被永久保护的模板
Duy cơ bách khoa, tự do đích bách khoa toàn thư
地图
Mapframe

MaplinkMaplink

Khái yếu

Bổn mô bản dụng ô hiển kỳ địa đồ tư tấn đích liên kết hoặc thị khuông giá, chi viện tư liêu cách thức như hạ:

  • Trữ tồn tại cộng hưởng tư nguyên trung đích GeoJSON cách thức sổ cư
  • Khai phóng nhai đồ trung đích tuyến dữ đa biên hình đồ trưng
  • Đề cung hoặc lai tự duy cơ sổ cư đích tọa tiêu
  • GeoJSON nguyên thủy tư liêu, preferably transcluded from another page

Chú ý:

  • Đương tiền GeoJSON đương án vô pháp trực tiếp thượng truyện, nhi thị nhu yếu tạiCộng hưởng tư nguyênTrung sang kiến nhất cá mệnh danh không gian viData:,Tịnh thả dĩ.mapVi kết vĩ đích hiệt diện — canh đa tư tấn thỉnh kiếnmw:Help:Map Data.
  • Vi liễu năng chính xác hiển kỳ khai phóng nhai đồ ( OSM ) đồ trưng, thỉnh tại sở đối ứng đích OSM quan liên thâu nhập Wikidata kiện trị ( tịnh thả đẳng đãi 1 hoặc 2 nhật ) — canh đa tư tấn thỉnh kiếnmw:Help:Extension:Kartographer#External_dataDữmw:Help:Extension:Kartographer/OSM.

Sử dụng phương pháp

Cơ bổn sử dụng

地图
Mapframe example
  • Ngạch ngoại đích tham sổ khả dĩ dụng ô khách chế hóa địa đồ

地图

Hoàn chỉnh tham sổ – data page

{{maplink
|display=
|from=
|zoom=
|text=
|icon=
}}

Hoàn chỉnh tham sổ – raw data

{{maplink
|display=
|raw= <!-- preferably {{Wikipedia:Map data/subpage}} -->
|zoom=
|text=
|icon=
}}

Hoàn chỉnh tham sổ – geoline/geoshape

{{maplink
|display=
|type=
|id=
|title=
|description=
|stroke-color=
|stroke-width=
|zoom=
|text=
|icon=
}}

Hoàn chỉnh tham sổ – điểm / tọa tiêu

{{maplink
|display=
|type=point
|id=
|title=
|description=
|coord=
|marker=
|zoom=
|text=
|icon=
}}

Tham sổ

display
Hiển kỳ mô bản. Khả dụng đích tham sổ;
inline- Only displays the inline link (you can forego this, as it is the default)
title- Only displays the title link
inline,title- Displays the inline link as well as the title link
title,inline- Same as above
text
Hiển kỳ liên kết đích văn tự hoặc thị địa đồ khuông giá đích miêu thuật, dự thiết thị "Map"
icon
Thiết địnhnoKhả dĩ quan bế địa đồ liên kết đích đồ kỳ
zoom
Phóng đại đẳng cấp, tòng1Đáo19( dũ đại cự ly dũ cận ), dự thiết thị tự động thủ quyết ô địa đồ
(Note that automatically determined zoom level does not work for mapframe maps except when previewing the page – seephab:T193455)

Mapframe parameters (only work with inline display)

frame
Thiết địnhyesHội thủ đại liên kết biến thành địa đồ khuông giá
plain
Thiết địnhyesHội hiển kỳ một hữu ngoại bộ khuông giá ( bao hàm miêu thuật ) đích địa đồ (textTham sổ tương hội bị hốt lược )
frame-align
Dụng ô hiệt diện đối tềleft,center,Hoặc thịright.Dự thiết thịright
frame-width
Địa đồ khuông giá khoan độ, dự thiết thị300
frame-height
Địa đồ khuông giá cao độ, dự thiết thị200
frame-latitude
(orframe-lat)
Optional - alternate latitude coordinate for initial placement of map
frame-longitude
(orframe-long)
Optional - alternate longitude coordinate for initial placement of map
If frame latitude and longitude are not set by parameters, then coordinates in|coord=will be used (if set), or coordinates will be retrieved from Wikidata (if available, for either the item specified in|id=parameter or for the page the template is placed on)

Raw GeoJSON

raw
Raw GeoJSON (preferably transcluded from a subpage ofWikipedia:Map data) as well as <maplink> functionality not available via the other parameters.See belowfor more information.

Các chủng hình thức

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|type2=,|id2=,etc., the third feature|type3=,|id3=,etc., and so on.

type
Type of data. Valid values are:
line– a geoline feature from OSM (e.g. a road)
shape– a geoshape feature from OSM (e.g. a state or province)
shape-inverse– a geomask feature from OSM (the inverse of a geoshape - allows an unobstructed view of the map beneath)
data– a geoJSON data page on Commons (parameter is optional in this case)
point– a point feature (coordinates)
id
(orids)
Wikidata id (Q-number) of the point feature, Wikidata id that the OSM line/shape feature is tagged with. Separate multiple ids with a comma. Defaults to the current page's Wikidata id (if|from=not set).
from
The JSON (.map) file from Commons to display (excluding theData:prefix)
title
Title of the feature (for features from OSM), displayed when the feature is clicked on; default is the page title
description
Description of the feature (for features from OSM), displayed when the feature is clicked on; optional
stroke-color
(orstroke-colour)
Color code for the color used to draw the feature (for features from OSM); default is#ff0000(red)
stroke-width
Width for the lines used to draw the feature (for features from OSM); default is6
coord
Coordinates to display for a point feature. Use {{Coord}} template to specify coordinates. If not set, coordinates will be retrieved from Wikidata.
marker
Name of Maki marker image to display at the point feature. Seemw:Maps/Iconsfor options. If not set, a plain marker will be shown without an image.
marker-color
(ormarker-colour)
Color code (Hex triplet) specifying marker background color. Default is5E74F3()


Phạm lệ

Multiple features allow you to:

  • Use external data from both Wikimedia Commons and OpenStreetMap together
  • Apply different styles to different external data features from OpenStreetMap
  • Include multiple links to external data from Wikimedia Commons


Đan nhất địa điểm 地图

{{maplink
|text = [[ cao hùng cao công ]] địa lý vị trí
|frame = yes
|zoom = 15
|type = point
|coord = {{Coord|22.649769|N|120.326540|E}}
|title = [[ cao hùng thị lập cao hùng cao cấp công nghiệp chức nghiệp học giáo ]]
|description = giản xưng cao hùng cao công, hùng công, KIHS, vị ô cao hùng thị tam dân khu đích nhất sở công lập cao chức.
|type2 =shape
|id2 =Q15907921
|plain = yes
}}

Đa cá địa điểm

地图
Quốc lập cao hùng khoa kỹ đại họcCác giáo khu phân bố đồ
{{maplink
|text = [[ quốc lập cao hùng khoa kỹ đại học ]] các giáo khu phân bố đồ
|frame = yes
|zoom = 10
|frame-width = 250
|frame-height = 400
|frame-align = right
|type3 = point
|coord3 = {{Coord|22.608539|120.272677|}}
|title3 = quốc lập cao hùng khoa kỹ đại học kỳ tân giáo khu
|description3 = [[ cao hùng thị ]][[ kỳ tân khu ]] trung châu tam lộ 482 hào
|type2 = point
|id2=Q6973907
|coord2 = {{Coord|22.649114|120.326640|}}
|title2 = quốc lập cao hùng khoa kỹ đại học kiến công giáo khu
|description2 = [[ cao hùng thị ]][[ tam dân khu ]] kiến công lộ 415 hào
|type = point
|coord = {{Coord|22.724591|120.314605|}}
|title = quốc lập cao hùng khoa kỹ đại học nam tử giáo khu
|description = [[ cao hùng thị ]][[ nam tử khu ]] hải chuyên lộ 142 hào
|type4 = point
|coord4 = {{Coord|22.754484|120.332831|}}
|title4 = quốc lập cao hùng khoa kỹ đại học đệ nhất giáo khu
|description4 = [[ cao hùng thị ]]<br>[[ nam tử khu ]] trác việt lộ 2 hào <br>[[ yến sào khu ]] đại học lộ 1 hào
|type5 = point
|coord5 = {{Coord|22.772374|120.398095|}}
|title5 = quốc lập cao hùng khoa kỹ đại học yến sào giáo khu
|description5 = [[ cao hùng thị ]][[ yến sào khu ]] thâm trung lộ 58 hào
}}
地图
Map
{{Maplink|frame=yes
|type=shape|id=Q3495894|title=Shape|description=Description of shape
|type2=line|id2=Q1318331|title2=Line|description2=Description of line
|type3=point|coord3={{coord|32|S|116|E}}|title3=Point|description3=Description of point
}}

地图

{{Maplink|frame=yes|plain=yes|frame-width=250|frame-height=280|zoom=6|frame-lat=29.185|frame-long=76.225
|type=shape-inverse|id=Q1174|title=Haryana
|type2=point|id2=Q200663|stroke-width=3|title2=Faridabad
}}

Trọng định hướng

Chú ý sự hạng

Mô bản biên tập thuyết minh

Tham kiến