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

From blackwiki
Jump to navigation Jump to search
blackwiki>DarkoS
(-> SVG)
blackwiki>Zyxw
(remove undisplayed copy of map values, add examples)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{#switch:{{{1}}} <!-- COPY of Croatia map settings -->
+
<!-- Categories and interwikis go at the bottom of this page. -->
| name=Croatia
 
| top=47.25916
 
| bottom=42.07702
 
| left=13.20747
 
| right=19.6925
 
| image=Croatia map blank.svg
 
| skew = 1.0
 
| lat_skew = 0.000
 
}}<!-- COPY: Live settings in Location_map_Croatia.
 
--
 
-- The above switch-statement branches by text in parameter #1,
 
-- returning the associated value after each equals sign ("=").
 
-->
 
The locator map definition, '''Template:Location_map_Croatia''', is intended for overlaying markers and labels on similar maps of [[Croatia]].
 
  
Some of the related mapping procedures are:
+
The locator map definition, [[Template:Location map Croatia]], is intended for overlaying markers and labels on similar maps of [[Croatia]].
 
 
* [[Template:Location_map]] - puts 1 symbol/label on the map image;
 
* [[Template:Location_map_many]] - puts multiple symbols/labels on the map image.
 
 
 
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>.
 
[[image:Croatia map blank.svg|left|thumb|180px|Map for Croatia]]
 
  
 +
[[Image:Croatia map blank.svg|left|thumb|180px|Map for Croatia]]
 
{| class="wikitable" width="340"
 
{| class="wikitable" width="340"
 
|-
 
|-
Line 49: Line 30:
 
{{-}}<!-- force separation break -->
 
{{-}}<!-- force separation break -->
 
'''WARNING''': Having too much text in Template:Location_map_Croatia can kill mapping templates that use it, even inside "&lt;noinclude>".
 
'''WARNING''': Having too much text in Template:Location_map_Croatia can kill mapping templates that use it, even inside "&lt;noinclude>".
 +
 +
== Usage ==
 +
The following mapping templates are can use data from this template:
 +
* [[Template:Location map]] - puts one symbol/label on the map image;
 +
* [[Template:Location map many]] - puts multiple symbols/labels on the map image.
 +
 +
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>.
 +
 +
== Examples ==
 +
=== Location map ===
 +
{{Location map | Croatia
 +
| width  = 250
 +
| lat    = 45.82
 +
| long  = 15.98
 +
| label  = Zagreb
 +
}}
 +
<pre style="width:30em">
 +
{{Location map | Croatia
 +
| width  = 250
 +
| lat    = 45.82
 +
| long  = 15.98
 +
| label  = Zagreb
 +
}}
 +
</pre>
 +
{{clear}}
 +
 +
=== Location map many ===
 +
{{Location map many | Croatia
 +
| caption = Two locations in the Croatia
 +
| width  = 250
 +
| lat    = 45.82
 +
| long    = 15.98
 +
| label  = Zagreb
 +
| lat2    = 43.5
 +
| long2  = 16.43
 +
| label2  = Split
 +
}}
 +
<pre style="width:30em">
 +
{{Location map many | Croatia
 +
| caption = Two locations in the Croatia
 +
| width  = 250
 +
| lat    = 45.82
 +
| long    = 15.98
 +
| label  = Zagreb
 +
| lat2    = 43.5
 +
| long2  = 16.43
 +
| label2  = Split
 +
}}
 +
</pre>
 +
{{clear}}
  
 
<includeonly>
 
<includeonly>
 +
<!-- Categories and interwikis go here: -->
 +
[[Category:Location map by country templates|Croatia]]
 +
 
[[da:Skabelon:Kortpositioner Kroatien]]
 
[[da:Skabelon:Kortpositioner Kroatien]]
 
[[fr:Modèle:Géolocalisation/Croatie]]
 
[[fr:Modèle:Géolocalisation/Croatie]]
 
[[hr:template:Lokacijska karta Hrvatska]]
 
[[hr:template:Lokacijska karta Hrvatska]]
 
[[zh:Template:Location map Croatia]]
 
[[zh:Template:Location map Croatia]]
 
[[Category:Location map by country templates]]
 
 
</includeonly>
 
</includeonly>

Revision as of 18:45, 6 August 2011

The locator map definition, Template:Location map Croatia, is intended for overlaying markers and labels on similar maps of Croatia.

Map parameters
top Template:Location map Croatia latitude at top of map
bottom Template:Location map Croatia latitude at bottom of map
left Template:Location map Croatia longitude at map left edge
right Template:Location map Croatia longitude at map right edge
skew Template:Location map Croatia skew to narrow longitudes
lat_skew Template:Location map Croatia skew to arc latitudes at edges

See {{Location map}} for description of the parameters.

WARNING: Having too much text in Template:Location_map_Croatia can kill mapping templates that use it, even inside "<noinclude>".

Usage

The following mapping templates are can use data from this template:

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: {{Location map | 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 the Croatia
| width   = 250
| lat     = 45.82
| long    = 15.98
| label   = Zagreb
| lat2    = 43.5
| long2   = 16.43
| label2  = Split
}}