Template:Infobox military operation: Difference between revisions

Jump to navigation Jump to search
imported>Izkala
(|border-infobox)
imported>Frietjes
No edit summary
Line 1: Line 1:
{| {{WPMILHIST Infobox style|main_box|vevent}}
{{ {{#if:{{{campaignbox|}}}|stack|1x}} |{{infobox
|-
|bodyclass = vevent
! colspan="2" {{WPMILHIST Infobox style|header_bar}} class="summary" | {{#if:{{{title|}}}|{{{title}}}|{{{name}}}}}
|bodystyle = {{WPMILHIST Infobox style|main_box_raw}}
|-
|abovestyle = {{WPMILHIST Infobox style|header_raw}}
{{#if:{{{partof|}}}{{{conflict|}}} |
|aboveclass = summary
{{!}} colspan="2" {{WPMILHIST Infobox style|sub_header_bar}} {{!}} Part of {{#if:{{{conflict|}}}|{{{conflict}}}|{{{partof|}}}}}
|above = {{if empty|{{{title|}}}|{{{name|}}}|{{PAGENAMEBASE}}}}
|subheaderstyle = {{WPMILHIST Infobox style|sub_header_raw}}
|subheader = {{#if:{{{partof|}}}{{{conflict|}}} | Part of {{if empty|{{{conflict|}}}|{{{partof|}}}}} }}
|labelstyle = padding-right: 1em;
|imagestyle = {{WPMILHIST Infobox style|image_box_raw}}
|image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|upright={{{image_upright|1}}}|alt={{{alt|}}}}}
|caption = {{{caption|}}}
|image2 = {{#if:{{{map_type|}}}|
{{Location map|{{{map_type}}}|lat={{{latitude|}}}|long={{{longitude|}}}|coordinates={{{coordinates|}}}|width={{{map_size|}}}|float=center|border=infobox|label={{{map_label|}}}|caption={{{map_caption|Location within {{#invoke:Location map|data|{{{map_type}}}|name}} }}} }}
}}
}}
|-
 
{{#if:{{{image|}}}{{{map_type|}}}|
| label1 = {{#if:{{{scope|}}}|Operational scope|Type}}
{{!}} colspan="2" {{WPMILHIST Infobox style|image_box}} {{!}} {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image}}}|size={{{image_size|}}}|upright={{{image_upright|1}}}|alt={{{alt|}}}}}<br/>{{{caption|}}}}}
| data1 = {{#if:{{{scope|}}}|{{{scope}}}|{{{type|}}}}}
{{#if:{{{map_type|}}}|{{Location map|{{{map_type}}}|lat={{{latitude}}}|long={{{longitude}}}|width={{{map_size|220}}}|float=center|border=infobox|label={{{map_label|}}}|caption={{{map_caption|Location within {{{map_type}}}}}}}}}}
 
}}
| label2 = Location
|-
| data2 = {{br separated entries
{{#if:{{{scope|}}}{{{type|}}}|
|1 = {{#if:{{{location|}}}|<span class="location">{{{location}}}</span>}}
! style="padding-right: 1em;" {{!}} {{#if:{{{scope|}}}|Operational scope|Type}}
|2 = {{{coordinates|}}}  
{{!}} {{#if:{{{scope|}}}|{{{scope}}}|{{{type}}}}}
}}
}}
 
|-
| label3 = Planned
{{#if:{{{location|}}}{{{coordinates|}}}|
| data3 = {{{planned|}}}
! style="padding-right: 1em;" {{!}} Location
 
{{!}} <span class="location">{{{location}}}</span><br/>{{{coordinates|}}}
| label4 = Planned&nbsp;by
}}
| data4 = {{{planned_by|}}}
|-
 
{{#if:{{{planned|}}}|
| label5 = Commanded&nbsp;by
! style="padding-right: 1em;" {{!}} Planned
| data5 = {{{commanded_by|}}}
{{!}} {{{planned}}}
 
}}
| label6 = {{#if:{{{target|}}}|Target|Objective}}
|-
| data6 = {{#if:{{{target|}}}|{{{target}}}|{{{objective|}}}}}
{{#if:{{{planned_by|}}}|
 
! style="padding-right: 1em;" {{!}} Planned&nbsp;by
| label7 = Date
{{!}} {{{planned_by}}}
| data7 = {{br separated entries
}}
|1 = {{#if:{{{executed|}}}|{{{executed}}}|{{{date|}}}}}
|-
|2 = {{{time|}}}  
{{#if:{{{commanded_by|}}}|
|3 = {{#if:{{{time-begin|}}}|{{{time-begin}}} &ndash; {{{time-end|}}}}}  
! style="padding-right: 1em;" {{!}} Commanded&nbsp;by
}} {{#if:{{{timezone|}}}|({{{timezone}}})}}  
{{!}} {{{commanded_by}}}
 
}}
| label8 = Executed&nbsp;by
|-
| data8 = {{#if:{{{instigator|}}}|{{{instigator}}}|{{{executed_by|}}}}}
! style="padding-right: 1em;" | {{#if:{{{target|}}}|Target|Objective}}
 
| {{#if:{{{target|}}}|{{{target}}}|{{{objective}}}}}
| label9 = Outcome
|-
| data9 = {{{outcome|}}}
{{#if:{{{executed|}}}{{{date|}}}|
 
! style="padding-right: 1em;" {{!}} Date
| label10 = Casualties
{{!}} {{#if:{{{executed|}}}|{{{executed}}}|{{{date}}}}} {{#if:{{{time|}}}|<br/>{{{time}}}|{{#if:{{{time-begin|}}}|<br/>{{{time-begin}}} &ndash; {{{time-end}}}}}}} {{#if:{{{timezone|}}}|({{{timezone}}})}}
| data10 = {{#if:{{{casualties|}}}|{{{casualties}}}|{{br separated entries
}}
|1 = {{#if:{{{fatalities|}}}|{{{fatalities|}}} killed}}
|-
|2 = {{#if:{{{injuries|}}}|{{{injuries|}}} injured}}
{{#if:{{{executed_by|}}}{{{instigator|}}}|
}} }}
! style="padding-right: 1em;" {{!}} Executed&nbsp;by
 
{{!}} {{#if:{{{instigator|}}}|{{{instigator}}}|{{{executed_by}}}}}
}}{{{campaignbox|}}}
}}
}}{{#if:{{{latitude|}}}{{{longitude|}}}|[[Category:Pages using deprecated coordinates format|Military operation]]}}<noinclude>
|-
{{#if:{{{outcome|}}}|
! style="padding-right: 1em;" {{!}} Outcome
{{!}} {{{outcome}}}
}}
|-
{{#if:{{{casualties|}}}{{{fatalities|}}}{{{injuries|}}}|
! style="padding-right: 1em;" {{!}} Casualties
{{!}} {{#if:{{{casualties|}}}|{{{casualties}}}|{{#if:{{{fatalities|}}}|{{{fatalities|}}} killed}}<br/>{{#if:{{{injuries|}}}|{{{injuries|}}} injured}}}}
}}
|}<noinclude>
{{template doc}}
{{template doc}}
</noinclude>
</noinclude>

Revision as of 18:26, 17 March 2017