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

From blackwiki
Jump to navigation Jump to search
imported>Droll
(Comment)
imported>Zyxw
(note that this file is no longer transcluded, add example with parameter undefined)
Line 1: Line 1:
 
<!--
 
<!--
  
  This page is transcluded in the documentation for Location map+
+
This page is NOT transcluded in the documentation for Location map+
  
-->{{Location map+
+
-->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.
| England
+
 
| width=300
+
== AlternativeMap defined ==
| AlternativeMap=England_locator_map_w_Northumberland_highlighted.svg
+
{{Location map+ | England
| float=right
+
| AlternativeMap = England locator map w Northumberland highlighted.svg
| caption=[[Battle of Bosworth Field]]
+
| width = 200
| places=
+
| caption = [[Battle of Bosworth Field]]
   {{Location map~
+
| places =
    | England
+
   {{Location map~ | England
     | label='''Bosworth'''
+
     | label = '''Bosworth'''
     | position=right
+
     | position = right
     | lat=52.591265
+
     | mark = Battle icon active (crossed swords).svg
     | long=-1.410327
+
    | marksize = 20
     | mark=Battle_icon_active_(crossed_swords).svg
+
    | lat_deg = 52.591265
     | marksize=20}}
+
     | lon_deg = -1.410327
   {{Location map~
+
  }}
    | England
+
  {{Location map~ | England
     | label=Northumberland
+
    | label = Northumberland
     | position=right
+
    | position = right
     | lat=55.1
+
     | mark = Steel pog.svg
     | long=-1.68
+
     | marksize = 1
     | mark=Steel pog.svg
+
    | lat_deg = 55.1
     | marksize=1}}
+
    | lon_deg = -1.68
 +
  }}
 +
}}
 +
<pre style="width:45em; font-size:95%;">
 +
{{Location map+ | England
 +
| AlternativeMap = England locator map w Northumberland 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
 +
  }}
 
}}
 
}}
 +
</pre>
  
This example is taken form the article [[Battle of Bosworth Field]].
+
== AlternativeMap not defined ==
 
+
{{Location map+ | England
<pre style="width:50em;">
+
| AlternativeMap =
{{Location map+
+
| width = 200
| England
+
| caption = [[Battle of Bosworth Field]]
| width=300
+
| places =
| AlternativeMap=England_locator_map_w_Northumberland_highlighted.svg
+
  {{Location map~ | England
| float=right
+
    | label = '''Bosworth'''
| caption=Battle of Bosworth Field
+
    | position = right
| places=
+
    | mark = Battle icon active (crossed swords).svg
   {{Location map~| England| label='''Bosworth'''
+
    | marksize = 20
     | position=right
+
    | lat_deg = 52.591265
     | lat=52.591265
+
    | lon_deg = -1.410327
     | long=-1.410327
+
  }}
     | mark=Battle_icon_active_(crossed_swords).svg
+
  {{Location map~ | England
     | marksize=20}}
+
    | label = Northumberland
   {{Location map~
+
    | position = right
    | England
+
    | mark = Steel pog.svg
     | label=Northumberland
+
    | marksize = 1
     | position=right
+
    | lat_deg = 55.1
     | lat=55.1
+
    | lon_deg = -1.68
     | long=-1.68
+
  }}
     | mark=Steel pog.svg
+
}}
     | marksize=1}}
+
<pre 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>
 
</pre>

Revision as of 11:38, 21 August 2011

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 w Northumberland 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
  }}
}}