Šablonas:Location map
Straipsnis iš Vikipedijos, laisvosios enciklopedijos.
Creates a location map as a composite image of an existing map in orthographic projection with a marker and a label superimposed onto it.
Turinys |
[taisyti] Usage
{{Location map|location
|label=label
|position=left or right - position of the label relative to the mark, defaults to right
|background=color - background color for the label, defaults to none
|lat=latitude in degrees
|long=longitude in degrees
|mark=image file name - a red dot by default
|caption=caption - caption below the map
|float=left or right or none
|width=width of the map
}}
Parameter location refers to Template:Location map location containing the name and coordinates of a map. For example Šablonas:Tiw, which in turn refers to Image:Obcine Slovenija 2005.png.
[taisyti] Available maps
List of templates Template:Location map location (here without prefix "Template:"):
| Location map | ||
| Location map Lietuva | ||
| Location map Mažeikių rajonas | ||
| Location map Skuodo rajonas | ||
[taisyti] Creating new maps
- Find an appropriate blank map in an orthographic projection.
- Create a template named Template:Location map location (copy the content of any other map template into it and enter appropriate values).
[taisyti] Issues
Doesn't handle longitude properly for maps crossing the +/- 180 meridian yet.
[taisyti] Pavyzdžiai
{{Location map|Lietuva|float=right|label=Vilnius|position=left|lat=54.667|long=25.28|caption=}}
{{Location map|Lietuva|float=right|label=Klaipėda|position=left|lat=55.70|long=21.13|caption=}}
{{Location map|Lietuva|float=right|label=Kaunas|position=left|lat=54.888|long=23.922|caption=}}
{{Location map|Skuodo rajonas|float=right|label=Aleksandrija|position=left|lat=56.285|long=21.69|caption=}}

