Difference between revisions of "Template:Infobox Military Conflict"

From BattleMaster Wiki
Jump to navigation Jump to search
(add noinclude text)
m (Added Category:Battles into the included syntax)
 
(35 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{| class="infobox" style="width: 315px; border-spacing: 2px; font-size: 95%; text-align: left;"
+
{| class="infobox" border="1" style="float: right; width: 315px; border-spacing: 2px; font-size: 95%; text-align: left; border-collapse: collapse; margin-left: 1em;"
 
|-  
 
|-  
! {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="background: lightsteelblue; text-align: center;" | {{{conflict|{{PAGENAME}}}}}
+
! colspan="2" style="background: lightsteelblue; text-align: center;" | {{{conflict|{{PAGENAME}}}}}
 
|-
 
|-
{{#if:{{{partof|}}} |
+
! 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|}}} |
+
! 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" }} |  
+
! 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 20: Line 17:
 
! style="padding-right: 1em;" | Location
 
! style="padding-right: 1em;" | Location
 
| {{{place|}}}
 
| {{{place|}}}
 +
|-
 +
! style="padding-right: 1em;" | Weather
 +
| {{{weather|}}}
 
|-
 
|-
 
! style="padding-right: 1em;" | Result
 
! style="padding-right: 1em;" | Result
| {{{result|}}}
+
| After {{{rounds|}}} rounds, {{{result|}}}
 
|-
 
|-
{{#if:{{{casus|}}} |
+
! style="padding-right: 1em;" | Territorial<br>changes
! style="padding-right: 1em;" {{!}} <i>[[Casus belli|Casus&nbsp;belli]]</i>
+
| {{{territory|}}}
{{!}} {{{casus|}}}
+
|}
}}
+
 
 
|-
 
|-
{{#if:{{{territory|}}} |
+
! colspan="2" style="background: lightsteelblue; text-align: center;" | Combatants
! style="padding-right: 1em;" {{!}} Territorial<br>changes
 
{{!}} {{{territory|}}}
 
}}
 
|}
 
 
|-
 
|-
{{#if:{{{combatant1|}}}{{{combatant2|}}}{{{combatant3|}}} |
+
| width="50%" style="border-right: 1px #aaa; padding-left: 0.5em; background: lightsteelblue; text-align: center;" | '''Attackers'''
! {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="background: lightsteelblue; text-align: center;" {{!}} Combatants
+
| width="50%" style="padding-left: 0.25em; background: lightsteelblue; text-align: center;" | '''Defenders'''
}}
 
 
|-
 
|-
{{#if:{{{combatant1|}}}{{{combatant2|}}}{{{combatant3|}}} |
+
| width="50%" style="border-right: 1px dotted #aaa; padding-left: 0.5em; vertical-align:top;" | {{{combatant1|}}}
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{combatant1|}}}
+
| width="50%" style="padding-left: 0.25em; vertical-align:top;" | {{{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; padding-left: 0.5em;" | {{{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; padding-left: 0.5em;" | {{{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;" | Formations
! {{#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; padding-left: 0.5em;" | {{{formation1|}}}
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{casualties1|}}}
+
| width="50%" style="padding-left: 0.25em;" | {{{formation2|}}}
{{!}} {{#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="background: lightsteelblue; text-align: center;" | Casualties
{{!}} colspan="2" style="text-align: center; {{#if:{{{casualties1|}}}{{{casualties2|}}} | border-top: 1px dotted #aaa;}}" {{!}} {{{casualties3|}}}
 
}}}}
 
 
|-
 
|-
{{#if:{{{notes|}}} |
+
| width="50%" style="border-right: 1px dotted #aaa; padding-left: 0.5em; vertical-align: top;" | {{{casualties1|}}}
{{!}} {{#if:{{{combatant3|}}}|colspan="3"|colspan="2"}} style="font-size:90%; border-top:1px solid #aaa;" {{!}} {{{notes|}}}
+
| width="50%" style="padding-left: 0.25em; vertical-align: top;" | {{{casualties2|}}}
 +
|}
 +
[[Category:Battles]]
 +
</includeonly>
 +
 
 +
<noinclude>Template copied from Wikipedia and modified.
 +
 
 +
{{Infobox Military Conflict
 +
|conflict=Battle of My Backyard
 +
|partof=The Big War
 +
|image=
 +
|caption=Image above, caption below
 +
|date=Yesterday
 +
|place=My backyard
 +
|weather=Windy
 +
|territory=No change
 +
|result=Defender Victory
 +
|combatant1=Bad Guys
 +
|combatant2=Good Guys
 +
|commander1=You
 +
|commander2=Me
 +
|strength1=100
 +
|strength2=Just 1 lonely noble
 +
|formation1=Infantry Wall
 +
|formation2=None
 +
|casualties1=99 soldiers
 +
|casualties2=0 soldiers<br><b>Nobles wounded:</b><br>Linker, ''Noble of Heen''
 +
|rounds=300
 +
}}
 +
 
 +
The infobox should be added using the Infobox Military Conflict template, as shown below:
 +
 
 +
<div style="width:250px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
 +
{{Infobox Military Conflict
 +
|conflict=
 +
|partof=
 +
|image=
 +
|caption=
 +
|date=
 +
|place=
 +
|weather=
 +
|territory=
 +
|result=
 +
|combatant1=
 +
|combatant2=
 +
|commander1=
 +
|commander2=
 +
|strength1=
 +
|strength2=
 +
|formation1=
 +
|formation2=
 +
|casualties1=
 +
|casualties2=
 +
|rounds=
 
}}
 
}}
|}</includeonly><noinclude>Template copied from Wikipedia</noinclude>
+
</pre></div>
 +
 
 +
</noinclude>

Latest revision as of 08:37, 12 November 2019


Template copied from Wikipedia and modified.


Battle of My Backyard
Part of The Big War

Image above, caption below
Date Yesterday
Location My backyard
Weather Windy
Result After 300 rounds, Defender Victory
Territorial
changes
No change
Combatants
Attackers Defenders
Bad Guys Good Guys
Commanders
You Me
Strength
100 Just 1 lonely noble
Formations
Infantry Wall None
Casualties
99 soldiers 0 soldiers
Nobles wounded:
Linker, Noble of Heen



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

{{Infobox Military Conflict
|conflict=
|partof=
|image=
|caption=
|date=
|place=
|weather=
|territory=
|result=
|combatant1=
|combatant2=
|commander1=
|commander2=
|strength1=
|strength2=
|formation1=
|formation2=
|casualties1=
|casualties2=
|rounds=
}}