الگو:Dim yellow
- movable label (can be padded " XX YY ")
- label_size - percent from 0-200 (default: 95)
- background - color of label (such as: darkorange or #4499DD)
- position=right - (or left, top, bottom) position of label at marker
- lat =26.25 - for latitude 20.8-32.8 (higher towards top)
- long=31.92 - for longitude 25.3-35.8 (higher towards right)
- mark - name of image for marker symbol (omit "Image:")
- marksize - size (in pixels) of marker-symbol (default: 8, 1=none)
- float=right (or left, center) - position of map formatted on page
Some common label background colors are: #CCCC55 for ,
- #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.
Alternative map[ویرایش]
The AlternativeMap parameter in Template:Location map can be used to display the following alternative map image:
Examples[ویرایش]
{{Location map | Egypt
| caption = Example for Abydos in Egypt
| width=210
| label=Abydos
| label-size=90
| background = #DDDD44
| position=top
| lat = 26.18
| long = 31.92
| mark=Red_pog2.svg
| marksize=10
| float=right
}}
{{Location map | Egypt
| caption = Berenice on Red Sea
| width=210 <!--omit "px"-->
| label=Berenice
| label-size=70
| background = <!--aqua-->#44CCDD
| position=left<!--right/top/bottom-->
| lat = 23.92 <!--latitude 20.5-32.8 -->
| long= 35.45 <!--longitude 25.3-35.8-->
| mark=Green_pog.svg <!--omit "Image:"-->
| marksize=10 <!--default: 8, 1=none-->
| float=right <!--left/center-->
}}
{{Location map many | Egypt
| AlternativeMap = Egypt relief location map.jpg
| width=210
| label=Sallum | label_size=70
| background = #DDDD44
| position=right
| lat = 31.61 | long = 25.92
| mark=Blue_pog.svg
| marksize=10
| label2=Abu Simbel | label2_size=70
| background2 = DarkOrange
| position2=top
| lat2 = 22.34 | long2 = 31.37
| mark2=Blue_pog.svg
| mark2size=10
| float=right
| caption = Sallum north, Abu Simbel in south
}}
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