Template:Infobox military operation: Difference between revisions

Jump to navigation Jump to search
imported>Kirill Lokshin
(Try collapsing images into single block)
imported>Kirill Lokshin
(Convert to use standard location map markup)
Line 8: Line 8:
}}
}}
|-
|-
{{#if:{{{image|}}}{{{base_map|}}}{{{latd|}}}|
{{#if:{{{image|}}}{{{map_type|}}}|
{{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{#if:{{{image|}}}|{{{image|}}}<br/>{{{caption|}}}}}
{{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{#if:{{{image|}}}|{{{image|}}}<br/>{{{caption|}}}}}
{{#if: {{{base_map|}}}|<div>{{Superimpose| base = {{{base_map}}}
{{#if:{{{map_type|}}}|<center>{{Location map|{{{map_type}}}|lat={{{latitude}}}|long={{{longitude}}}|width={{{map_size|220}}}|float=center|border=none|caption={{{map_caption|Location within {{{map_type}}}}}}}}</center>}}
  | base_width = 230px
  | base_caption = {{{caption|}}}
  | float = {{{locator|}}}
  | float_width = 6px
  | x = {{{locator_x}}}
  | y = {{{locator_y}}}
}}</div>}}
{{#if:{{{latd|}}}|<div><div style="width: 240px; background: transparent">
<div style="position:relative; width:240px">{{{locator_map}}}<br/><div style="position:absolute; z-index:200;
top:{{#expr:(  (38.757 -{{{latd}}}) *10.581 <!-- 100/(38.757-29.306) -->) round 1}}%;
left:{{#expr:( ({{{longd}}}-60.069) * 6.641 <!-- 100/(75.126-60.069) -->) round 1}}%; height:0; width:0; margin:0; padding:0;">
<div style="position:relative; top:-4px; left:-4px; width:8px; text-align:center; z-index:201">[[Image:Red pog.svg|8x8px]]</div>
<div style="font-size:110%; line-height:110%; position:relative; top:-1.5em; text-align: {{#switch: {{{locator_position}}}
| left = right; left:-6.5em
|#default=left; left:0.5em}}; width:6em; z-index:202;">
<b style="padding:1px; background:none">{{{locator}}}</b>
</div>
</div>
</div>
</div>}}
}}
}}
|-  
|-  

Revision as of 16:35, 5 September 2009