Difference between revisions of "Module:Location map/data/Egypt/doc"
blackwiki>Zyxw (→Alternative map: update instructions) |
blackwiki>Zyxw (add document subpage formatting, remove undisplayed copy of old map values, update examples) |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Documentation subpage}} |
| − | + | <!-- Categories and interwikis go at the bottom of this page. --> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | The map definition, [[Template:Location map Egypt]], is intended for overlaying markers/labels on similar maps of [[Egypt]], using coordinates of 20.8 to 32.8 for [[latitude]] and 25.3 to 35.8 for [[longitude]]. | |
| − | |||
| − | |||
[[File:Egypt-region-map-cities-2.gif|left|thumb|210px|Map for Egypt]] | [[File:Egypt-region-map-cities-2.gif|left|thumb|210px|Map for Egypt]] | ||
| − | |||
{| class="wikitable" width="320" | {| class="wikitable" width="320" | ||
|- | |- | ||
| Line 47: | Line 29: | ||
See {{tl|Location map}} for description of the parameters. | See {{tl|Location map}} for description of the parameters. | ||
{{-}}<!-- force separation break --> | {{-}}<!-- force separation break --> | ||
| + | |||
| + | == Usage == | ||
| + | Some of the related mapping templates are: | ||
| + | * [[Template:Location map]] - places a marker symbol/label on an image; | ||
| + | * [[Template:Location map many]] - places multiple marker symbols/labels on an image; | ||
| + | * [[Template:Location map skew]] - puts symbols/labels on an image with converging longitudes. | ||
All mapping templates use similar parameters (see ''[[#Examples|Examples]]''): | All mapping templates use similar parameters (see ''[[#Examples|Examples]]''): | ||
<code> | <code> | ||
| − | :* Egypt | + | :''Map settings'' |
| + | :* Egypt - the first parameter is always the map name | ||
:* AlternativeMap - name of image (omit "Image:") | :* AlternativeMap - name of image (omit "Image:") | ||
| + | :* width=250 - for image width (omit "px") | ||
| + | :* float=right (left, center) - position of map formatted on page | ||
:* caption=text - caption text along bottom of image | :* caption=text - caption text along bottom of image | ||
| − | :* | + | :''Label settings'' |
| − | :* label=xxx - movable label (can be padded "&nbsp;XX&nbsp;YY&nbsp;") | + | :* lat=26.25 - for latitude 20.8-32.8 (higher towards top) |
| − | :* label_size - percent from 0-200 (default: 95 | + | :* long=31.92 - for longitude 25.3-35.8 (higher towards right) |
| − | + | :* label=xxx - movable label (can be padded "&nbsp;XX&nbsp;YY&nbsp;") | |
| + | :* label_size - percent from 0-200 (default: 95) | ||
:* position=right - (or left, top, bottom) position of label at marker | :* position=right - (or left, top, bottom) position of label at marker | ||
| − | + | :* mark - name of image for marker symbol (omit "Image:") | |
| − | + | :* marksize - size (in pixels) of marker-symbol (default: 8, 1=none) | |
| − | :* mark | + | :* background - color of label (such as: darkorange or #4499DD) |
| − | :* marksize - size (in pixels) of marker-symbol (default: 8, 1=none) | + | ::Some common label background colors are: |
| − | :* | + | ::* <small>#</small>CCCC55 for <font color=#CCCC55>'''dim yellow'''</font>, |
| − | |||
| − | Some common label background colors are: <small>#</small>CCCC55 for <font color=#CCCC55>'''dim yellow'''</font>, | ||
::* <small>#</small>44EE44 for <font color=#44EE44>'''lime green'''</font>, <small>#</small>BBBBBB for <font color=#BBBBBB>'''gray'''</font>, | ::* <small>#</small>44EE44 for <font color=#44EE44>'''lime green'''</font>, <small>#</small>BBBBBB for <font color=#BBBBBB>'''gray'''</font>, | ||
::* <small>#</small>44CCDD for <font color=#44CCDD>'''light aqua'''</font>, <small>#</small>DDDDDD for <font color=#DDDDDD>'''light gray'''</font> (almost white), | ::* <small>#</small>44CCDD for <font color=#44CCDD>'''light aqua'''</font>, <small>#</small>DDDDDD for <font color=#DDDDDD>'''light gray'''</font> (almost white), | ||
::* PaleGreen for <font color=PaleGreen>'''pale green'''</font>, <font color=PaleTurquoise>'''PaleTurquoise'''</font>, <font color=DarkOrange>'''DarkOrange'''</font>, etc. | ::* PaleGreen for <font color=PaleGreen>'''pale green'''</font>, <font color=PaleTurquoise>'''PaleTurquoise'''</font>, <font color=DarkOrange>'''DarkOrange'''</font>, etc. | ||
::* By default, the label is ''transparent'' overwriting the image. | ::* By default, the label is ''transparent'' overwriting the image. | ||
| + | </code> | ||
| + | |||
For small lettering use label_size=80, for tiny words use 55. Note that the words in the label will wrap unless using "nbsp": <small>DO&nbsp;NOT&nbsp;WRAP</small>. | For small lettering use label_size=80, for tiny words use 55. Note that the words in the label will wrap unless using "nbsp": <small>DO&nbsp;NOT&nbsp;WRAP</small>. | ||
| Line 78: | Line 70: | ||
This template normally displays the map shown above as '''image''': | This template normally displays the map shown above as '''image''': | ||
*<tt>{{{{BASEPAGENAME}}|image}}</tt>. | *<tt>{{{{BASEPAGENAME}}|image}}</tt>. | ||
| − | The ''AlternativeMap'' | + | The ''AlternativeMap'' or ''relief'' parameters in {{tl|Location map}} can be used to display the map shown above as '''image1''': |
| − | *<tt>{{{{BASEPAGENAME}}|image1}}</tt> | + | *<tt>{{{{BASEPAGENAME}}|image1}}</tt>. |
| − | + | Further instructions and examples can be found at [[Template:Location map#Using Alternative Map]] and [[Template:Location map#Relief]]. | |
| − | + | ||
| + | == Examples == | ||
| + | === Location map, using default map image === | ||
| + | {{Location map | Egypt | ||
| + | | width = 210 <!--omit "px"--> | ||
| + | | label = Abydos | ||
| + | | lat = 26.18 | ||
| + | | long = 31.92 | ||
| + | }} | ||
| + | <pre style="width:37em"> | ||
| + | {{Location map | Egypt | ||
| + | | width = 210 <!--omit "px"--> | ||
| + | | label = Abydos | ||
| + | | lat = 26.18 | ||
| + | | long = 31.92 | ||
}} | }} | ||
| − | + | </pre> | |
| + | {{clear}} | ||
| − | == | + | === Location map, using relief parameter === |
| − | |||
{{Location map | Egypt | {{Location map | Egypt | ||
| − | | | + | | relief = yes |
| − | | | + | | float = right <!--position (or: left/center)--> |
| − | | | + | | width = 210 |
| − | | label= | + | | caption = Berenice on Red Sea |
| − | | label_size= | + | | label = Berenice |
| − | | background = # | + | | label_size= 70 |
| − | | position= | + | | background= #44CCDD <!--aqua--> |
| − | | lat | + | | position = left <!--or right/top/bottom --> |
| − | | long = | + | | lat = 23.92 |
| − | | mark= | + | | long = 35.45 |
| − | | marksize=10 <!--marker size (default: 8, 1=none) | + | | mark = Green_pog.svg <!--marker image--> |
| − | + | | marksize = 10 <!--marker size (default: 8, 1=none)--> | |
}} | }} | ||
| − | < | + | <pre style="width:37em"> |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
{{Location map | Egypt | {{Location map | Egypt | ||
| − | | | + | | relief = yes |
| − | | caption = Berenice on Red Sea | + | | float = right <!--position (or: left/center)--> |
| − | + | | width = 210 | |
| − | | label=Berenice | + | | caption = Berenice on Red Sea |
| − | | label_size=70 | + | | label = Berenice |
| − | | background = <!--aqua--> | + | | label_size= 70 |
| − | | position=left <!--or right/top/bottom --> | + | | background= #44CCDD <!--aqua--> |
| − | | lat | + | | position = left <!--or right/top/bottom --> |
| − | | long = 35.45 | + | | lat = 23.92 |
| − | | mark=Green_pog.svg <!--image | + | | long = 35.45 |
| − | | marksize=10 <!--marker size (default: 8, 1=none) | + | | mark = Green_pog.svg <!--marker image--> |
| − | + | | marksize = 10 <!--marker size (default: 8, 1=none)--> | |
}} | }} | ||
| − | < | + | </pre> |
| − | + | {{clear}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | <!-- --------------------------------- | + | === Location map many, using AlternativeMap parameter === |
| + | {{Location map many | Egypt | ||
| + | | <!--map settings--> | ||
| + | | AlternativeMap = Egypt relief location map.jpg | ||
| + | | width = 210 <!--omit "px"--> | ||
| + | | float = right <!--position (or: left/center)--> | ||
| + | | caption = Sallum north, Abu Simbel in south | ||
| + | | <!--1st label settings--> | ||
| + | | label = Sallum | ||
| + | | label_size = 70 | ||
| + | | background = #DDDD44 | ||
| + | | position = right <!--or: left/top/bottom--> | ||
| + | | lat = 31.61 | ||
| + | | long = 25.92 | ||
| + | | mark = Blue_pog.svg <!--marker image--> | ||
| + | | marksize = 10 <!--marker size (default: 8)--> | ||
| + | | <!--2nd label settings--> | ||
| + | | label2 = Abu Simbel | ||
| + | | label2_size = 70 | ||
| + | | background2 = DarkOrange | ||
| + | | position2 = top <!--or: left/right/bottom --> | ||
| + | | lat2 = 22.34 | ||
| + | | long2 = 31.37 | ||
| + | | mark2 = Blue_pog.svg <!--marker image--> | ||
| + | | mark2size = 10 <!--marker size (default: 8)--> | ||
| + | }} | ||
| + | <pre style="width:37em"> | ||
{{Location map many | Egypt | {{Location map many | Egypt | ||
| + | | <!--map settings--> | ||
| AlternativeMap = Egypt relief location map.jpg | | AlternativeMap = Egypt relief location map.jpg | ||
| − | | width=210 <!--omit "px" or | + | | width = 210 <!--omit "px"--> |
| − | | label=Sallum | label_size=70 | + | | float = right <!--position (or: left/center)--> |
| − | + | | caption = Sallum north, Abu Simbel in south | |
| − | + | | <!--1st label settings--> | |
| − | + | | label = Sallum | |
| − | + | | label_size = 70 | |
| − | + | | background = #DDDD44 | |
| − | | label2=Abu Simbel | label2_size=70 | + | | position = right <!--or: left/top/bottom--> |
| − | + | | lat = 31.61 | |
| − | + | | long = 25.92 | |
| − | + | | mark = Blue_pog.svg <!--marker image--> | |
| − | + | | marksize = 10 <!--marker size (default: 8)--> | |
| − | + | | <!--2nd label settings--> | |
| − | + | | label2 = Abu Simbel | |
| − | + | | label2_size = 70 | |
| + | | background2 = DarkOrange | ||
| + | | position2 = top <!--or: left/right/bottom --> | ||
| + | | lat2 = 22.34 | ||
| + | | long2 = 31.37 | ||
| + | | mark2 = Blue_pog.svg <!--marker image--> | ||
| + | | mark2size = 10 <!--marker size (default: 8)--> | ||
}} | }} | ||
| − | < | + | </pre> |
| − | + | {{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; | |
| − | + | :* 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). | 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). | ||
| Line 199: | Line 191: | ||
* [[Template:Location map USA]] - for mapping the "lower 48" states | * [[Template:Location map USA]] - for mapping the "lower 48" states | ||
* [[Template:Location map Egypt relief]] | * [[Template:Location map Egypt relief]] | ||
| + | <includeonly> | ||
| + | <!-- Categories and interwikis go here: --> | ||
| + | |||
| + | </includeonly> | ||
Revision as of 18:25, 6 August 2011
| 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. |
The map definition, Template:Location map Egypt, is intended for overlaying markers/labels on similar maps of Egypt, using coordinates of 20.8 to 32.8 for latitude and 25.3 to 35.8 for longitude.
| Map parameters | ||
| top | Template:Location map Egypt | latitude at top of map |
| bottom | Template:Location map Egypt | latitude at bottom of map |
| left | Template:Location map Egypt | longitude at map left edge |
| right | Template:Location map Egypt | longitude at map right edge |
| skew | Template:Location map Egypt | skew to narrow longitudes |
| lat_skew | Template:Location map Egypt | skew to arc latitudes at edges |
See {{Location map}} for description of the parameters.
Contents
Usage
Some of the related mapping templates are:
- Template:Location map - places a marker symbol/label on an image;
- Template:Location map many - places multiple marker symbols/labels on an image;
- Template:Location map skew - puts symbols/labels on an image with converging longitudes.
All mapping templates use similar parameters (see Examples):
- Map settings
- Egypt - the first parameter is always the map name
- AlternativeMap - name of image (omit "Image:")
- width=250 - for image width (omit "px")
- float=right (left, center) - position of map formatted on page
- caption=text - caption text along bottom of image
- Label settings
- lat=26.25 - for latitude 20.8-32.8 (higher towards top)
- long=31.92 - for longitude 25.3-35.8 (higher towards right)
- label=xxx - movable label (can be padded " XX YY ")
- label_size - percent from 0-200 (default: 95)
- position=right - (or left, top, bottom) position of label at marker
- mark - name of image for marker symbol (omit "Image:")
- marksize - size (in pixels) of marker-symbol (default: 8, 1=none)
- background - color of label (such as: darkorange or #4499DD)
- Some common label background colors are:
- #CCCC55 for dim yellow,
- #44EE44 for lime green, #BBBBBB for gray,
- #44CCDD for light aqua, #DDDDDD for light gray (almost white),
- PaleGreen for pale green, PaleTurquoise, DarkOrange, etc.
- By default, the label is transparent overwriting the image.
For small lettering use label_size=80, for tiny words use 55. Note that the words in the label will wrap unless using "nbsp": DO NOT WRAP.
When specifying image "width=270" be sure to OMIT "px" (which causes the image to span the width of the screen) because "px" cannot (yet) be detected by the (new) MediaWiki language which processes those mapping templates.
See each specific mapping template for other parameters to pass.
How to use an alternative map
This template normally displays the map shown above as image:
The AlternativeMap or relief parameters in {{Location map}} can be used to display the map shown above as image1:
Further instructions and examples can be found at Template:Location map#Using Alternative Map and Template:Location map#Relief.
Examples
Location map, using default map image
{{Location map | Egypt
| width = 210 <!--omit "px"-->
| label = Abydos
| lat = 26.18
| long = 31.92
}}
Location map, using relief parameter
{{Location map | Egypt
| relief = yes
| float = right <!--position (or: left/center)-->
| width = 210
| caption = Berenice on Red Sea
| label = Berenice
| label_size= 70
| background= #44CCDD <!--aqua-->
| position = left <!--or right/top/bottom -->
| lat = 23.92
| long = 35.45
| mark = Green_pog.svg <!--marker image-->
| marksize = 10 <!--marker size (default: 8, 1=none)-->
}}
Location map many, using AlternativeMap parameter
{{Location map many | Egypt
| <!--map settings-->
| AlternativeMap = Egypt relief location map.jpg
| width = 210 <!--omit "px"-->
| float = right <!--position (or: left/center)-->
| caption = Sallum north, Abu Simbel in south
| <!--1st label settings-->
| label = Sallum
| label_size = 70
| background = #DDDD44
| position = right <!--or: left/top/bottom-->
| lat = 31.61
| long = 25.92
| mark = Blue_pog.svg <!--marker image-->
| marksize = 10 <!--marker size (default: 8)-->
| <!--2nd label settings-->
| label2 = Abu Simbel
| label2_size = 70
| background2 = DarkOrange
| position2 = top <!--or: left/right/bottom -->
| lat2 = 22.34
| long2 = 31.37
| mark2 = Blue_pog.svg <!--marker image-->
| mark2size = 10 <!--marker size (default: 8)-->
}}
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).
See also
- Template:Superimpose - to label an image without a border box
- Template:Location map USA - for mapping the "lower 48" states
- Template:Location map Egypt relief
