ਫਰਮਾ:ਸਥਿਤੀ ਨਕਸ਼ਾ
This template creates a location map as a composite image of an existing map in equirectangular projection with a marker and an optional label superimposed onto it.
ਨੋਟ:
- Using caption=example frames the map, while caption= leaves map unframed.
- The coordinates are not checked. If the coordinates fall outside the map the result is undefined.
- For a map with no marker, set marksize=1.
- Do not use px. Using width=200px will cause the map to stretch across page.
- To create a map with more than one marker, refer to the See also section below.
- To display a map that uses a non-equirectangular projection (i.e. has curved latitudinal or longitudinal lines) try Template:Location map skew.
ਵਰਤੋਂ[ਸੋਧੋ]
Parameter location refers to a map definition template. If location is Spain, the map image and coordinates are based on the values set in Template:Location map Spain.
ਡੈਸੀਮਲ ਗੁਣਕ[ਸੋਧੋ]
{{Location map | <big><tt>location</tt></big> | lat = | long = | label = | label_size = | position = | background = | mark = | marksize = | width = | float = | border = | caption = | alt = | AlternativeMap = }}
Degree/Minute/Second coordinates[ਸੋਧੋ]
{{Location map | <big><tt>location</tt></big> | lat_deg = | lat_min = | lat_sec = | lat_dir = | lon_deg = | lon_min = | lon_sec = | lon_dir = | label = | label_size = | position = | background = | mark = | marksize = | width = | float = | border = | caption = | alt = | AlternativeMap = }}
Parameters[ਸੋਧੋ]
Parameter | Default | Description |
---|---|---|
{{{1}}} | the unnamed 1st parameter contains the location of the map definition (if Spain, then use values from {{Location map Spain}}) | |
lat | 0 | latitude (decimal format; enter negative numbers for southern latitude) |
lat_deg | 0 | latitude degrees |
lat_min | 0 | latitude minutes |
lat_sec | 0 | latitude seconds |
lat_dir | N | latitude: N = north (default), S = south |
long | 0 | longitude (decimal format; enter negative numbers for western longitude) |
lon_deg | 0 | longitude degrees |
lon_min | 0 | longitude minutes |
lon_sec | 0 | longitude seconds |
lon_dir | E | longitude: E = east (default), W = west |
label | {{PAGENAME}} | label text |
label_size | 100 | label font size as a percentage (<100 = smaller, >100 = larger) |
position | right | label position relative to the mark: left, right, top, bottom, none |
background | transparent | label background color (background-color: {};) |
mark | Red pog.svg | marker image file name ([[Image: {}]]) |
marksize | 8 | marker size in pixels, omit px ([[Image: {}px]] font-size: {}px;) |
width | 240 | map width - omit "px" or will stretch across page (image: {}px width: ({}+2)px;) |
float | right | position of map on page: left, right, center, none (float: {}; clear: {}; |
border | #CCCCCC | border color or none (border: {};) |
caption | "Marker text (location map name)" | map caption; for no caption enter "caption=" |
alt | empty | alt text for map; see WP:ALT |
AlternativeMap | {{Location map {{{1}}}|image}} | Alternative map file name ([[Image: {}]]), must use same border coordinates as the default map |
Available map templates[ਸੋਧੋ]
See Special:PrefixIndex/Template:Location_map_.
See also Category:Location map templates (currently very incomplete, but useful for some subcategories).
Creating new map templates[ਸੋਧੋ]
- Find an appropriate blank map in equirectangular projection.
- Create a template named Template:Location map location (copy the content of any other map template into it and enter appropriate values).
ਉਦਾਹਰਣਾਂ[ਸੋਧੋ]
Default width, float, label position, and caption (decimal coordinates)[ਸੋਧੋ]
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Croatia | lat = 44.44 | long = 15.05 | label = Pag | alt = Pag is on an island }}
Map with the default caption (degrees/minutes)[ਸੋਧੋ]
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Croatia | lat = 44.44 | long = <!--outside map-->11.05 | label = Rubicon | position = right | width = 200 | float = right | alt = Rubicon is in Italy (outside the map) }}
Marker/Label outside of Map[ਸੋਧੋ]
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Croatia | lat = 44.44 | long = <!--outside map-->11.05 | label = Rubicon | position = right | width = 200 | float = right | alt = Rubicon is in Italy (outside the map) }}
Map with a custom caption and text background[ਸੋਧੋ]
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Croatia | lat = 43.44 | long = 17.21 | label = Imotski | position = right | background = #FFFFDD | width = 300 | float = right | caption = Imotski in Croatia | alt = Imotski is in Croatia. }}
Map with enlarged marker and label[ਸੋਧੋ]
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Croatia | lat = 44.44 | long = 15.05 | label = Pag | label_size = 200 <!--200% larger--> | position = right | background = #FFFFDD | marksize = 14 | width = 200 | float = right | caption = Pag Island in Croatia | alt = Pag is on an island }}
Map with no caption or border[ਸੋਧੋ]
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Bosnia | lat = 44.87 | long = 18.81 | label = Brčko | position = left | width = 200 | float = right | caption = | alt = Brčko is in northeast Bosnia. }}
Alternative style of map[ਸੋਧੋ]
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Scotland | lat_deg = 55 | lat_min = 07 | lat_sec = 16 | lat_dir = N | lon_deg = 03 | lon_min = 21 | lon_sec = 19 | lon_dir = W | label = Lockerbie | position = right | mark = Blue_pog.svg | marksize = 9 | width = 200 | float = right | caption = Lockerbie in Scotland | alt = Lockerbie is in southern Scotland. }}
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Scotland2 | lat_deg = 55 | lat_min = 07 | lat_sec = 16 | lat_dir = N | lon_deg = 03 | lon_min = 21 | lon_sec = 19 | lon_dir = W | label = Lockerbie | position = right | mark = Blue_pog.svg | marksize = 9 | width = 200 | float = right | caption = Lockerbie in Scotland | alt = Lockerbie is in southern Scotland.
Using Alternative Map[ਸੋਧੋ]
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Nepal | lat_deg = 26 | lat_min = 28 | lat_sec = 53 | lat_dir = N | lon_deg = 87 | lon_min = 15 | lon_sec = 50 | lon_dir = E | label = Biratnagar | position = top | mark = Airplane silhouette.svg | marksize = 10 | caption = Location of Biratnagar Airport in Nepal | alt = Biratnagar Airport is located in southeastern Nepal }}
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Nepal | lat_deg = 26 | lat_min = 28 | lat_sec = 53 | lat_dir = N | lon_deg = 87 | lon_min = 15 | lon_sec = 50 | lon_dir = E | label = Biratnagar | position = top | mark = Airplane silhouette.svg | marksize = 10 | caption = Location of Biratnagar Airport in Nepal | alt = Biratnagar Airport is located in southeastern Nepal | AlternativeMap = Nepal relief location map.jpg }}
Relief[ਸੋਧੋ]
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Mexico | label = Popocatépetl | lat_deg = 19 | lat_min = 1 | lat_sec = 20 | lat_dir = N | lon_deg = 98 | lon_min = 37 | lon_sec = 40 | lon_dir = W | width = 200 | relief = 1 }} |
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Mexico | label = Popocatépetl | lat_deg = 19 | lat_min = 1 | lat_sec = 20 | lat_dir = N | lon_deg = 98 | lon_min = 37 | lon_sec = 40 | lon_dir = W | width = 200 | relief = }} |
Map that crosses 180° meridian[ਸੋਧੋ]
Lua error in ਮੌਡਿਊਲ:Location_map at line 414: No value was provided for longitude.
{{Location map | Fiji | label=Suva | lat_deg = 18 | lat_min = 8 | lat_sec = 0 | lat_dir = S | lon_deg = 178 | lon_min = 26 | lon_sec = 0 | lon_dir = E | position = right | background = yellow | mark = Locator_Dot.png | marksize = 7 | width = 200 | float = right }}
ਹੋਰ ਵੇਖੋ[ਸੋਧੋ]
- Template:Location map many - placing multiple markers/labels.
- Template:Location map+ - placing long list of markers/labels.
- Template:Location map skew - mapping along converging longitudes (non-equirectangular).
- commons:Category:Map pointers
The above documentation is transcluded from ਫਰਮਾ:ਸਥਿਤੀ ਨਕਸ਼ਾ/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |