Difference between revisions of "Module:Location map/data/Egypt/doc"
blackwiki>Zyxw (add document subpage formatting, remove undisplayed copy of old map values, update examples) |
blackwiki>Zyxw (update documentation and add example using Template:Location map+) |
||
| Line 2: | Line 2: | ||
<!-- Categories and interwikis go at the bottom of this page. --> | <!-- Categories and interwikis go at the bottom of this page. --> | ||
| − | + | '''Template:Location map Egypt''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Egypt]]. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image. | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== Usage == | == Usage == | ||
| − | + | These definitions are used by the following templates when invoked with parameter "Egypt": | |
| − | * | + | * {{tlx|Location map | Egypt | ...}} |
| − | * | + | * {{tlx|Location map many | Egypt | ...}} |
| − | * | + | * {{tlx|Location map+ | Egypt | ...}} |
| + | * {{tlx|Location map~ | Egypt | ...}} | ||
| − | + | == Map definition == | |
| − | < | + | ; name |
| − | + | : used in default map caption (<tt>{{{{BASEPAGENAME}}|name}}</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>) |
| − | |||
| − | |||
| − | |||
| − | |||
| − | : | ||
| − | : | ||
| − | : | ||
| − | |||
| − | |||
| − | + | == Alternative 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. | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | Further instructions | ||
== Examples == | == Examples == | ||
| − | === Location map, using default map image === | + | === Location map, using default map (image) === |
{{Location map | Egypt | {{Location map | Egypt | ||
| − | | width = | + | | width = 200 <!--omit "px"--> |
| label = Abydos | | label = Abydos | ||
| lat = 26.18 | | lat = 26.18 | ||
| long = 31.92 | | long = 31.92 | ||
}} | }} | ||
| − | <pre style="width: | + | <pre style="width:35em"> |
{{Location map | Egypt | {{Location map | Egypt | ||
| − | | width = | + | | width = 200 <!--omit "px"--> |
| label = Abydos | | label = Abydos | ||
| lat = 26.18 | | lat = 26.18 | ||
| Line 92: | Line 48: | ||
{{clear}} | {{clear}} | ||
| − | === Location map, using relief | + | === Location map, using relief map (image1) === |
{{Location map | Egypt | {{Location map | Egypt | ||
| relief = yes | | relief = yes | ||
| − | | float = right <!-- | + | | float = right <!--or left/center)--> |
| − | | width = | + | | width = 200 |
| caption = Berenice on Red Sea | | caption = Berenice on Red Sea | ||
| + | | lat = 23.92 | ||
| + | | long = 35.45 | ||
| label = Berenice | | label = Berenice | ||
| label_size= 70 | | label_size= 70 | ||
| background= #44CCDD <!--aqua--> | | background= #44CCDD <!--aqua--> | ||
| position = left <!--or right/top/bottom --> | | position = left <!--or right/top/bottom --> | ||
| − | |||
| − | |||
| mark = Green_pog.svg <!--marker image--> | | mark = Green_pog.svg <!--marker image--> | ||
| − | | marksize = 10 <!-- | + | | marksize = 10 <!--default: 8, 1=none --> |
}} | }} | ||
| − | <pre style="width: | + | <pre style="width:35em"> |
{{Location map | Egypt | {{Location map | Egypt | ||
| relief = yes | | relief = yes | ||
| − | | float = right <!-- | + | | float = right <!--or left/center)--> |
| − | | width = | + | | width = 200 |
| caption = Berenice on Red Sea | | caption = Berenice on Red Sea | ||
| + | | lat = 23.92 | ||
| + | | long = 35.45 | ||
| label = Berenice | | label = Berenice | ||
| label_size= 70 | | label_size= 70 | ||
| background= #44CCDD <!--aqua--> | | background= #44CCDD <!--aqua--> | ||
| position = left <!--or right/top/bottom --> | | position = left <!--or right/top/bottom --> | ||
| − | |||
| − | |||
| mark = Green_pog.svg <!--marker image--> | | mark = Green_pog.svg <!--marker image--> | ||
| − | | marksize = 10 <!-- | + | | marksize = 10 <!--default: 8, 1=none --> |
}} | }} | ||
</pre> | </pre> | ||
{{clear}} | {{clear}} | ||
| − | === Location map many, using | + | === Location map many, using default map === |
{{Location map many | Egypt | {{Location map many | Egypt | ||
| <!--map settings--> | | <!--map settings--> | ||
| − | + | | width = 200 | |
| − | | width | + | | float = right |
| − | | float | + | | caption = Sallum north, Abu Simbel in south |
| − | | caption | ||
| <!--1st label settings--> | | <!--1st label settings--> | ||
| + | | lat = 31.61 | ||
| + | | long = 25.92 | ||
| label = Sallum | | label = Sallum | ||
| label_size = 70 | | label_size = 70 | ||
| background = #DDDD44 | | background = #DDDD44 | ||
| − | | position = right | + | | position = right |
| − | + | | mark = Blue pog.svg | |
| − | + | | marksize = 10 | |
| − | | mark = | ||
| − | | marksize = 10 | ||
| <!--2nd label settings--> | | <!--2nd label settings--> | ||
| + | | lat2 = 22.34 | ||
| + | | long2 = 31.37 | ||
| label2 = Abu Simbel | | label2 = Abu Simbel | ||
| label2_size = 70 | | label2_size = 70 | ||
| background2 = DarkOrange | | background2 = DarkOrange | ||
| − | | position2 = top | + | | position2 = top |
| − | + | | mark2 = Blue pog.svg | |
| − | + | | mark2size = 10 | |
| − | | mark2 = | ||
| − | | mark2size = 10 | ||
}} | }} | ||
| − | <pre style="width: | + | <pre style="width:35em"> |
{{Location map many | Egypt | {{Location map many | Egypt | ||
| <!--map settings--> | | <!--map settings--> | ||
| − | + | | width = 200 | |
| − | | width | + | | float = right |
| − | | float | + | | caption = Sallum north, Abu Simbel in south |
| − | | caption | ||
| <!--1st label settings--> | | <!--1st label settings--> | ||
| + | | lat = 31.61 | ||
| + | | long = 25.92 | ||
| label = Sallum | | label = Sallum | ||
| label_size = 70 | | label_size = 70 | ||
| background = #DDDD44 | | background = #DDDD44 | ||
| − | | position = right | + | | position = right |
| − | + | | mark = Blue pog.svg | |
| − | + | | marksize = 10 | |
| − | | mark = | ||
| − | | marksize = 10 | ||
| <!--2nd label settings--> | | <!--2nd label settings--> | ||
| + | | lat2 = 22.34 | ||
| + | | long2 = 31.37 | ||
| label2 = Abu Simbel | | label2 = Abu Simbel | ||
| label2_size = 70 | | label2_size = 70 | ||
| background2 = DarkOrange | | background2 = DarkOrange | ||
| − | | position2 = top < | + | | position2 = top |
| − | | | + | | mark2 = Blue pog.svg |
| − | | | + | | mark2size = 10 |
| − | | | + | }} |
| − | | | + | </pre> |
| + | {{clear}} | ||
| + | |||
| + | === Location map+, using AlternativeMap === | ||
| + | {{Location map+ | Egypt | ||
| + | | AlternativeMap = Egypt relief location map.jpg | ||
| + | | width = 200 | ||
| + | | caption = Two locations in Egypt | ||
| + | | places = | ||
| + | {{Location map~ | Egypt | ||
| + | | lat = 31.61 | ||
| + | | long = 25.92 | ||
| + | | label = Sallum | ||
| + | }} | ||
| + | {{Location map~ | Egypt | ||
| + | | lat = 22.34 | ||
| + | | long = 31.37 | ||
| + | | label = Abu Simbel | ||
| + | }} | ||
| + | }} | ||
| + | <pre style="width:35em"> | ||
| + | {{Location map+ | Egypt | ||
| + | | AlternativeMap = Egypt relief location map.jpg | ||
| + | | width = 200 | ||
| + | | caption = Two locations in Egypt | ||
| + | | places = | ||
| + | {{Location map~ | Egypt | ||
| + | | lat = 31.61 | ||
| + | | long = 25.92 | ||
| + | | label = Sallum | ||
| + | }} | ||
| + | {{Location map~ | Egypt | ||
| + | | lat = 22.34 | ||
| + | | long = 31.37 | ||
| + | | label = Abu Simbel | ||
| + | }} | ||
}} | }} | ||
</pre> | </pre> | ||
{{clear}} | {{clear}} | ||
| − | ==Other options== | + | == Other options == |
It is possible to place markers/labels outside a map, by specifying latitude outside 20.5-32.8 or longitude coordinates beyond 25.5-35.8: | It is possible to place markers/labels outside a map, by specifying latitude outside 20.5-32.8 or longitude coordinates beyond 25.5-35.8: | ||
:* Over longitude=35.8 will push a label off-map to the right; | :* Over longitude=35.8 will push a label off-map to the right; | ||
| Line 187: | Line 178: | ||
For templates that restrict coordinates, expand the ''minutes'' field: lat_deg=32.0 but lat_min=120 yielding a combined 34 degrees (60 minutes = 1 degree). | For templates that restrict coordinates, expand the ''minutes'' field: lat_deg=32.0 but lat_min=120 yielding a combined 34 degrees (60 minutes = 1 degree). | ||
| − | ==See also== | + | == See also == |
| − | * [[Template: | + | * [[Template:Location map]] |
| − | * [[Template:Location map | + | * [[Template:Location map+]] |
| + | * [[Template:Location map many]] | ||
* [[Template:Location map Egypt relief]] | * [[Template:Location map Egypt relief]] | ||
<includeonly> | <includeonly> | ||
Revision as of 10:54, 11 August 2011
| 40px | This is a documentation subpage for Module:Location map/data/Egypt. It contains usage information, categories and other content that is not part of the original module page. |
Template:Location map Egypt is a location map definition used to overlay markers and labels on an equirectangular projection map of Egypt. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.
Contents
Usage
These definitions are used by the following templates when invoked with parameter "Egypt":
{{Location map | Egypt | ...}}{{Location map many | Egypt | ...}}{{Location map+ | Egypt | ...}}{{Location map~ | Egypt | ...}}
Map definition
- name
- used in default map caption (Template:Location map/data/Egypt)
- image
- the default map image, without "Image:" or "File:" ([[:File:Template:Location map/data/Egypt|Template:Location map/data/Egypt]])
- image1
- an alternative map image, usually a relief map ([[:File:Template:Location map/data/Egypt|Template:Location map/data/Egypt]])
- top
- latitude at top edge of map, in decimal degrees (Template:Location map/data/Egypt)
- bottom
- latitude at bottom edge of map, in decimal degrees (Template:Location map/data/Egypt)
- left
- longitude at left edge of map, in decimal degrees (Template:Location map/data/Egypt)
- right
- longitude at right edge of map, in decimal degrees (Template:Location map/data/Egypt)
Alternative map
The map shown above as image1 (Template:Location map/data/Egypt) can be displayed by using the AlternativeMap or relief parameters in {{Location map}}, {{Location map many}} and {{Location map+}}. Further instructions can be found at Template:Location map#Using Alternative Map and Template:Location map#Relief, or see the examples below.
Examples
Location map, using default map (image)
{{Location map | Egypt
| width = 200 <!--omit "px"-->
| label = Abydos
| lat = 26.18
| long = 31.92
}}
Location map, using relief map (image1)
{{Location map | Egypt
| relief = yes
| float = right <!--or left/center)-->
| width = 200
| caption = Berenice on Red Sea
| lat = 23.92
| long = 35.45
| label = Berenice
| label_size= 70
| background= #44CCDD <!--aqua-->
| position = left <!--or right/top/bottom -->
| mark = Green_pog.svg <!--marker image-->
| marksize = 10 <!--default: 8, 1=none -->
}}
Location map many, using default map
{{Location map many | Egypt
| <!--map settings-->
| width = 200
| float = right
| caption = Sallum north, Abu Simbel in south
| <!--1st label settings-->
| lat = 31.61
| long = 25.92
| label = Sallum
| label_size = 70
| background = #DDDD44
| position = right
| mark = Blue pog.svg
| marksize = 10
| <!--2nd label settings-->
| lat2 = 22.34
| long2 = 31.37
| label2 = Abu Simbel
| label2_size = 70
| background2 = DarkOrange
| position2 = top
| mark2 = Blue pog.svg
| mark2size = 10
}}
Location map+, using AlternativeMap
{{Location map+ | Egypt
| AlternativeMap = Egypt relief location map.jpg
| width = 200
| caption = Two locations in Egypt
| places =
{{Location map~ | Egypt
| lat = 31.61
| long = 25.92
| label = Sallum
}}
{{Location map~ | Egypt
| lat = 22.34
| long = 31.37
| label = Abu Simbel
}}
}}
Other options
It is possible to place markers/labels outside a map, by specifying latitude outside 20.5-32.8 or longitude coordinates beyond 25.5-35.8:
- Over longitude=35.8 will push a label off-map to the right;
- Under longitude= 20.5 will push a label off-map to the left;
- Over latitude= 32.8 will push a label off-map to the top.
For templates that restrict coordinates, expand the minutes field: lat_deg=32.0 but lat_min=120 yielding a combined 34 degrees (60 minutes = 1 degree).