टेम्पलेट:OSM Location map/doc: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
छो ±श्रेणी सुधार कइल गइल
छो Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
 
लाइन 112:
{|
|-
| <sourcesyntaxhighlight lang="html">{{OSM Location map <!--There are only two essential parameters: -->
| coord = {{coord|53.4146|-4.3341}} <!--lat and long coordinates for middle of the map -->
| zoom = 15 <!--zoom 0=whole world, 18=a street.-->
}}</sourcesyntaxhighlight>
|}
{{clear}}
लाइन 135:
{|
|-
| <sourcesyntaxhighlight lang="html">{{OSM Location map
| coord = {{coord|53.394|-4.450}}
| zoom = 13
लाइन 148:
| mark-image = The Llanfechell Triangle - geograph.org.uk - 1260817.jpg
| mark-description=Group of three prehistoric standing stones thought to date to the Bronze Age, at [[Llanfechell]], [[Anglesey]]
}}</sourcesyntaxhighlight>
|}
{{-}}
लाइन 157:
! Blank code with comments
|-
|<sourcesyntaxhighlight lang="html">{{OSM Location map
| coord = {{coord| | }}
| zoom =
लाइन 169:
| mark-image =
| mark-description =
}}</sourcesyntaxhighlight>
|<sourcesyntaxhighlight lang="html">{{OSM Location map
| coord = {{coord| | }} <!-- {{coord}} has various formats for latitude and longitude -->
| zoom = <!-- (1=whole world, 18=a street)-->
लाइन 183:
| mark-image = <!-- | these are only used within the full screen linked page -->
| mark-description = <!-- | -->
}}</sourcesyntaxhighlight>
|}
{{-}}
लाइन 236:
!Example code for the two-marker map one the right:
|-
| <sourcesyntaxhighlight lang="html">{{OSM Location map
| coord = {{coord|53.395|-4.452}}
| zoom = 14
लाइन 271:
| mark-image2 = The Llanfechell Triangle - geograph.org.uk - 1260817.jpg
|mark-description2=Group of three prehistoric standing stones thought to date to the Bronze Age, at [[Llanfechell]], [[Anglesey]]
}}</sourcesyntaxhighlight>
|}
 
लाइन 281:
{|
|-
<sourcesyntaxhighlight lang="html">
| minimap = file <!--this minimap is used in the Llanfechell example above-->
| mini-file = Wales relief location map.jpg
लाइन 289:
| minipog-y = 4
| scalemark = 66 <!-- shifts the scalemark further to the left -->
</syntaxhighlight>
</source>
|}
If the area of the actual map is a large portion of the mini-map, an open red box can be included instead of a dot, so as to show the bounds of the main map. To use this feature, simply specify the width of the required box: <code>minimap-boxwidth=xx</code> where xx = the pixel width of the box. In general anything much below xx=15 will be better served by a dot. The required width will require some trial and error to pin down. The box height is then matched in proportion to the actual map.
लाइन 301:
! Blank starter-code for text on an arcs, with starter-examples for different arc-patterns.
|-
| <sourcesyntaxhighlight lang="html">| arc-coordA={{coord|xxx|yyyy}} <!-- coordinates of first letter -->
| arc-textA= <!-- Add your text here -->
| arc-angleA= <!-- in degrees, -180 to 180. 0 will start as horizontal, -90 straight up, 90 straight down -->
लाइन 310:
| arc-text-colorA= <!-- sets text color. #000000 color hexes and standardised OSM Location map colors are accepted -->
| ellipse-factorA=1.0 <!-- 1= notionally circular, 0.5 to 1.0 will flattern top and bottom, above 1.0 flattens the sides -->
</syntaxhighlight>
</source>
|-
! Details about using artc-text, with starter-examples for different arc-patterns.
लाइन 511:
! Worked example of a map with multiple markers and text: Pentre Ifan
|-
| <sourcesyntaxhighlight lang="html">{{OSM Location map
| coord = {{coord|52.0|-4.810}}
| zoom = 11
लाइन 580:
| arc-textB=PRESSELI HILLS
}}
</syntaxhighlight>
</source>
|}
 
लाइन 708:
If numbered dots are needed, instead of (or as well as) text labels, this can be achieved using the built in shapes. For example, <code>shape1=n-circle</code> will place a numbered dot at that coord position (or <code>l-circle</code> for letters). Generally it is much better to use the dots in sequence, so each numbered mark gives a numbered dot, and they will match the full screen ones. If <code>auto-caption=1</code> then the caption will generate a numbered list using the <code>mark-title</code> entries. For example:-
 
<sourcesyntaxhighlight lang="text">
{{OSM Location map
| coord={{coord|52.620|-1.112}}
लाइन 732:
| auto-caption=1
}}
</syntaxhighlight>
</source>
The other built-in shapes can be used in the same way (<code>n-square</code>, <code>n-diamond</code> etc.). The <code>shape-outline1=</code> value sets the colour for the number (unlike normal, when it sets the shape-outline), and as with the others, only the <code>mark1</code> parameter values need to be set, to establish the default for this map, which can be overridden as required. The <code>numbered1..2..3 etc</code> parameters can override the automatic numbers or letters to use your own values for each mark. {{tl|Flushing Meadows-Corona Park map}} is a useful real life example in template form.
===Use in infoboxes===
लाइन 743:
|-
|-
| <sourcesyntaxhighlight lang="html" style="overflow: auto; margin-right: 5px;">
{{OSM Location map
| coord={{coord|51.46534|-0.44542}}
लाइन 793:
| label-pos1=bottom
| mark-title1 = Heathrow Airport Terminals 1 & 3
}}</sourcesyntaxhighlight>
|
{{OSM Location map
लाइन 874:
|-
|-
| <sourcesyntaxhighlight lang="html">{{OSM Location map
| coord = {{coord| | }}
| zoom=
लाइन 962:
| shape2 =
| shape-color2 = <!-- ... and so on for all the parameters above, for all numbers up to 30 -->
}}</sourcesyntaxhighlight>
|}