Difference between revisions of "Module:Location map/data/Vatican/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(add image)
Line 1: Line 1:
{{Documentation subpage}}
+
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->{{Module:Location map/data/doc
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
+
 
{{Location map/Info}}
+
| image =
 
[[File:Map of Vatican City.jpg|thumb|400px|Map of Vatican City (click on map to see larger image)]]
 
[[File:Map of Vatican City.jpg|thumb|400px|Map of Vatican City (click on map to see larger image)]]
  
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' is a location map definition used to overlay markers and labels on an [[equirectangular projection]] map of [[Vatican City]]. The markers are placed by [[latitude]] and [[longitude]] coordinates on the default map or a similar map image.
+
| precision =
 +
[[Longitude]]: from West to East this map definition covers {{Decimals|{{#expr: ( {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|right}} - {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|left}} + 360 ) fmod 360}}|6}} degrees.
 +
* At an image width of 200 [[pixel]]s, that is {{Decimals|{{#expr: ( {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|right}} - {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|left}} + 360 ) fmod 360 / 200}}|6}} degrees per pixel.
 +
* At an image width of 1000 pixels, that is {{Decimals|{{#expr: ( {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|right}} - {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|left}} + 360 ) fmod 360 / 1000}}|6}} degrees per pixel.
  
== Usage ==
+
[[Latitude]]: from North to South this map definition covers {{Decimals|{{#expr: {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|top}} - {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|bottom}}}}|6}} degrees.
These definitions are used by the following templates when invoked with parameter "Vatican":
+
* At an image height of 200 pixels, that is {{Decimals|{{#expr: ( {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|top}} - {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|bottom}} ) / 200}}|6}} degrees per pixel.
* {{tlx|Location map | Vatican&nbsp;| ...}}
+
* At an image height of 1000 pixels, that is {{Decimals|{{#expr: ( {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|top}} - {{#invoke:Location map|data|{{#titleparts:{{FULLPAGENAME}}|1|3}}|bottom}} ) / 1000}}|6}} degrees per pixel.
* {{tlx|Location map many | Vatican&nbsp;| ...}}
 
* {{tlx|Location map+ | Vatican&nbsp;| ...}}
 
* {{tlx|Location map~ | Vatican&nbsp;| ...}}
 
 
 
== Map definition ==
 
* <tt>'''name''' = {{{{BASEPAGENAME}}|name}}</tt>
 
*: Name used in the default map caption
 
 
 
* <tt>'''image''' = [[:File:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt>
 
*: The default map image, without "Image:" or "File:"
 
{{#if:{{{{BASEPAGENAME}}|image1}}|
 
 
 
* <tt>'''image1''' = [[:File:{{{{BASEPAGENAME}}|image1}}|{{{{BASEPAGENAME}}|image1}}]]</tt>
 
*: An alternative map image, usually a relief map, can be displayed via the ''relief'' or ''AlternativeMap'' parameters
 
}}{{#if:{{{{BASEPAGENAME}}|image2}}|
 
 
 
* <tt>'''image2''' = [[:File:{{{{BASEPAGENAME}}|image2}}|{{{{BASEPAGENAME}}|image2}}]]</tt>
 
*: A second alternative map image, can be displayed via the ''AlternativeMap'' parameter only
 
}}{{#if:{{{{BASEPAGENAME}}|top}}{{{{BASEPAGENAME}}|bottom}}{{{{BASEPAGENAME}}|left}}{{{{BASEPAGENAME}}|right}}|
 
 
 
* <tt>'''top''' = {{{{BASEPAGENAME}}|top}}</tt>
 
*: [[Latitude]] at top edge of map, in [[decimal degrees]]
 
 
 
* <tt>'''bottom''' = {{{{BASEPAGENAME}}|bottom}}</tt>
 
*: Latitude at bottom edge of map, in decimal degrees
 
 
 
* <tt>'''left''' = {{{{BASEPAGENAME}}|left}}</tt>
 
*: [[Longitude]] at left edge of map, in decimal degrees
 
 
 
* <tt>'''right''' = {{{{BASEPAGENAME}}|right}}</tt>
 
*: Longitude at right edge of map, in decimal degrees
 
}}{{#if:{{{{BASEPAGENAME}}|x}}{{{{BASEPAGENAME}}|y}}|
 
 
 
* <tt>'''x''' = {{{{BASEPAGENAME}}|x}}</tt>
 
*: An expression to calculate a location on the map via its [[longitude]]; evaluates as 0 along the left edge and 100 along the right edge
 
 
 
* <tt>'''y''' = {{{{BASEPAGENAME}}|y}}</tt>
 
*: An expression to calculate a location on the map via its [[latitude]]; evaluates as 0 along the top edge and 100 along the bottom edge
 
}}
 
{{#if:{{{{BASEPAGENAME}}|image1}}|
 
== Alternative map ==
 
The map defined as '''image1''' (<tt>{{{{BASEPAGENAME}}|image1}}</tt>) can be displayed by using the ''relief'' or ''AlternativeMap'' parameters in {{tl|Location map}}, {{tl|Location map many}} and {{tl|Location map+}}. {{#if:{{{{BASEPAGENAME}}|image2}}| The map defined as '''image2''' (<tt>{{{{BASEPAGENAME}}|image2}}</tt>) can only be displayed by using the ''AlternativeMap'' parameter.}} The use of these two parameters is shown in the examples below. Additional examples can be found at:
 
{{{!}}
 
{{!}}
 
* [[Template:Location map#Relief parameter]]
 
* [[Template:Location map#AlternativeMap parameter]]
 
{{!}}
 
* [[Template:Location map+/relief]]
 
* [[Template:Location map+/AlternativeMap]]
 
{{!}}}
 
}}
 
{{#if:{{{{BASEPAGENAME}}|top}}{{{{BASEPAGENAME}}|bottom}}{{{{BASEPAGENAME}}|left}}{{{{BASEPAGENAME}}|right}}|
 
== Precision ==
 
[[Longitude]]: from West to East this map definition covers {{Decimals|{{#expr: -( {{{{BASEPAGENAME}}|left}} - {{{{BASEPAGENAME}}|right}} )}}|6}} degrees.
 
* At an image width of 200 [[pixel]]s, that is {{Decimals|{{#expr: -( {{{{BASEPAGENAME}}|left}} - {{{{BASEPAGENAME}}|right}} ) / 200}}|6}} degrees per pixel.
 
* At an image width of 1000 pixels, that is {{Decimals|{{#expr: -( {{{{BASEPAGENAME}}|left}} - {{{{BASEPAGENAME}}|right}} ) / 1000}}|6}} degrees per pixel.
 
 
 
[[Latitude]]: from North to South this map definition covers {{Decimals|{{#expr: {{{{BASEPAGENAME}}|top}} - {{{{BASEPAGENAME}}|bottom}}}}|6}} degrees.
 
* At an image height of 200 pixels, that is {{Decimals|{{#expr: ( {{{{BASEPAGENAME}}|top}} - {{{{BASEPAGENAME}}|bottom}} ) / 200}}|6}} degrees per pixel.
 
* At an image height of 1000 pixels, that is {{Decimals|{{#expr: ( {{{{BASEPAGENAME}}|top}} - {{{{BASEPAGENAME}}|bottom}} ) / 1000}}|6}} degrees per pixel.
 
}}
 
== Examples using location map templates ==
 
  
 +
| examples =
 
=== Location map ===
 
=== Location map ===
 
{{Location map | Vatican
 
{{Location map | Vatican
Line 150: Line 92:
  
 
=== Location map with multiple maps ===
 
=== Location map with multiple maps ===
{{Location map | Vatican#Rome#Italy
+
{{Location map | Vatican#Rome#Lazio#Italy#Europe#Earth
 
| width  = 200
 
| width  = 200
 
| lat_deg =  41 | lat_min = 54 | lat_sec = 08 | lat_dir = N  
 
| lat_deg =  41 | lat_min = 54 | lat_sec = 08 | lat_dir = N  
Line 158: Line 100:
 
}}
 
}}
 
<pre style="width:40em">
 
<pre style="width:40em">
{{Location map | Vatican#Rome#Italy
+
{{Location map | Vatican#Rome#Lazio#Italy#Europe#Earth
 
| width  = 200
 
| width  = 200
 
| lat_deg =  41 | lat_min = 54 | lat_sec = 08 | lat_dir = N  
 
| lat_deg =  41 | lat_min = 54 | lat_sec = 08 | lat_dir = N  
Line 192: Line 134:
 
{{Infobox church
 
{{Infobox church
 
| name = St. Peter's Basilica
 
| name = St. Peter's Basilica
| pushpin map = Vatican#Rome#Italy
+
| pushpin map = Vatican#Rome#Lazio#Italy#Europe#Earth
 
| pushpin label position = none
 
| pushpin label position = none
 
| map caption = Location of St. Peter's Basilica
 
| map caption = Location of St. Peter's Basilica
Line 200: Line 142:
 
{{Infobox church
 
{{Infobox church
 
| name = St. Peter's Basilica
 
| name = St. Peter's Basilica
| pushpin map = Vatican#Rome#Italy
+
| pushpin map = Vatican#Rome#Lazio#Italy#Europe#Earth
 
| pushpin label position = none
 
| pushpin label position = none
 
| map caption = Location of St. Peter's Basilica
 
| map caption = Location of St. Peter's Basilica
Line 208: Line 150:
 
{{clear}}
 
{{clear}}
  
== See also ==
+
| see also =  
 
* [[Module:Location map/data/Vatican City]], uses a different map image with different edge coordinates
 
* [[Module:Location map/data/Vatican City]], uses a different map image with different edge coordinates
  
; Location map templates
+
}}<includeonly>{{sandbox other||
* [[Template:Location map]], to display one mark and label using latitude and longitude
 
* [[Template:Location map many]], to display up to nine marks and labels
 
* [[Template:Location map+]], to display an unlimited number of marks and labels
 
 
 
; Infobox templates incorporating (passing values to) the Location map template
 
{{Location map/doc/See also infobox templates}}
 
 
 
<includeonly>{{sandbox other||
 
 
<!-- Categories below this line; interwikis at Wikidata -->
 
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Location map by country templates|Vatican City]]
 
[[Category:Location map by country templates|Vatican City]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 16:06, 12 September 2017

Location map of Vatican City
name Vatican City
border
coordinates
41.9083
12.4451 ←↕→ 12.4595
41.899
map center Lua error: callParserFunction: function "#coordinates" was not found.
image Vatican City location map.svg
400x400px
File:Map of Vatican City.jpg
Map of Vatican City (click on map to see larger image)

Module:Location map/data/Vatican is a location map definition used to overlay markers and labels on an equirectangular projection map of Vatican City. The markers are placed by latitude and longitude coordinates on the default map or a similar map image.

Usage

These definitions are used by the following templates when invoked with parameter "Vatican":

Map definition

  • name = Vatican City
    Name used in the default map caption
  • bottom = 41.899
    Latitude at bottom edge of map, in decimal degrees
  • left = 12.4451
    Longitude at left edge of map, in decimal degrees
  • right = 12.4595
    Longitude at right edge of map, in decimal degrees

Precision

Longitude: from West to East this map definition covers

  1. REDIRECT Template:Round degrees.
  • At an image width of 200 pixels, that is
  1. REDIRECT Template:Round degrees per pixel.
  • At an image width of 1000 pixels, that is
  1. REDIRECT Template:Round degrees per pixel.

Latitude: from North to South this map definition covers

  1. REDIRECT Template:Round degrees.
  • At an image height of 200 pixels, that is
  1. REDIRECT Template:Round degrees per pixel.
  • At an image height of 1000 pixels, that is
  1. REDIRECT Template:Round degrees per pixel.

Examples using location map templates

Location map

St. Peter's Basilica (Vatican City)
{{Location map | Vatican
| width   = 200
| lat_deg =  41 | lat_min = 54 | lat_sec = 08 | lat_dir = N 
| lon_deg = 012 | lon_min = 27 | lon_sec = 12 | lon_dir = E
| label   = St. Peter's Basilica
}}

Location map many

Locations in Vatican City
{{Location map many | Vatican
| width    = 200
| caption  = Locations in Vatican City
| lat1 = 41.906389 | long1 = 12.454444 | label1 = Vatican Museums
| lat2 = 41.900556 | long2 = 12.453333 | label2 = Saint Martha's
| lat3 = 41.902000 | long3 = 12.446500 | label3 = Vatican Heliport
| lat4 = 41.903780 | long4 = 12.456690 | label4 = Vatican Bank
}}

Location map+

Locations in Vatican City
{{Location map+ | Vatican
| width   = 200
| caption = Locations in Vatican City
| places  =
  {{Location map~ | Vatican
  | lat = 41.906389 | long = 12.454444 | label = Vatican Museums
  }}
  {{Location map~ | Vatican
  | lat = 41.900556 | long = 12.453333 | label = Saint Martha's
  }}
  {{Location map~ | Vatican
  | lat = 41.902000 | long = 12.446500 | label = Vatican Heliport
  }}
  {{Location map~ | Vatican
  | lat = 41.903780 | long = 12.456690 | label = Vatican Bank
  }}
}}

Location map with multiple maps

Location of St. Peter's Basilica
St. Peter's Basilica (Rome)
St. Peter's Basilica is located in Lazio
St. Peter's Basilica
St. Peter's Basilica (Lazio)
St. Peter's Basilica is located in Italy
St. Peter's Basilica
St. Peter's Basilica (Italy)
St. Peter's Basilica is located in Europe
St. Peter's Basilica
St. Peter's Basilica (Europe)
St. Peter's Basilica is located in Earth
St. Peter's Basilica
St. Peter's Basilica (Earth)
{{Location map | Vatican#Rome#Lazio#Italy#Europe#Earth
| width   = 200
| lat_deg =  41 | lat_min = 54 | lat_sec = 08 | lat_dir = N 
| lon_deg = 012 | lon_min = 27 | lon_sec = 12 | lon_dir = E
| label   = St. Peter's Basilica
| caption  = Location of St. Peter's Basilica
}}

Examples using infobox templates

Single map

[[Category:Template:Pagetype with short description]]

Script error: No such module "If empty".
Script error: No such module "If empty".
Script error: No such module "If empty".
Lua error in Module:Location_map at line 399: Malformed coordinates value.
Lua error: callParserFunction: function "#coordinates" was not found.
Religious instituteScript error: No such module "If empty".
Former name(s)Script error: No such module "If empty".
Authorising papal bullScript error: No such module "If empty".
ConsecratedScript error: No such module "If empty".
DesignatedScript error: No such module "If empty".
CompletedScript error: No such module "If empty".
HeightScript error: No such module "If empty".
Organ scholarScript error: No such module "If empty".
{{Infobox church
| name = St. Peter's Basilica
| pushpin map = Vatican
| pushpin label position = none
| map caption = Location on a map of Vatican City
| coordinates = {{coord|41|54|08|N|012|27|12|E|display=inline<!--,title-->}}
}}

Multiple maps

[[Category:Template:Pagetype with short description]]

Script error: No such module "If empty".
Script error: No such module "If empty".
Script error: No such module "If empty".
Lua error in Module:Location_map at line 399: Malformed coordinates value.
Lua error: callParserFunction: function "#coordinates" was not found.
Religious instituteScript error: No such module "If empty".
Former name(s)Script error: No such module "If empty".
Authorising papal bullScript error: No such module "If empty".
ConsecratedScript error: No such module "If empty".
DesignatedScript error: No such module "If empty".
CompletedScript error: No such module "If empty".
HeightScript error: No such module "If empty".
Organ scholarScript error: No such module "If empty".
{{Infobox church
| name = St. Peter's Basilica
| pushpin map = Vatican#Rome#Lazio#Italy#Europe#Earth
| pushpin label position = none
| map caption = Location of St. Peter's Basilica
| coordinates = {{coord|41|54|08|N|012|27|12|E|display=inline<!--,title-->}}
}}

See also

Location map templates

Creating new map definitions