Content deleted Content added
Jackmcbarn (talk | contribs) m Jackmcbarn moved page Template:Location map USA Alabama/doc to Module:Location map/data/USA Alabama/doc |
Jackmcbarn (talk | contribs) update for module |
||
Line 1:
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{#invoke:Location map/info|main}}
[[File:Map of Alabama NA.png|thumb|400px|Map of Alabama (click on map to see larger image)]]
Line 14:
== Map definition ==
* <tt>'''name''' = {{
*: Name used in the default map caption
* <tt>'''image''' = [[:File:{{
*: The default map image, without "Image:" or "File:"
{{#if:{{
* <tt>'''image1''' = [[:File:{{
*: An alternative map image, usually a relief map, can be displayed via the ''relief'' or ''AlternativeMap'' parameters
}}{{#if:{{
* <tt>'''image2''' = [[:File:{{
*: A second alternative map image, can be displayed via the ''AlternativeMap'' parameter only
}}{{#if:{{#invoke:Data|main|Location map/data/USA Alabama|top}}{{#invoke:Data|main|Location map/data/USA Alabama|bottom}}{{#invoke:Data|main|Location map/data/USA Alabama|left}}{{#invoke:Data|main|Location map/data/USA Alabama|right}}|
* <tt>'''top''' = {{
*: [[Latitude]] at top edge of map, in [[decimal degrees]]
* <tt>'''bottom''' = {{
*: Latitude at bottom edge of map, in decimal degrees
* <tt>'''left''' = {{
*: [[Longitude]] at left edge of map, in decimal degrees
* <tt>'''right''' = {{
*: Longitude at right edge of map, in decimal degrees
}}{{#if:{{#invoke:Data|main|Location map/data/USA Alabama|x}}{{#invoke:Data|main|Location map/data/USA Alabama|y}}|
* <tt>'''x''' = {{
*: 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''' = {{
*: 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:{{
== Alternative map ==
The map defined as '''image1''' (<tt>{{
{{{!}}
{{!}}
Line 60:
{{!}}}
}}
{{#if:{{#invoke:Data|main|Location map/data/USA Alabama|top}}{{#invoke:Data|main|Location map/data/USA Alabama|bottom}}{{#invoke:Data|main|Location map/data/USA Alabama|left}}{{#invoke:Data|main|Location map/data/USA Alabama|right}}|
== Precision ==
[[Longitude]]: from West to East this map definition covers {{#expr: -( {{
* At an image width of 200 [[pixel]]s, that is {{#expr: -( {{
* At an image width of 1000 pixels, that is {{#expr: -( {{
[[Latitude]]: from North to South this map definition covers {{#expr: {{
* At an image height of 200 pixels, that is {{#expr: ( {{
* At an image height of 1000 pixels, that is {{#expr: ( {{
}}
== Examples using ___location map templates ==
|