|
|
(ഒരേ ഉപയോക്താവ് ചെയ്ത ഇടയ്ക്കുള്ള 2 നാൾപ്പതിപ്പുകൾ പ്രദർശിപ്പിക്കുന്നില്ല) |
വരി 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: |
വരി 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=== |