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

From blackwiki
Jump to navigation Jump to search
imported>Droll
(added a wikilink)
imported>WOSlinker
m (change source to syntaxhighlight)
 
(6 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~
+
{{Location map+ | England
    | England
+
| AlternativeMap =England_locator_map_with_North_East_England_highlighted.svg
     | label='''Bosworth'''
+
| width = 200
     | position=right
+
| caption = [[Battle of Bosworth Field]]
     | lat=52.591265
+
| places =
     | long=-1.410327
+
   {{Location map~ | England
     | mark=Battle_icon_active_(crossed_swords).svg
+
     | label = '''Bosworth'''
     | marksize=20}}
+
     | position = right
   {{Location map~
+
     | mark = Battle icon active (crossed swords).svg
    | England
+
     | marksize = 20
     | label=Northumberland
+
     | lat_deg = 52.591265
     | position=right
+
     | lon_deg = -1.410327
     | lat=55.1
+
  }}
     | long=-1.68
+
   {{Location map~ | England
     | mark=Steel pog.svg
+
     | label = Northumberland
     | marksize=1}}
+
     | 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~
+
  {{Location map~ | England
    | England
+
    | label = Northumberland
     | label=Northumberland
+
    | position = right
     | position=right
+
     | mark = Steel pog.svg
     | lat=55.1
+
     | marksize = 1
     | long=-1.68
+
    | lat_deg = 55.1
     | mark=Steel pog.svg
+
    | lon_deg = -1.68
     | marksize=1}}
+
  }}
 +
}}
 +
<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+/AlternativeMap is located in England
Bosworth
Bosworth
Northumberland
Northumberland
{{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+/AlternativeMap is located in England
Bosworth
Bosworth
Northumberland
Northumberland
{{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
  }}
}}