Module:Location map/data/Afghanistan/doc: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
Jackmcbarn (talk | contribs)
m update for module
Line 1:
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{#invoke:Location map/info|main}}
[[File:Afghanistan-CIA WFB Map.png|thumb|250px|Map of Afghanistan]]
 
'''TemplateModule:Location map /data/Afghanistan''' is a ___location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Afghanistan]]. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.
 
== Usage ==
Line 13:
 
== Map definition ==
* <tt>'''name''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|name}}</tt>
*: Name used in the default map caption
 
* <tt>'''image''' = [[:File:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|image}}|{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|image}}]]</tt>
*: The default map image, without "Image:" or "File:"
{{#if:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|image1}}|
 
* <tt>'''image1''' = [[:File:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|image1}}|{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|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/Afghanistan|image2}}|
 
* <tt>'''image2''' = [[:File:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|image2}}|{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|image2}}]]</tt>
*: A second alternative map image, can be displayed via the ''AlternativeMap'' parameter only
}}{{#if:{{#invoke:Data|main|Location map/data/Afghanistan|top}}{{#invoke:Data|main|Location map/data/Afghanistan|bottom}}{{#invoke:Data|main|Location map/data/Afghanistan|left}}{{#invoke:Data|main|Location map/data/Afghanistan|right}}|
}}{{#if:{{{{BASEPAGENAME}}|top}}{{{{BASEPAGENAME}}|bottom}}{{{{BASEPAGENAME}}|left}}{{{{BASEPAGENAME}}|right}}|
 
* <tt>'''top''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|top}}</tt>
*: [[Latitude]] at top edge of map, in [[decimal degrees]]
 
* <tt>'''bottom''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|bottom}}</tt>
*: Latitude at bottom edge of map, in decimal degrees
 
* <tt>'''left''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|left}}</tt>
*: [[Longitude]] at left edge of map, in decimal degrees
 
* <tt>'''right''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|right}}</tt>
*: Longitude at right edge of map, in decimal degrees
}}{{#if:{{#invoke:Data|main|Location map/data/Afghanistan|x}}{{#invoke:Data|main|Location map/data/Afghanistan|y}}|
}}{{#if:{{{{BASEPAGENAME}}|x}}{{{{BASEPAGENAME}}|y}}|
 
* <tt>'''x''' = {{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|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/Afghanistan|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
}}
{{#if:{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|image1}}|
== Alternative map ==
The map defined as '''image1''' (<tt>{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|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/Afghanistan|image2}}| The map defined as '''image2''' (<tt>{{{{BASEPAGENAME}}#invoke:Data|main|Location map/data/Afghanistan|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:
{{{!}}
{{!}}