Suradnik:Leona/Lokacijska karta start

Izvor: Wikipedija

Creates a location map as a composite image of an existing map in orthographic projection with a marker and a label superimposed onto it.

Sadržaj

[uredi] Usage

{{Lokacijska karta start|location
 |float=left or right or none
 |width=width of the map
}}
{{Lokacijska karta marker|location
 |lat=latitude in degrees
 |long=longitude in degrees
 |background=color - background color for the label, defaults to none 
 |mark=image file name - a red dot by default
 |label=label
 |position=left or right - position of the label relative to the mark, defaults to right
}}
{{Lokacijska karta end|location
 |caption=caption - caption below the map
}}

[uredi] Available maps

List of templates Template:Location map location (here without prefix "Template:"):


[uredi] Creating new maps

  1. Find an appropriate blank map in an orthographic projection.
  2. Create a template named Template:Location map location (copy the content of any other map template into it and enter appropriate values).

[uredi] Issues

Doesn't handle longitude properly for maps crossing the +/- 180 meridian yet.

[uredi] Examples

{{Suradnik:Leona/Lokacijska karta start|Slovenija|float=left|width=100}}
{{Suradnik:Leona/Lokacijska karta marker|Slovenija|label=Ljubljana|lat=46.05|long=14.5}}
{{Suradnik:Leona/Lokacijska karta end|Slovenija|caption=Ljubljana is the capital of Slovenia}}

Ljubljana
Ljubljana is the capital of Slovenia

{{Suradnik:Leona/Lokacijska karta start|Slovenija|float=right}}
{{Suradnik:Leona/Lokacijska karta marker|Slovenija|label=Nova Gorica|lat=45.95|long=13.63|background=white}}
{{Suradnik:Leona/Lokacijska karta marker|Slovenija|label=Maribor|lat=46.55|long=15.64}}
{{Suradnik:Leona/Lokacijska karta end|Slovenija}}

Nova Gorica
Maribor
Map of Slovenia