Difference between revisions of "Template:Location map+/AlternativeMap"

From blackwiki
Jump to navigation Jump to search
imported>Droll
(An example using the AlternativeMap parameter)
 
imported>WOSlinker
m (change source to syntaxhighlight)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Location map+
+
<!--
|England
+
 
|width=300
+
This page is NOT transcluded in the documentation for Location map+
|AlternativeMap=England_locator_map_w_Northumberland_highlighted.svg
+
 
|float=right
+
-->The following examples document the use of the ''AlternativeMap'' parameter in the {{tl|Location map+}} template. This parameter is also available via the {{tl|Location map}} and {{tl|Location map many}} templates.
|caption=Battle of Bosworth Field;
+
 
|places=
+
== AlternativeMap defined ==
   {{Location map~|England|label='''Bosworth'''
+
{{Location map+ | England
  |position=right
+
| AlternativeMap =England_locator_map_with_North_East_England_highlighted.svg
  |lat=52.591265
+
| width = 200
  |long=-1.410327
+
| caption = [[Battle of Bosworth Field]]
   |mark=Battle_icon_active_(crossed_swords).svg
+
| places =
  |marksize=20}}
+
   {{Location map~ | England
 +
    | label = '''Bosworth'''
 +
    | position = right
 +
    | mark = Battle icon active (crossed swords).svg
 +
    | marksize = 20
 +
    | lat_deg = 52.591265
 +
    | lon_deg = -1.410327
 +
   }}
 +
  {{Location map~ | England
 +
    | label = Northumberland
 +
    | position = right
 +
    | mark = Steel pog.svg
 +
    | marksize = 1
 +
    | lat_deg = 55.1
 +
    | lon_deg = -1.68
 +
  }}
 
}}
 
}}
 +
<syntaxhighlight lang="moin" style="width:45em; font-size:95%;">
 +
{{Location map+ | England
 +
| AlternativeMap =England_locator_map_with_North_East_England_highlighted.svg
 +
| width = 200
 +
| caption = [[Battle of Bosworth Field]]
 +
| places =
 +
  {{Location map~ | England
 +
    | label = '''Bosworth'''
 +
    | position = right
 +
    | mark = Battle icon active (crossed swords).svg
 +
    | marksize = 20
 +
    | lat_deg = 52.591265
 +
    | lon_deg = -1.410327
 +
  }}
 +
  {{Location map~ | England
 +
    | label = Northumberland
 +
    | position = right
 +
    | mark = Steel pog.svg
 +
    | marksize = 1
 +
    | lat_deg = 55.1
 +
    | lon_deg = -1.68
 +
  }}
 +
}}
 +
</syntaxhighlight>
  
<pre style="width:50em;">
+
== AlternativeMap not defined ==
{{Location map+
+
{{Location map+ | England
|England
+
| AlternativeMap =
|width=300
+
| width = 200
|AlternativeMap=England_locator_map_w_Northumberland_highlighted.svg
+
| caption = [[Battle of Bosworth Field]]
|float=right
+
| places =
|caption=Battle of Bosworth Field;
+
  {{Location map~ | England
|places=
+
    | label = '''Bosworth'''
   {{Location map~|England|label='''Bosworth'''
+
    | position = right
  |position=right
+
    | mark = Battle icon active (crossed swords).svg
  |lat=52.591265
+
    | marksize = 20
  |long=-1.410327
+
    | lat_deg = 52.591265
   |mark=Battle_icon_active_(crossed_swords).svg
+
    | lon_deg = -1.410327
  |marksize=20}}
+
  }}
 +
  {{Location map~ | England
 +
    | label = Northumberland
 +
    | position = right
 +
    | mark = Steel pog.svg
 +
    | marksize = 1
 +
    | lat_deg = 55.1
 +
    | lon_deg = -1.68
 +
  }}
 +
}}
 +
<syntaxhighlight lang="moin" style="width:45em; font-size:95%;">
 +
{{Location map+ | England
 +
| AlternativeMap =  
 +
| width = 200
 +
| caption = [[Battle of Bosworth Field]]
 +
| places =
 +
   {{Location map~ | England
 +
    | label = '''Bosworth'''
 +
    | position = right
 +
    | mark = Battle icon active (crossed swords).svg
 +
    | marksize = 20
 +
    | lat_deg = 52.591265
 +
    | lon_deg = -1.410327
 +
   }}
 +
  {{Location map~ | England
 +
    | label = Northumberland
 +
    | position = right
 +
    | mark = Steel pog.svg
 +
    | marksize = 1
 +
    | lat_deg = 55.1
 +
    | lon_deg = -1.68
 +
  }}
 
}}
 
}}
</pre>
+
</syntaxhighlight>

Latest revision as of 11:58, 8 July 2020

The following examples document the use of the AlternativeMap parameter in the {{Location map+}} template. This parameter is also available via the {{Location map}} and {{Location map many}} templates.

AlternativeMap defined

{{Location map+ | England
| AlternativeMap =England_locator_map_with_North_East_England_highlighted.svg
| width = 200
| caption = [[Battle of Bosworth Field]]
| places =
  {{Location map~ | England
    | label = '''Bosworth'''
    | position = right
    | mark = Battle icon active (crossed swords).svg
    | marksize = 20
    | lat_deg = 52.591265
    | lon_deg = -1.410327
  }}
  {{Location map~ | England
    | label = Northumberland
    | position = right
    | mark = Steel pog.svg
    | marksize = 1
    | lat_deg = 55.1
    | lon_deg = -1.68
  }}
}}

AlternativeMap not defined

{{Location map+ | England
| AlternativeMap = 
| width = 200
| caption = [[Battle of Bosworth Field]]
| places =
  {{Location map~ | England
    | label = '''Bosworth'''
    | position = right
    | mark = Battle icon active (crossed swords).svg
    | marksize = 20
    | lat_deg = 52.591265
    | lon_deg = -1.410327
  }}
  {{Location map~ | England
    | label = Northumberland
    | position = right
    | mark = Steel pog.svg
    | marksize = 1
    | lat_deg = 55.1
    | lon_deg = -1.68
  }}
}}