Difference between revisions of "Module:Location map/data/Belarus/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(update description, examples, see also)
blackwiki>Zyxw
(add category, update comments)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
+
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
[[File:Belarus-CIA WFB Map.png|thumb|250px|Map of Belarus]]
 
[[File:Belarus-CIA WFB Map.png|thumb|250px|Map of Belarus]]
  
Line 46: Line 46:
 
* <tt>'''y''' = {{{{BASEPAGENAME}}|y}}</tt>
 
* <tt>'''y''' = {{{{BASEPAGENAME}}|y}}</tt>
 
*: An expression to calculate a location on the map via its [[latitude]]; evaluates as 0 along the top edge and 100 along the bottom edge
 
*: An expression to calculate a location on the map via its [[latitude]]; evaluates as 0 along the top edge and 100 along the bottom edge
 +
}}{{#if:{{{{BASEPAGENAME}}|mark}}|
 +
 +
* <tt>'''mark''' = [[:File:{{{{BASEPAGENAME}}|mark}}|{{{{BASEPAGENAME}}|mark}}]] ([[File:{{{{BASEPAGENAME}}|mark}}|{{{{BASEPAGENAME}}|mark}}|8px]])</tt>
 +
*: The default mark image to display with this map. This can be overridden by the <code>mark</code> parameter in [[Template:Location map]], which would otherwise default to [[:File:Red pog.svg|Red pog.svg]] ([[File:Red pog.svg|8px]]).
 +
}}{{#if:{{{{BASEPAGENAME}}|marksize}}|
 +
 +
* <tt>'''marksize''' = {{{{BASEPAGENAME}}|marksize}}</tt>
 +
*: The default mark size (in [[pixel]]s) for the mark image displayed with this map (should not include <code>px</code>, for example <code>marksize={{{{BASEPAGENAME}}|marksize}}</code>, not <code>marksize={{{{BASEPAGENAME}}|marksize}}px</code>). This can be overridden by the <code>marksize</code> parameter in [[Template:Location map]], which would otherwise default to 8.
 
}}
 
}}
 
{{#if:{{{{BASEPAGENAME}}|image1}}|
 
{{#if:{{{{BASEPAGENAME}}|image1}}|
Line 63: Line 71:
 
=== Location map, using default map (image) ===
 
=== Location map, using default map (image) ===
 
{{Location map | Belarus
 
{{Location map | Belarus
| width  = 180
+
| width  = 200
 
| lat_deg = 53.90
 
| lat_deg = 53.90
 
| lon_deg = 27.57
 
| lon_deg = 27.57
Line 70: Line 78:
 
<pre style="width:30em">
 
<pre style="width:30em">
 
{{Location map | Belarus
 
{{Location map | Belarus
| width  = 180
+
| width  = 200
 
| lat_deg = 53.90
 
| lat_deg = 53.90
 
| lon_deg = 27.57
 
| lon_deg = 27.57
Line 81: Line 89:
 
{{Location map many | Belarus
 
{{Location map many | Belarus
 
| relief  = yes
 
| relief  = yes
| width    = 180
+
| width    = 200
 
| caption  = Two locations in Belarus
 
| caption  = Two locations in Belarus
 
| lat1_deg = 53.90
 
| lat1_deg = 53.90
Line 93: Line 101:
 
{{Location map many | Belarus
 
{{Location map many | Belarus
 
| relief  = yes
 
| relief  = yes
| width    = 180
+
| width    = 200
 
| caption  = Two locations in Belarus
 
| caption  = Two locations in Belarus
 
| lat1_deg = 53.90
 
| lat1_deg = 53.90
Line 108: Line 116:
 
{{Location map+ | Belarus
 
{{Location map+ | Belarus
 
| AlternativeMap = Relief Map of Belarus.png
 
| AlternativeMap = Relief Map of Belarus.png
| width  = 180
+
| width  = 200
 
| caption = Two locations in Belarus
 
| caption = Two locations in Belarus
 
| places  =
 
| places  =
Line 125: Line 133:
 
{{Location map+ | Belarus
 
{{Location map+ | Belarus
 
| AlternativeMap = Relief Map of Belarus.png
 
| AlternativeMap = Relief Map of Belarus.png
| width  = 180
+
| width  = 200
 
| caption = Two locations in Belarus
 
| caption = Two locations in Belarus
 
| places  =
 
| places  =
Line 153: Line 161:
 
{{Location map/doc/See also infobox templates}}
 
{{Location map/doc/See also infobox templates}}
 
<includeonly>
 
<includeonly>
<!-- Categories and interwikis go here: -->
+
<!-- Categories go here, and interwikis go in Wikidata -->
 +
[[Category:Location map by country templates|Belarus]]
  
 
</includeonly>
 
</includeonly>

Revision as of 14:17, 2 April 2013

Template:Location map Belarus is a location map definition used to overlay markers and labels on an equirectangular projection map of Belarus. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

Usage

These definitions are used by the following templates when invoked with parameter "Belarus":

Map definition

Alternative map

The map defined as image1 (Template:Location map/data/Belarus) can be displayed by using the relief or AlternativeMap parameters in {{Location map}}, {{Location map many}} and {{Location map+}}. The map defined as image2 (Template:Location map/data/Belarus) can only be displayed by using the AlternativeMap parameter. The use of these two parameters is shown in the examples below. Additional examples can be found at:

Examples using location map templates

Location map, using default map (image)

{{Location map | Belarus
| width   = 200
| lat_deg = 53.90
| lon_deg = 27.57
| label   = Minsk
}}

Location map many, using relief map (image1)

{{Location map many | Belarus
| relief   = yes
| width    = 200
| caption  = Two locations in Belarus
| lat1_deg = 53.90
| lon1_deg = 27.57
| label1   = Minsk
| lat2_deg = 52.13
| lon2_deg = 23.67
| label2   = Brest
}}

Location map+, using AlternativeMap

{{Location map+ | Belarus
| AlternativeMap = Relief Map of Belarus.png
| width   = 200
| caption = Two locations in Belarus
| places  =
  {{Location map~ | Belarus
  | lat_deg = 53.90
  | lon_deg = 27.57
  | label   = Minsk
  }}
  {{Location map~ | Belarus
  | lat_deg = 52.13
  | lon_deg = 23.67
  | label   = Brest
  }}
}}

See also

Location map templates
Infobox templates incorporating (passing values to) the Location map template
List