Template:Maplink
Ngoại quan
Mô bản văn đương[Tra khán] [Biên tập] [Lịch sử] [Thanh trừ hoãn tồn]
Thử mô bản sử dụngLua ngữ ngôn: |
Bổn mô bản sử dụngDuy cơ sổ cưTư nguyên:
This template uses theOpenStreetMaptag:
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 vi
Data:
,Tịnh thả dĩ.map
Vi 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
- Phạm lệLai tự cộng hưởng tư nguyên trung đích địa đồ cách thức sổ cư( lai nguyên:Data:ecos.fws.gov/Endangered habitat 58938/Plethodon neomexicanus.map):
{{maplink|from=}}
( sử dụngfrom=
Độc thủ.map
Cách thức, bất hàm tiền chuếData:
)
- Phạm lệLai tự GeoJSON nguyên thủy tư liêu( lai nguyên:{{Wikipedia:Map data/Main Roads Western Australia/Forrest Highway}}):
{{maplink|raw=}}
( sử dụng GeoJSON, kiến nghị tương tư liêu lai nguyên khảm nhập tựWikipedia:Map data)
- Lai tự khai phóng nhai đồ ( OSM ):
- Chú ý: Tất tu tương mục tiêu hiệt đích duy cơ sổ cư hạng mục ( Wikidata ) liên kết đáo OSM
- Tuyến đoạn tư liêu:
{{maplink|type=line|id=}}
- Khu vực tư liêu:
{{maplink|type=shape|id=}}
- Khu vực tư liêu ( phản tuyển ):
{{maplink|type=shape-inverse|id=}}
- Điểm tư liêu( tọa tiêu ):
- ...Wikidata:
{{maplink|type=point|id=}}
- ... Đặc định tọa tiêu:
{{maplink|type=point|coord=}}
( tọa tiêu tư liêu thỉnh sử dụng {{Coord}} mô bản )
- ...Wikidata:
- Tưởng yếu hiển kỳ tại khuông giá trung, gia nhập thử tham sổ
|frame=yes
.
- 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 linkinline,title
- Displays the inline link as well as the title linktitle,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 định
no
Khả dĩ quan bế địa đồ liên kết đích đồ kỳ - zoom
- Phóng đại đẳng cấp, tòng
1
Đá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 định
yes
Hội thủ đại liên kết biến thành địa đồ khuông giá- plain
- Thiết định
yes
Hộ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 the
Data:
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 is
6
- 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 is
5E74F3
()
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
{{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
{{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 }}
{{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
Thượng thuậtVăn đươngKhảm nhậpTựTemplate:Maplink/doc.(Biên tập|Lịch sử) Biên giả khả dĩ tại bổn mô bản đíchSa hạp(Biên tập|Soa dị)HòaTrắc thí dạng lệ(Biên tập)Hiệt diện tiến hành thật nghiệm. Thỉnh tại/docTử hiệt diện trung thiêm gia phân loại.Bổn mô bản đích tử hiệt diện. |