Module:Location map/data/Russia Chukotka Autonomous Okrug/doc: Difference between revisions

Content deleted Content added
created documentation with examples
 
 
(17 intermediate revisions by 6 users not shown)
Line 1:
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
{{Documentation subpage}}
{{Module:Location map/data/doc
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
|examples =
 
'''Template:Location map Russia Chukotka Autonomous Okrug''' is a ___location map definition used to overlay markers and labels on an ''[[equirectangular projection]]'' map of the [[Chukotka Autonomous Okrug]] in [[Russia]]. It is used by "[[Template:Location map]]" when invoked with parameter "Russia Chukotka Autonomous Okrug": <code><nowiki>{{Location map | Russia Chukotka Autonomous Okrug | ...}}</nowiki></code>. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.
 
[[Image:{{{{BASEPAGENAME}}|image}}|left|thumb|200px|Location map for {{{{BASEPAGENAME}}|name}}]]
{| class="wikitable" style="font-size:95%;"
|-
! colspan="3" style="background-color:#DDD; color:#000" | Map parameters
|-
! name
| {{{{BASEPAGENAME}}|name}}
| name used in default map caption
|-
! image
| {{{{BASEPAGENAME}}|image}}
| file name of map image, without "Image:" or "File:"
|-
! top
| {{{{BASEPAGENAME}}|top}}
| latitude at top of equirectangular projection map
|-
! bottom
| {{{{BASEPAGENAME}}|bottom}}
| latitude at bottom of equirectangular projection map
|-
! left
| {{{{BASEPAGENAME}}|left}}
| longitude at left edge of equirectangular projection map
|-
! right
| {{{{BASEPAGENAME}}|right}}
| longitude at right edge of equirectangular projection map {{#ifexpr: {{{{BASEPAGENAME}}|right}} > 180 | <br/>(actually {{#expr:{{{{BASEPAGENAME}}|right}}-360}}, adjusted via ''crosses180'' parameter)}}
|-
! crosses180
| {{{{BASEPAGENAME}}|crosses180}}
| for equirectangular projection maps that cross the [[180th meridian]]
|}
{{clear}}
 
== Usage ==
For a description of the parameters, see {{tl|Location map}} and {{tl|Location map many}}.
 
=== Location map: Eastern hemisphere, Deg/Min/Sec coordinates ===
{{Location map | Russia Chukotka Autonomous Okrug
Line 130 ⟶ 90:
| lat = 66.15944
| long = -169.80917
}}
</pre>
{{clear}}
 
As shown above, the current implementation of [[Template:Location map]] does not properly display the marker on an ''equirectangular projection'' maps using <code>crosses180</code> when given a negative decimal longitude (western hemisphere). One workaround is to include the <code>lon_dir</code> parameter as shown below:
{{Location map | Russia Chukotka Autonomous Okrug
| width = 200 | float = right
| caption = Location of [[Uelen]] in Chukotka
| label = Uelen
| background = lightgreen
| position = left
| lat = 66.15944
| long = -169.80917
| lon_dir = W
}}
<pre>
{{Location map | Russia Chukotka Autonomous Okrug
| width = 200 | float = right
| caption = Location of [[Uelen]] in Chukotka
| label = Uelen
| background = lightgreen
| position = left
| lat = 66.15944
| long = -169.80917
| lon_dir = W
}}
</pre>
Line 216 ⟶ 151:
</pre>
{{clear}}
| see also =
 
* [[Module:Location map/data/Russia]]
As shown above, the current implementation of [[Template:Location map many]] does not properly display the marker on ''equirectangular projection'' maps using <code>crosses180</code> when given a negative decimal longitude (western hemisphere). One workaround is to include the parameter <code>lon_dir</code> (or <code>lon2_dir</code>, <code>lon3_dir</code>, etc.):
}}<includeonly>
{{Location map many | Russia Chukotka Autonomous Okrug
<!-- Add categories here -->
| width = 200 | float = right
[[Category:Federal subjects of Russia ___location map modules|Chukotka Autonomous Okrug]]
| caption = [[Anyuysk]] and [[Uelen]] in Chukotka
[[Category:Location map modules crossing the 180th meridian|Russia Chukotka Autonomous Okrug]]
| label = Anyuysk | label_size = 90
| bg = lightblue | pos = right
| lat = 68.3
| long = 161.633
| label2 = Uelen | label2_size = 90
| bg2 = lightgreen | pos2 = left
| lat2 = 66.15944
| long2 = -169.80917
| lon2_dir = W
}}
<pre>
{{Location map many | Russia Chukotka Autonomous Okrug
| width = 200 | float = right
| caption = [[Anyuysk]] and [[Uelen]] in Chukotka
| label = Anyuysk | label_size = 90
| bg = lightblue | pos = right
| lat = 68.3
| long = 161.633
| label2 = Uelen | label2_size = 90
| bg2 = lightgreen | pos2 = left
| lat2 = 66.15944
| long2 = -169.80917
| lon2_dir = W
}}
</pre>
{{clear}}
 
== See also ==
* [[Template:Location map Russia]]
* [[Template:Location map Russia (equirectangular)]]
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Russia ___location map templates]]
[[Category:Location map templates crossing 180th meridian]]
 
[[de:Vorlage:Positionskarte Russland Autonomer Kreis der Tschuktschen]]
[[fr:Modèle:Géolocalisation/District autonome de Tchoukotka]]
[[os:Шаблон:ПозКартæ Уæрæсе Чукоткæйы автономон зылд]]
[[lt:Šablonas:Location map Čiukčių autonominė apygarda]]
[[nl:Sjabloon:Positiekaart Rusland Tsjoekotka]]
[[nn:Mal:Kartposisjon Tsjukotka]]
[[ru:Шаблон:ПозКарта Россия Чукотский автономный округ]]
</includeonly>