Module:Location map/data/USA Alaska/doc: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
Jackmcbarn (talk | contribs)
update for module
Line 1:
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{#invoke:Location map/info|main}}
[[File:Map of Alaska NA.png|thumb|400px|Map of Alaska (click on map to see larger image)]]
 
Line 13:
 
== Map definition ==
* <tt>'''name''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|name}}</tt>
*: Name used in the default map caption
 
* <tt>'''image''' = [[:File:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image}}|{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image}}]]</tt>
*: The default map image, without "Image:" or "File:"
{{#if:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image1}}|
 
* <tt>'''image1''' = [[:File:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image1}}|{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image1}}]]</tt>
*: An alternative map image, usually a relief map, can be displayed via the ''relief'' or ''AlternativeMap'' parameters
}}{{#if:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image2}}|
 
* <tt>'''image2''' = [[:File:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image2}}|{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image2}}]]</tt>
*: A second alternative map image, can be displayed via the ''AlternativeMap'' parameter only
}}{{#if:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|mark}}|
 
* <tt>'''mark''' = [[:File:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|mark}}]] ( [[File:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|mark}}|8px]] )</tt>
*: A ___location marker image to be used for this map, in place of the default image <tt>[[:File:Red pog.svg]] ( [[File:Red pog.svg|8px]] )</tt>
}}{{#if:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|top}}{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|bottom}}{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|left}}{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|right}}|
 
* <tt>'''top''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|top}}</tt>
*: [[Latitude]] at top edge of map, in [[decimal degrees]]
 
* <tt>'''bottom''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|bottom}}</tt>
*: Latitude at bottom edge of map, in decimal degrees
 
* <tt>'''left''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|left}}</tt>
*: [[Longitude]] at left edge of map, in decimal degrees
 
* <tt>'''right''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|right}}</tt>
*: Longitude at right edge of map, in decimal degrees
}}{{#if:{{#invoke:Data|main|Location map/data/USA Alaska|x}}{{#invoke:Data|main|Location map/data/USA Alaska|y}}|
}}{{#if:{{{{BASEPAGENAME}}|x}}{{{{BASEPAGENAME}}|y}}|
 
* <tt>'''x''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|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}}#invoke:Data|main|Location map/data/USA Alaska|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
}}
=== Technical details ===
{{Location map/modulo math details|top = 72 |bottom = 51 |left = 172 |right = -129}}
{{#if:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image1}}|
== Alternative map ==
The map defined as '''image1''' (<tt>{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image1}}</tt>) can be displayed by using the ''relief'' or ''AlternativeMap'' parameters in {{tl|Location map}}, {{tl|Location map many}} and {{tl|Location map+}}. {{#if:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image2}}| The map defined as '''image2''' (<tt>{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/USA Alaska|image2}}</tt>) 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:
{{{!}}
{{!}}