Difference between revisions of "Template:Infobox Military Conflict"

From BattleMaster Wiki
Jump to navigation Jump to search
(rmv one #)
(got rid of other #'s in front of "if:")
Line 4: Line 4:
 
! {{if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="background: lightsteelblue; text-align: center;" | {{{conflict|{{PAGENAME}}}}}
 
! {{if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="background: lightsteelblue; text-align: center;" | {{{conflict|{{PAGENAME}}}}}
 
|-
 
|-
{{#if:{{{partof|}}} |
+
{{if:{{{partof|}}} |
{{!}} {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="text-align: center; background: lightsteelblue;" {{!}} Part of {{{partof|}}}
+
{{!}} {{if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="text-align: center; background: lightsteelblue;" {{!}} Part of {{{partof|}}}
 
}}
 
}}
 
|-
 
|-
{{#if:{{{image|}}} |
+
{{if:{{{image|}}} |
{{!}} {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="text-align: center; font-size: 90%; border-bottom: 1px solid #aaa;" {{!}} {{{image|}}}<br/>{{{caption|}}}
+
{{!}} {{if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="text-align: center; font-size: 90%; border-bottom: 1px solid #aaa;" {{!}} {{{image|}}}<br/>{{{caption|}}}
 
}}
 
}}
 
|-
 
|-
| {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} |  
+
| {{if:{{{combatant3|}}} | colspan="3" | colspan="2" }} |  
 
{| class="infobox" width="100%" style="margin: 0; cellpadding: 0; padding: 0; border: 0;"
 
{| class="infobox" width="100%" style="margin: 0; cellpadding: 0; padding: 0; border: 0;"
 
|-
 
|-
Line 24: Line 24:
 
| {{{result|}}}
 
| {{{result|}}}
 
|-
 
|-
{{#if:{{{casus|}}} |
+
{{if:{{{casus|}}} |
 
! style="padding-right: 1em;" {{!}} <i>[[Casus belli|Casus&nbsp;belli]]</i>
 
! style="padding-right: 1em;" {{!}} <i>[[Casus belli|Casus&nbsp;belli]]</i>
 
{{!}} {{{casus|}}}
 
{{!}} {{{casus|}}}
 
}}
 
}}
 
|-
 
|-
{{#if:{{{territory|}}} |
+
{{if:{{{territory|}}} |
 
! style="padding-right: 1em;" {{!}} Territorial<br>changes
 
! style="padding-right: 1em;" {{!}} Territorial<br>changes
 
{{!}} {{{territory|}}}
 
{{!}} {{{territory|}}}
Line 35: Line 35:
 
|}
 
|}
 
|-
 
|-
{{#if:{{{combatant1|}}}{{{combatant2|}}}{{{combatant3|}}} |
+
{{if:{{{combatant1|}}}{{{combatant2|}}}{{{combatant3|}}} |
! {{#if:{{{combatant3|}}} | colspan="3" | 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|}}} |
+
{{if:{{{combatant1|}}}{{{combatant2|}}}{{{combatant3|}}} |
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{combatant1|}}}
+
{{!}} {{if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{combatant1|}}}
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" {{!}} {{{combatant2|}}}
+
{{!}} {{if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" {{!}} {{{combatant2|}}}
{{#if:{{{combatant3|}}} |  
+
{{if:{{{combatant3|}}} |  
 
{{!}} width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" {{!}} {{{combatant3|}}}
 
{{!}} width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" {{!}} {{{combatant3|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}} |
+
{{if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}} |
! {{#if:{{{combatant3|}}} | colspan="3" |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|}}} |
+
{{if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}} |
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{commander1|}}}
+
{{!}} {{if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{commander1|}}}
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" {{!}} {{{commander2|}}}
+
{{!}} {{if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" {{!}} {{{commander2|}}}
{{#if:{{{combatant3|}}} |  
+
{{if:{{{combatant3|}}} |  
 
{{!}} width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" {{!}} {{{commander3|}}}
 
{{!}} width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" {{!}} {{{commander3|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#if:{{{strength1|}}}{{{strength2|}}}{{{strength3|}}} |
+
{{if:{{{strength1|}}}{{{strength2|}}}{{{strength3|}}} |
! {{#if:{{{combatant3|}}} | colspan="3" | 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|}}} |
+
{{if:{{{strength1|}}}{{{strength2|}}}{{{strength3|}}} |
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{strength1|}}}
+
{{!}} {{if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{strength1|}}}
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" {{!}} {{{strength2|}}}
+
{{!}} {{if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" {{!}} {{{strength2|}}}
{{#if:{{{combatant3|}}} |  
+
{{if:{{{combatant3|}}} |  
 
{{!}} width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" {{!}} {{{strength3|}}}
 
{{!}} width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" {{!}} {{{strength3|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}} |
+
{{if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}} |
! {{#if:{{{combatant3|}}} | colspan="3" | 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|}}} |
+
{{if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}} |
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{casualties1|}}}
+
{{!}} {{if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{casualties1|}}}
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" {{!}} {{{casualties2|}}}
+
{{!}} {{if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" {{!}} {{{casualties2|}}}
{{#if:{{{combatant3|}}} |  
+
{{if:{{{combatant3|}}} |  
 
{{!}} width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" {{!}} {{{casualties3|}}}
 
{{!}} width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" {{!}} {{{casualties3|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#if:{{{combatant3|}}} | | {{#if:{{{casualties3|}}} |
+
{{if:{{{combatant3|}}} | | {{if:{{{casualties3|}}} |
 
{{!}} colspan="2" style="text-align: center; {{#if:{{{casualties1|}}}{{{casualties2|}}} | border-top: 1px dotted #aaa;}}" {{!}} {{{casualties3|}}}
 
{{!}} colspan="2" style="text-align: center; {{#if:{{{casualties1|}}}{{{casualties2|}}} | border-top: 1px dotted #aaa;}}" {{!}} {{{casualties3|}}}
 
}}}}
 
}}}}
 
|-
 
|-
{{#if:{{{notes|}}} |
+
{{if:{{{notes|}}} |
{{!}} {{#if:{{{combatant3|}}}|colspan="3"|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

Revision as of 16:21, 26 January 2007

Template copied from Wikipedia The infobox should be added using the Template:Tl template, as shown below:

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