Template:Infobox military conflict: Difference between revisions

Jump to navigation Jump to search
old>Solm
m (1 revision)
 
(use Lua. tested extensively in sandbox, no known issues)
Line 1: Line 1:
{{#if:{{{campaignbox|}}}|
<includeonly>{{#invoke:Infobox military conflict|main}}</includeonly><noinclude>{{documentation}}</noinclude>
{{{!}} style="float:right; clear:right; background: transparent; margin: 0; padding: 0;"
{{!}}
{{{!}} {{WPMILHIST Infobox style|main_box|vevent}}
|
{{{!}} {{WPMILHIST Infobox style|main_box|vevent}} }}
|-
! class="summary" colspan="{{#if:{{{combatant3|}}}|3|2}}" {{WPMILHIST Infobox style|header_bar}} | {{{conflict|{{PAGENAME}}}}}
|-
{{#if:{{{partof|}}}|
{{!}} colspan="{{#if:{{{combatant3|}}}|3|2}}" {{WPMILHIST Infobox style|header_bar}} {{!}} Part of {{{partof}}}
{{!}}-
}}
{{#if:{{{image|}}}|
{{!}} colspan="{{#if:{{{combatant3|}}}|3|2}}" {{WPMILHIST Infobox style|image_box}} {{!}} {{{image}}}{{#if:{{{caption|}}}|<br />{{{caption}}}}}
{{!}}-
}}
| colspan="{{#if:{{{combatant3|}}}|3|2}}"|
{| style="width:100%; margin:0; padding:0; border:0"
|-
{{#if:{{{date|}}}|
! style="padding-right:1em" {{!}} Date
{{!}} {{{date}}}
{{!}}-
}}
! style="padding-right:1em" | Location
| <span class="location">{{{place}}}</span>{{#if:{{both|{{{place|}}}|{{{coordinates|}}}}}|<br />}}{{{coordinates|}}}
|-
{{#if:{{{status|}}}{{{result|}}}|
! style="padding-right:1em" {{!}} {{#if:{{{status|}}}|Status|Result}}
{{!}} {{#if:{{{status|}}}|{{{status}}}|{{{result}}}}}
{{!}}-
}}
{{#if:{{{territory|}}}|
! style="padding-right:1em" {{!}} Territorial<br />changes
{{!}} {{{territory}}}
}}
|}
|-
{{#if:{{{combatant1|}}}{{{combatant2|}}}{{{combatant3|}}}|
! colspan="{{#if:{{{combatant3|}}}|3|2}}" {{WPMILHIST Infobox style|header_bar}} {{!}} Belligerents
{{!}}-
{{!}} {{#if:{{{combatant2|}}}|{{#if:{{{combatant3|}}}|style="width:33%; border-right:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; border-right:{{WPMILHIST Infobox style|internal_border}}"}}|colspan="2"}} {{!}} {{{combatant1|}}}
{{#if:{{{combatant2|}}}|
{{!}} {{#if:{{{combatant3|}}}|style="width:33%; padding-left:0.25em"|style="width:50%; padding-left:0.25em"}} {{!}} {{{combatant2}}}
}}
{{#if:{{{combatant3|}}}|
{{!}} style="width:33%; padding-left:0.25em; border-left:{{WPMILHIST Infobox style|internal_border}}" {{!}} {{{combatant3}}}
}}
{{!}}-
}}
{{#if:{{{combatant1a|}}}{{{combatant2a|}}}{{{combatant3a|}}}|
{{!}} {{#if:{{{combatant2a|}}}|{{#if:{{{combatant3a|}}}|style="width:33%; border-right:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; border-right:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}"}}|colspan="2"}} {{!}} {{{combatant1a|}}}
{{#if:{{{combatant2a|}}}|
{{!}} {{#if:{{{combatant3a|}}}|style="width:33%; padding-left:0.25em; border-top:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; padding-left:0.25em; border-top:{{WPMILHIST Infobox style|internal_border}}"}} {{!}} {{{combatant2a}}}
}}
{{#if:{{{combatant3a|}}}|
{{!}} style="width:33%; padding-left:0.25em; border-left:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}" {{!}} {{{combatant3a}}}
}}
{{!}}-
}}
{{#if:{{{combatant1b|}}}{{{combatant2b|}}}{{{combatant3b|}}}|
{{!}} {{#if:{{{combatant2b|}}}|{{#if:{{{combatant3b|}}}|style="width:33%; border-right:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; border-right:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}"}}|colspan="2"}} {{!}} {{{combatant1b|}}}
{{#if:{{{combatant2b|}}}|
{{!}} {{#if:{{{combatant3b|}}}|style="width:33%; padding-left:0.25em; border-top:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; padding-left:0.25em; border-top:{{WPMILHIST Infobox style|internal_border}}"}} {{!}} {{{combatant2b}}}
}}
{{#if:{{{combatant3b|}}}|
{{!}} style="width:33%; padding-left:0.25em; border-left:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}" {{!}} {{{combatant3b}}}
}}
{{!}}-
}}
{{#if:{{{combatant1c|}}}{{{combatant2c|}}}{{{combatant3c|}}}|
{{!}} {{#if:{{{combatant2c|}}}|{{#if:{{{combatant3c|}}}|style="width:33%; border-right:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; border-right:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}"}}|colspan="2"}} {{!}} {{{combatant1c|}}}
{{#if:{{{combatant2c|}}}|
{{!}} {{#if:{{{combatant3c|}}}|style="width:33%; padding-left:0.25em; border-top:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; padding-left:0.25em; border-top:{{WPMILHIST Infobox style|internal_border}}"}} {{!}} {{{combatant2c}}}
}}
{{#if:{{{combatant3c|}}}|
{{!}} style="width:33%; padding-left:0.25em; border-left:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}" {{!}} {{{combatant3c}}}
}}
{{!}}-
}}
{{#if:{{{combatant1d|}}}{{{combatant2d|}}}{{{combatant3d|}}}|
{{!}} {{#if:{{{combatant2d|}}}|{{#if:{{{combatant3d|}}}|style="width:33%; border-right:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; border-right:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}"}}|colspan="2"}} {{!}} {{{combatant1d|}}}
{{#if:{{{combatant2d|}}}|
{{!}} {{#if:{{{combatant3d|}}}|style="width:33%; padding-left:0.25em; border-top:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; padding-left:0.25em; border-top:{{WPMILHIST Infobox style|internal_border}}"}} {{!}} {{{combatant2d}}}
}}
{{#if:{{{combatant3d|}}}|
{{!}} style="width:33%; padding-left:0.25em; border-left:{{WPMILHIST Infobox style|internal_border}} border-top:{{WPMILHIST Infobox style|internal_border}}" {{!}} {{{combatant3d}}}
}}
{{!}}-
}}
{{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}}|
! colspan="{{#if:{{{combatant3|}}}|3|2}}" {{WPMILHIST Infobox style|header_bar}} {{!}} Commanders and leaders
{{!}}-
{{!}} {{#if:{{{combatant3|}}}|style="width:33%; border-right:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; border-right:{{WPMILHIST Infobox style|internal_border}}"}} {{!}} {{{commander1|}}}
{{!}} {{#if:{{{combatant3|}}}|style="width:33%; padding-left:0.25em"|style="width:50%; padding-left:0.25em"}} {{!}} {{{commander2|}}}
{{#if:{{{combatant3|}}}|
{{!}} style="width:33%; padding-left:0.25em; border-left:{{WPMILHIST Infobox style|internal_border}}" {{!}} {{{commander3|}}}
}}
{{!}}-
}}
{{#if:{{{units1|}}}{{{units2|}}}{{{units3|}}}|
! colspan="{{#if:{{{combatant3|}}}|3|2}}" {{WPMILHIST Infobox style|header_bar}} {{!}} Units involved
{{!}}-
{{!}} {{#if:{{{combatant3|}}}|style="width:33%; border-right:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; border-right:{{WPMILHIST Infobox style|internal_border}}"}} {{!}} {{{units1|}}}
{{!}} {{#if:{{{combatant3|}}}|style="width:33%; padding-left:0.25em"|style="width:50%; padding-left:0.25em"}} {{!}} {{{units2|}}}
{{#if:{{{combatant3|}}}|
{{!}} style="width:33%; padding-left:0.25em; border-left:{{WPMILHIST Infobox style|internal_border}}" {{!}} {{{units3|}}}
}}
{{!}}-
}}
{{#if:{{{strength1|}}}{{{strength2|}}}{{{strength3|}}}|
! colspan="{{#if:{{{combatant3|}}}|3|2}}" {{WPMILHIST Infobox style|header_bar}} {{!}} Strength
{{!}}-
{{!}} {{#if:{{{combatant3|}}}|style="width:33%; border-right:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; border-right:{{WPMILHIST Infobox style|internal_border}}"}} {{!}} {{{strength1|}}}
{{!}} {{#if:{{{combatant3|}}}|style="width:33%; padding-left:0.25em"|style="width:50%; padding-left:0.25em"}} {{!}} {{{strength2|}}}
{{#if:{{{combatant3|}}}|
{{!}} style="width:33%; padding-left:0.25em; border-left:{{WPMILHIST Infobox style|internal_border}}" {{!}} {{{strength3|}}}
}}
{{!}}-
}}
{{#if:{{{combatant3|}}}|<!-- -->|{{#if:{{{strength3|}}}|
{{!}} colspan="2" style="text-align:center; {{#if:{{{strength1|}}}{{{strength2|}}}|border-top:{{WPMILHIST Infobox style|internal_border}}}}" {{!}} {{{strength3}}}
{{!}}-
}}}}
{{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}}|
! colspan="{{#if:{{{combatant3|}}}|3|2}}" {{WPMILHIST Infobox style|header_bar}} {{!}} Casualties and losses
{{!}}-
{{!}} {{#if:{{{combatant3|}}}|style="width:33%; border-right:{{WPMILHIST Infobox style|internal_border}}"|style="width:50%; border-right:{{WPMILHIST Infobox style|internal_border}}"}} {{!}} {{{casualties1|}}}
{{!}} {{#if:{{{combatant3|}}}|style="width:33%; padding-left:0.25em"|style="width:50%; padding-left:0.25em"}} {{!}} {{{casualties2|}}}
{{#if:{{{combatant3|}}}|
{{!}} style="width:33%; padding-left:0.25em; border-left:{{WPMILHIST Infobox style|internal_border}}" {{!}} {{{casualties3|}}}
}}
{{!}}-
}}
{{#if:{{{combatant3|}}}|<!-- -->|{{#if:{{{casualties3|}}}|
{{!}} colspan="2" style="text-align:center; {{#if:{{{casualties1|}}}{{{casualties2|}}}|border-top:{{WPMILHIST Infobox style|internal_border}}}}" {{!}} {{{casualties3}}}
{{!}}-
}}}}
{{#if:{{{notes|}}}|
{{!}} colspan="{{#if:{{{combatant3|}}}|3|2}}" style="font-size:90%; border-top:{{WPMILHIST Infobox style|section_border}}" {{!}} {{{notes}}}
}}
{{#if: {{{map_type|}}}|
{{!}}-
{{!}} colspan="{{#if:{{{combatant3|}}}|3|2}}" style="border-top:{{WPMILHIST Infobox style|internal_border}}" {{!}} <center>{{Location map|{{{map_type}}}|lat={{{latitude}}}|long={{{longitude}}}|width={{{map_size|220}}}|float=center|border=none|label={{{map_label|}}}|caption={{{map_caption|Location within {{{map_type}}}}}}}}</center>
}}
{{#if:{{{campaignbox|}}}|
{{!}}}
{{!}}-
{{!}}
{{{campaignbox|}}}
{{!}}}
|
{{!}}}
}}<noinclude>{{documentation}}</noinclude>

Revision as of 14:48, 7 October 2014