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

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
blackwiki>Lam-ang
(+doc)
Line 1: Line 1:
{{Documentation subpage}}
+
{{Module:Location map/data/doc}}
<includeonly>{{high-use| 5,100+ }}</includeonly>
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
 
 
[[File:Map of California NA.png|thumb|400px|Map of California (click on map to see larger image)]]
 
 
 
'''Template:Location map USA California''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of the [[U.S. state]] of [[California]]. 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 "USA California":
 
* {{tlx|Location map | USA California&nbsp;| ...}}
 
* {{tlx|Location map many | USA California&nbsp;| ...}}
 
* {{tlx|Location map+ | USA California&nbsp;| ...}}
 
* {{tlx|Location map~ | USA California&nbsp;| ...}}
 
 
 
== Map definition ==
 
* <tt>'''name''' = {{{{BASEPAGENAME}}|name}}</tt>
 
*: Name used in the default map caption
 
 
 
* <tt>'''image''' = [[:File:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt>
 
*: The default map image, without "Image:" or "File:"
 
 
 
* <tt>'''top''' = {{{{BASEPAGENAME}}|top}}</tt>
 
*: [[Latitude]] at top edge of map, in [[decimal degrees]]
 
 
 
* <tt>'''bottom''' = {{{{BASEPAGENAME}}|bottom}}</tt>
 
*: Latitude at bottom edge of map, in decimal degrees
 
 
 
* <tt>'''left''' = {{{{BASEPAGENAME}}|left}}</tt>
 
*: [[Longitude]] at left edge of map, in decimal degrees
 
 
 
* <tt>'''right''' = {{{{BASEPAGENAME}}|right}}</tt>
 
*: Longitude at right edge of map, in decimal degrees
 
{{#if:{{{{BASEPAGENAME}}|x}}{{{{BASEPAGENAME}}|y}}|
 
 
 
* <tt>'''x''' = {{{{BASEPAGENAME}}|x}}</tt>
 
*: An expression to calculate a location on the map via its [[longitude]]; evaluates as 0 along the left edge and 100 along the right edge
 
 
 
* <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
 
}}
 
== Examples using location map templates ==
 
 
 
=== Location map ===
 
{{Location map | USA California
 
| width  = 250
 
| label  = Sacramento
 
| lat_deg =  38 | lat_min = 33 | lat_sec = | lat_dir = N
 
| lon_deg = 121 | lon_min = 28 | lon_sec = | lon_dir = W
 
}}
 
<pre style="width:40em">
 
{{Location map | USA California
 
| width  = 250
 
| label  = Sacramento
 
| lat_deg =  38 | lat_min = 33 | lat_sec = | lat_dir = N
 
| lon_deg = 121 | lon_min = 28 | lon_sec = | lon_dir = W
 
}}
 
</pre>
 
{{clear}}
 
 
 
=== Location map many ===
 
{{Location map many | USA California
 
| width    = 250
 
| caption  = Locations in California
 
| lat1 = 41.99 | long1 = -120.29 | label1 = New Pine Creek
 
| lat2 = 32.68 | long2 = -115.49 | label2 = Calexico
 
| lat3 = 39.45 | long3 = -123.81 | label3 = Fort Bragg
 
| lat4 = 33.61 | long4 = -114.59 | label4 = Blythe
 
}}
 
<pre style="width:40em">
 
{{Location map many | USA California
 
| width    = 250
 
| caption  = Locations in California
 
| lat1 = 41.99 | long1 = -120.29 | label1 = New Pine Creek
 
| lat2 = 32.68 | long2 = -115.49 | label2 = Calexico
 
| lat3 = 39.45 | long3 = -123.81 | label3 = Fort Bragg
 
| lat4 = 33.61 | long4 = -114.59 | label4 = Blythe
 
}}
 
</pre>
 
{{clear}}
 
 
 
=== Location map+ ===
 
{{Location map+ | USA California
 
| width  = 250
 
| caption = Locations in California
 
| places  =
 
  {{Location map~ | USA California
 
  | lat = 41.99 | long = -120.29 | label = New Pine Creek
 
  }}
 
  {{Location map~ | USA California
 
  | lat = 32.68 | long = -115.49 | label = Calexico
 
  }}
 
  {{Location map~ | USA California
 
  | lat = 39.45 | long = -123.81 | label = Fort Bragg
 
  }}
 
  {{Location map~ | USA California
 
  | lat = 33.61 | long = -114.59 | label = Blythe
 
  }}
 
}}
 
<pre style="width:40em">
 
{{Location map+ | USA California
 
| width  = 250
 
| caption = Locations in California
 
| places  =
 
  {{Location map~ | USA California
 
  | lat = 41.99 | long = -120.29 | label = New Pine Creek
 
  }}
 
  {{Location map~ | USA California
 
  | lat = 32.68 | long = -115.49 | label = Calexico
 
  }}
 
  {{Location map~ | USA California
 
  | lat = 39.45 | long = -123.81 | label = Fort Bragg
 
  }}
 
  {{Location map~ | USA California
 
  | lat = 33.61 | long = -114.59 | label = Blythe
 
  }}
 
}}
 
</pre>
 
{{clear}}
 
 
 
== See also ==
 
* [[Template:Location map USA California Southern]]
 
* [[Module:Location map/data/USA]]
 
 
 
; Location map templates
 
* [[Template:Location map]], to display one mark and label using latitude and longitude
 
* [[Template:Location map many]], to display up to nine marks and labels
 
* [[Template:Location map+]], to display an unlimited number of marks and labels
 
 
 
; Infobox templates incorporating (passing values to) the Location map template
 
{{Location map/doc/See also infobox templates}}
 
<includeonly>
 
<!-- Categories go here -->
 
{{DEFAULTSORT:California, Location map USA}}
 
[[Category:California location maps]]
 
</includeonly>
 

Revision as of 18:11, 27 March 2017

Location map of California
name California
border
coordinates
42.2
-124.7 ←↕→ -113.9
32.3
map center Lua error: callParserFunction: function "#coordinates" was not found.
image USA California location map.svg
400x400px
image1 Relief map of California.png
400x400px


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

Map definition

  • name = California
    Name used in the default map caption
  • bottom = 32.3
    Latitude at bottom edge of map, in decimal degrees
  • left = -124.7
    Longitude at left edge of map, in decimal degrees
  • right = -113.9
    Longitude at right edge of map, in decimal degrees

Alternative map

The {{Location map}}, {{Location map many}}, and {{Location map+}} templates have parameters to specify an alternative map image. The map displayed as image1 can be used with the relief or AlternativeMap parameters. Examples may be found below or in the following:

Precision

Longitude: from West to East this map definition covers 10.8 degrees.

  • At an image width of 200 pixels, that is 0.054 degrees per pixel.
  • At an image width of 1000 pixels, that is 0.0108 degrees per pixel.

Latitude: from North to South this map definition covers 9.9 degrees.

  • At an image height of 200 pixels, that is 0.0495 degrees per pixel.
  • At an image height of 1000 pixels, that is 0.0099 degrees per pixel.


See also

Location map templates

Creating new map definitions