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

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(remove undisplayed copy of map values, add examples)
blackwiki>Zyxw
(update documentation and add example using Template:Location map+)
Line 2: Line 2:
 
<!-- Categories and interwikis go at the bottom of this page. -->
 
<!-- Categories and interwikis go at the bottom of this page. -->
  
The locator map definition, [[Template:Location map Croatia]], is intended for overlaying markers and labels on similar maps of [[Croatia]].
+
'''Template:Location map Croatia''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Croatia]]. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.  
 
 
[[Image:Croatia map blank.svg|left|thumb|180px|Map for Croatia]]
 
{| class="wikitable" width="340"
 
|-
 
| align=center colspan="3" style="background-color:#DDD; color:#000" | '''Map parameters'''
 
|-
 
| top    || {{Location map Croatia|top}}
 
| latitude at top of map
 
|-
 
| bottom || {{Location map Croatia|bottom}}
 
| latitude at bottom of map
 
|-
 
| left  || {{Location map Croatia|left}}
 
| longitude at map left edge
 
|-
 
| right || {{Location map Croatia|right}}
 
| longitude at map right edge
 
|-
 
| skew  || {{Location map Croatia|skew}}
 
| skew to narrow longitudes
 
|-
 
| lat_skew || {{Location map Croatia|lat_skew}}
 
| skew to arc latitudes at edges
 
|}
 
See {{tl|Location map}} for description of the parameters.
 
{{-}}<!-- force separation break -->
 
'''WARNING''': Having too much text in Template:Location_map_Croatia can kill mapping templates that use it, even inside "&lt;noinclude>".
 
  
 
== Usage ==
 
== Usage ==
The following mapping templates are can use data from this template:
+
These definitions are used by the following templates when invoked with parameter "Croatia":
* [[Template:Location map]] - puts one symbol/label on the map image;
+
* {{tlx|Location map | Croatia&nbsp;| ...}}
* [[Template:Location map many]] - puts multiple symbols/labels on the map image.
+
* {{tlx|Location map many | Croatia&nbsp;| ...}}
 +
* {{tlx|Location map+ | Croatia&nbsp;| ...}}
 +
* {{tlx|Location map~ | Croatia&nbsp;| ...}}
  
This template uses the mapping procedure "[[Template:Location map]]" which must be invoked with parameter "Croatia" to process the options before it uses the template.  Specify each of the individual parameters by using vertical bars: <nowiki>{{Location map | Croatia | ...}}</nowiki>.
+
== Map definition ==
 +
; name
 +
: used in default map caption (<tt>{{{{BASEPAGENAME}}|name}}</tt>)
 +
; image
 +
: the default map image, without "Image:" or "File:" (<tt>[[:File:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt>)
 +
; top
 +
: [[latitude]] at top edge of map, in [[decimal degrees]] (<tt>{{{{BASEPAGENAME}}|top}}</tt>)
 +
; bottom
 +
: latitude at bottom edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|bottom}}</tt>)
 +
; left
 +
: [[longitude]] at left edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|left}}</tt>)
 +
; right
 +
: longitude at right edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|right}}</tt>)
 +
; skew
 +
: skew to narrow longitudes (<tt>{{{{BASEPAGENAME}}|skew}}</tt>)
 +
; lat_skew
 +
: skew to arc latitudes at edges (<tt>{{{{BASEPAGENAME}}|lat_skew}}</tt>)
  
 
== Examples ==
 
== Examples ==
Line 58: Line 49:
 
=== Location map many ===
 
=== Location map many ===
 
{{Location map many | Croatia
 
{{Location map many | Croatia
| caption = Two locations in the Croatia
+
| caption = Two locations in Croatia
 
| width  = 250
 
| width  = 250
 
| lat    = 45.82
 
| lat    = 45.82
Line 69: Line 60:
 
<pre style="width:30em">
 
<pre style="width:30em">
 
{{Location map many | Croatia
 
{{Location map many | Croatia
| caption = Two locations in the Croatia
+
| caption = Two locations in Croatia
 
| width  = 250
 
| width  = 250
 
| lat    = 45.82
 
| lat    = 45.82
Line 81: Line 72:
 
{{clear}}
 
{{clear}}
  
 +
=== Location map+ ===
 +
{{Location map+ | Croatia
 +
| caption = Two locations in Croatia
 +
| width  = 250
 +
| places  =
 +
  {{Location map~ | Croatia
 +
  | lat  = 45.82
 +
  | long  = 15.98
 +
  | label = Zagreb
 +
  }}
 +
  {{Location map~ | Croatia
 +
  | lat  = 43.5
 +
  | long  = 16.43
 +
  | label = Split
 +
  }}
 +
}}
 +
<pre style="width:30em">
 +
{{Location map+ | Croatia
 +
| caption = Two locations in Croatia
 +
| width  = 250
 +
| places  =
 +
  {{Location map~ | Croatia
 +
  | lat  = 45.82
 +
  | long  = 15.98
 +
  | label = Zagreb
 +
  }}
 +
  {{Location map~ | Croatia
 +
  | lat  = 43.5
 +
  | long  = 16.43
 +
  | label = Split
 +
  }}
 +
}}
 +
</pre>
 +
{{clear}}
 +
 +
== See also ==
 +
* [[Template:Location map]]
 +
* [[Template:Location map+]]
 +
* [[Template:Location map many]]
 
<includeonly>
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->

Revision as of 10:29, 11 August 2011

Template:Location map Croatia is a location map definition used to overlay markers and labels on an equirectangular projection map of Croatia. 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 "Croatia":

Map definition

name
used in default map caption (Template:Location map/data/Croatia)
image
the default map image, without "Image:" or "File:" ([[:File:Template:Location map/data/Croatia|Template:Location map/data/Croatia]])
top
latitude at top edge of map, in decimal degrees (Template:Location map/data/Croatia)
bottom
latitude at bottom edge of map, in decimal degrees (Template:Location map/data/Croatia)
left
longitude at left edge of map, in decimal degrees (Template:Location map/data/Croatia)
right
longitude at right edge of map, in decimal degrees (Template:Location map/data/Croatia)
skew
skew to narrow longitudes (Template:Location map/data/Croatia)
lat_skew
skew to arc latitudes at edges (Template:Location map/data/Croatia)

Examples

Location map

{{Location map | Croatia
| width  = 250
| lat    = 45.82
| long   = 15.98
| label  = Zagreb
}}

Location map many

{{Location map many | Croatia
| caption = Two locations in Croatia
| width   = 250
| lat     = 45.82
| long    = 15.98
| label   = Zagreb
| lat2    = 43.5
| long2   = 16.43
| label2  = Split
}}

Location map+

{{Location map+ | Croatia
| caption = Two locations in Croatia
| width   = 250
| places  =
  {{Location map~ | Croatia
  | lat   = 45.82
  | long  = 15.98
  | label = Zagreb
  }}
  {{Location map~ | Croatia
  | lat   = 43.5
  | long  = 16.43
  | label = Split
  }}
}}

See also