"ഫലകം:Maplink/doc" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

(ചെ.) ഒരു പതിപ്പ് ഇറക്കുമതി ചെയ്തു
add original link
 
(ഒരേ ഉപയോക്താവ് ചെയ്ത ഇടയ്ക്കുള്ള 6 നാൾപ്പതിപ്പുകൾ പ്രദർശിപ്പിക്കുന്നില്ല)
വരി 2: വരി 2:
<includeonly>{{template shortcut|Mapframe}}</includeonly>
<includeonly>{{template shortcut|Mapframe}}</includeonly>
{{Lua|Module:Mapframe}}
{{Lua|Module:Mapframe}}
{{Uses Wikidata|P625}}
{{Uses Wikidata}}
{{Sister project
{{Sister project
|image=[[File:Openstreetmap logo.svg|40x40px]]
|image=[[File:Openstreetmap logo.svg|40px]]
|text=This template uses the [[OpenStreetMap]] tag:
|text=This template uses the [[OpenStreetMap]] tag:
*'''''[http://wiki.openstreetmap.org/wiki/Key:wikidata wikidata]''''' (see [http://wiki.openstreetmap.org/wiki/Talk:Key:wikidata talk]; [https://taginfo.openstreetmap.org/keys/wikidata taginfo])
*'''''[http://wiki.openstreetmap.org/wiki/Key:wikidata wikidata]''''' (see [http://wiki.openstreetmap.org/wiki/Talk:Key:wikidata talk]; [https://taginfo.openstreetmap.org/keys/wikidata taginfo])
വരി 10: വരി 10:
<!--{{High-use|7,000+}}-->
<!--{{High-use|7,000+}}-->
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
This template Imported from [https://en.wikipedia.org/wiki/Template:Maplink/doc English Wikipedia]


This template adds a link, or frame, which will display map data – either from:
This template adds a link, or frame, which will display map data – either from:
വരി 17: വരി 18:
*raw GeoJSON, preferably transcluded from another page
*raw GeoJSON, preferably transcluded from another page
Note:
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.
*GeoJSON files cannot currently be directly uploaded. Instead, on [https://commons.wikimedia.org/wiki/Main_Page Commons], create a page that is in the <code>Data:</code> namespace and ends in <code>.map</code> – see [https://www.mediawiki.org/wiki/Help:Map_Data 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.
*To make OpenStreetMap (OSM) features available, add the Wikidata key to the OSM relation (and wait 1 or 2 days) – see [https://www.mediawiki.org/wiki/Help:Extension:Kartographer#External_data mw:Help:Extension:Kartographer#External_data] and [https://www.mediawiki.org/wiki/Help:Extension:Kartographer/OSM mw:Help:Extension:Kartographer/OSM] for further information.


==Uses==
==Uses==
വരി 35: വരി 36:
==Usage==
==Usage==
Basic usage
Basic usage
*{{maplink|from=ecos.fws.gov/Endangered habitat 58938/Plethodon neomexicanus.map|text=Data page}} on Commons {{small|1=(e.g. [[c:Data:ecos.fws.gov/Endangered habitat 58938/Plethodon neomexicanus.map|Data:ecos.fws.gov/Endangered habitat 58938/Plethodon neomexicanus.map]])}}:
 
*:<code><nowiki>{{maplink|from=}}</nowiki></code> (specify .map data page in from=, excluding Data prefix)
*{{maplink|raw={{Wikipedia:Map data/Main Roads Western Australia/Forrest Highway}}|text=Raw GeoJSON data}} {{small|1=(e.g. <nowiki>{{</nowiki>[[Wikipedia:Map data/Main Roads Western Australia/Forrest Highway]]<nowiki>}}</nowiki>)}}:
*:<code><nowiki>{{maplink|raw=}}</nowiki></code> (specify raw GeoJSON, preferably transcluded from a subpage of [[Wikipedia:Map data]])
*{{maplink|type=line|id=Q1094308|text=Line of a border or a linear feature}} from OSM:
*{{maplink|type=line|id=Q1094308|text=Line of a border or a linear feature}} from OSM:
*:<code><nowiki>{{maplink|type=line|id=}}</nowiki></code> (Wikidata id only required if another article's Wikidata page is to be used)
*:<code><nowiki>{{maplink|type=line|id=}}</nowiki></code> (Wikidata id only required if another article's Wikidata page is to be used)
വരി 45: വരി 43:
*{{maplink|type=shape-inverse|id=Q1094308|text=Inverted shape}} from OSM:  
*{{maplink|type=shape-inverse|id=Q1094308|text=Inverted shape}} from OSM:  
*:<code><nowiki>{{maplink|type=shape-inverse|id=}}</nowiki></code> (Wikidata id only required if another article's Wikidata page is to be used)
*:<code><nowiki>{{maplink|type=shape-inverse|id=}}</nowiki></code> (Wikidata id only required if another article's Wikidata page is to be used)
*{{maplink|type=point|id=Q1094308|text=Point feature}} (coordinates):
*:...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}}.
*To show in a frame, add the parameter {{para|frame|yes}}.
{{maplink|frame=yes|type=line|id=Q1094308|text=Mapframe example}}
{{maplink|frame=yes|type=line|id=Q1094308|text=Mapframe example}}
വരി 177: വരി 172:


==Examples and tips==
==Examples and tips==
===Multiple features===
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|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
}}
<pre>{{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
}}
</pre>
{{-}}
{{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
}}
<pre>
{{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
}}
</pre>
{{-}}


===Infoboxes===
===Infoboxes===
"https://schoolwiki.in/ഫലകം:Maplink/doc" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്