Template:Infobox military operation: Difference between revisions

Jump to navigation Jump to search
imported>Michelle Bentley
(Modyfying template to accomodate locator-map. See Kunduz airstrike.)
imported>Kirill Lokshin
(Try collapsing images into single block)
Line 8: Line 8:
}}
}}
|-
|-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}{{{base_map|}}}{{{latd|}}}|
{{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{{image|}}}<br/>{{{caption|}}}
{{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{#if:{{{image|}}}|{{{image|}}}<br/>{{{caption|}}}}}
}}
{{#if: {{{base_map|}}}|<div>{{Superimpose| base = {{{base_map}}}
<!-- ###### Locator map (drawn using [[Template:Superimpose]]) -->
{{#if: {{{base_map|}}}|
{{!}} colspan="2" style="text-align: center; padding-top: 0.7em; padding-bottom: 0.7em;" {{!}} <div>{{Superimpose| base = {{{base_map}}}
   | base_width = 230px
   | base_width = 230px
   | base_caption = {{{caption|}}}
   | base_caption = {{{caption|}}}
Line 21: Line 18:
   | y = {{{locator_y}}}
   | y = {{{locator_y}}}
}}</div>}}
}}</div>}}
|-
{{#if:{{{latd|}}}|<div><div style="width: 240px; background: transparent">
<!-- ###### Locator map (auto-drawn) -->
{{#if:{{{latd|}}}|
{{!}} colspan="2" style="text-align: center; padding: 0.7em 0.8em;" {{!}}<div><div style="width:240px; background:transparent">
<div style="position:relative; width:240px">{{{locator_map}}}<br/><div style="position:absolute; z-index:200;
<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}}%;
top:{{#expr:(  (38.757 -{{{latd}}}) *10.581 <!-- 100/(38.757-29.306) -->) round 1}}%;
Line 37: Line 31:
</div>
</div>
</div>}}
</div>}}
|-
}}
|-  
|-  
{{#if:{{{scope|}}}{{{type|}}}|
{{#if:{{{scope|}}}{{{type|}}}|

Revision as of 16:26, 5 September 2009