Difference between revisions of "Template:Infobox Military Conflict"

From BattleMaster Wiki
Jump to navigation Jump to search
(more ifs)
(rmvd all if statements and 3rd combatant)
Line 31: Line 31:
  
 
|-
 
|-
{{#if:{{{combatant1|}}}{{{combatant2|}}}{{{combatant3|}}} |
+
! colspan="2" style="background: lightsteelblue; text-align: center;" | Combatants
! {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="background: lightsteelblue; text-align: center;" {{!}} Combatants
 
}}
 
 
|-
 
|-
{{#if:{{{combatant1|}}}{{{combatant2|}}}{{{combatant3|}}} |
+
| width="50%" style="border-right: 1px dotted #aaa;" | {{{combatant1|}}}
| {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" | {{{combatant1|}}}
+
| width="50%" style="padding-left: 0.25em;" | {{{combatant2|}}}
| {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" | {{{combatant2|}}}
 
{{#if:{{{combatant3|}}} |
 
| width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" | {{{combatant3|}}}
 
}}}}
 
 
|-
 
|-
{{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}} |
+
! colspan="2" style="background: lightsteelblue; text-align: center;" | Commanders
! {{#if:{{{combatant3|}}} | colspan="3" |colspan="2" }} style="background: lightsteelblue; text-align: center;" {{!}} Commanders
 
}}
 
 
|-
 
|-
{{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}} |
+
| width="50%" style="border-right: 1px dotted #aaa;" | {{{commander1|}}}
| {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" | {{{commander1|}}}
+
| width="50%" style="padding-left: 0.25em;" | {{{commander2|}}}
| {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" | {{{commander2|}}}
 
{{#if:{{{combatant3|}}} |
 
| width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" | {{{commander3|}}}
 
}}}}
 
 
|-
 
|-
{{#if:{{{strength1|}}}{{{strength2|}}}{{{strength3|}}} |
+
! colspan="2" style="background: lightsteelblue; text-align: center;" | Strength
! {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="background: lightsteelblue; text-align: center;" {{!}} Strength
 
}}
 
 
|-
 
|-
{{#if:{{{strength1|}}}{{{strength2|}}}{{{strength3|}}} |
+
| width="50%" style="border-right: 1px dotted #aaa;" | {{{strength1|}}}
| {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" | {{{strength1|}}}
+
| width="50%" style="padding-left: 0.25em;" | {{{strength2|}}}
| {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" | {{{strength2|}}}
 
{{#if:{{{combatant3|}}} |
 
| width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" | {{{strength3|}}}
 
}}}}
 
 
|-
 
|-
{{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}} |
+
! colspan="2" style="background: lightsteelblue; text-align: center;" | Casualties
! {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="background: lightsteelblue; text-align: center;" {{!}} Casualties
 
}}
 
 
|-
 
|-
{{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}} |
+
| width="50%" style="border-right: 1px dotted #aaa;" | {{{casualties1|}}}
| {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" | {{{casualties1|}}}
+
| width="50%" style="padding-left: 0.25em;" | {{{casualties2|}}}
| {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" | {{{casualties2|}}}
 
{{#if:{{{combatant3|}}} |
 
| width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" | {{{casualties3|}}}
 
}}}}
 
 
|-
 
|-
{{#if:{{{combatant3|}}} | | {{#if:{{{casualties3|}}} |
 
| colspan="2" style="text-align: center; {{#if:{{{casualties1|}}}{{{casualties2|}}} | border-top: 1px dotted #aaa;}}" | {{{casualties3|}}}
 
}}}}
 
 
|-
 
|-
{{#if:{{{notes|}}} |
+
! colspan="2"}} style="font-size:90%; border-top:1px solid #aaa;" | {{{notes|}}}
| {{#if:{{{combatant3|}}}|colspan="3"|colspan="2"}} style="font-size:90%; border-top:1px solid #aaa;" | {{{notes|}}}
 
}}
 
 
|}</includeonly><noinclude>Template copied from Wikipedia.
 
|}</includeonly><noinclude>Template copied from Wikipedia.
  
Line 99: Line 70:
 
|combatant1=
 
|combatant1=
 
|combatant2=
 
|combatant2=
|combatant3=
 
 
|commander1=
 
|commander1=
 
|commander2=
 
|commander2=
|commander3=
 
 
|strength1=
 
|strength1=
 
|strength2=
 
|strength2=
|strength3=
 
 
|casualties1=
 
|casualties1=
 
|casualties2=
 
|casualties2=
|casualties3=
 
 
|notes=
 
|notes=
 
}}
 
}}
 
</pre></div>
 
</pre></div>
 
  
 
</noinclude>
 
</noinclude>

Revision as of 18:53, 26 January 2007

Template copied from Wikipedia.

The infobox should be added using the Infobox Military Conflict template, as shown below:

{{Infobox Military Conflict
|conflict=
|partof=
|image=
|caption=
|date=
|place=
|casus=
|territory=
|result=
|combatant1=
|combatant2=
|commander1=
|commander2=
|strength1=
|strength2=
|casualties1=
|casualties2=
|notes=
}}