Template:Infobox military operation: Difference between revisions
Jump to navigation
Jump to search
imported>Kirill Lokshin (Move to /doc subpage) |
imported>Michelle Bentley (Modyfying template to accomodate locator-map. See Kunduz airstrike.) |
||
Line 11: | Line 11: | ||
{{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{{image|}}}<br/>{{{caption|}}} | {{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{{image|}}}<br/>{{{caption|}}} | ||
}} | }} | ||
<!-- ###### 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_caption = {{{caption|}}} | |||
| float = {{{locator|}}} | |||
| float_width = 6px | |||
| x = {{{locator_x}}} | |||
| y = {{{locator_y}}} | |||
}}</div>}} | |||
|- | |||
<!-- ###### 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; | |||
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>}} | |||
|- | |||
|- | |- | ||
{{#if:{{{scope|}}}{{{type|}}}| | {{#if:{{{scope|}}}{{{type|}}}| |