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

Content deleted Content added
update documentation and add example using Template:Location map+
Line 1:
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
 
'''Template:Location map Chad''' is a ___location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Chad]]. 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 "Chad":
See [[Template:Location map]]
* {{tlx|Location map | Chad&nbsp;| ...}}
* {{tlx|Location map many | Chad&nbsp;| ...}}
* {{tlx|Location map+ | Chad&nbsp;| ...}}
* {{tlx|Location map~ | Chad&nbsp;| ...}}
 
== Map definition ==
; name
*: used in default map caption (<tt>{{{{BASEPAGENAME}}|imagename}}</tt>.)
; image
: the default map image, without "Image:" or "File:" (<tt>[[:File:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt>)
; image1
: an alternative map image, usually a relief map (<tt>[[:File:{{{{BASEPAGENAME}}|image1}}|{{{{BASEPAGENAME}}|image1}}]]</tt>)
; top
: [[latitude]] at top edge of map, in [[decimal degrees]] (<tt>{{{{BASEPAGENAME}}|top}}</tt>)
; bottom
: latitude at bottom edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|bottom}}</tt>)
; left
: [[longitude]] at left edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|left}}</tt>)
; right
: longitude at right edge of map, in decimal degrees (<tt>{{{{BASEPAGENAME}}|right}}</tt>)
 
== How to use an alternativeAlternative map ==
The map shown above as '''image1''' (<tt>{{{{BASEPAGENAME}}|image1}}</tt>) can be displayed by using the ''AlternativeMap'' or ''relief'' parameters in {{tl|Location map}}, {{tl|Location map many}} and {{tl|Location map+}}. Further instructions can be found at [[Template:Location map#Using Alternative Map]] and [[Template:Location map#Relief]], or see the examples below.
This template normally displays the map shown above as '''image''':
*<tt>{{{{BASEPAGENAME}}|image}}</tt>.
The ''AlternativeMap'' or ''relief'' parameters in {{tl|Location map}} can be used to display the map shown above as '''image1''':
*<tt>{{{{BASEPAGENAME}}|image1}}</tt>.
Further instructions and examples can be found at [[Template:Location map#Using Alternative Map]] and [[Template:Location map#Relief]].
 
== Examples ==
Line 74 ⟶ 92:
{{clear}}
 
=== Location map+, using AlternativeMap ===
{{Location map+ | Chad
| AlternativeMap = Chad relief ___location map.jpg
| caption = Two locations in Chad
| width = 150
| places =
{{Location map~ | Chad
| lat = 12.112
| long = 15.035
| label = N'Djamena
}}
{{Location map~ | Chad
| lat = 8.66
| long = 16.85
| label = Doba
}}
}}
<pre style="width:35em">
{{Location map+ | Chad
| AlternativeMap = Chad relief ___location map.jpg
| caption = Two locations in Chad
| width = 150
| places =
{{Location map~ | Chad
| lat = 12.112
| long = 15.035
| label = N'Djamena
}}
{{Location map~ | Chad
| lat = 8.66
| long = 16.85
| label = Doba
}}
}}
</pre>
{{clear}}
 
== See also ==
See* [[Template:Location map]]
* [[Template:Location map+]]
* [[Template:Location map many]]
<includeonly>
<!-- Categories and interwikis go here: -->