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}}} | ||
{{#if: {{{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"> | |||
{{#if:{{{latd|}}}| | |||
<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|}}}| |