Difference between revisions of "Template:Battle"

From Kupopowiki
Jump to: navigation, search
 
Line 1: Line 1:
<noinclude>{{hprotected}}</noinclude><includeonly>
+
{| class="infobox bordered" style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:right; background:white; clear:right; width:200px;" border="1" cellpadding="0"
{| class="infobox" style="width: 315px; border-spacing: 2px; font-size: 95%; text-align: left;"
+
|+ style="font-size: larger;" | '''{{PAGENAME}}'''
|-
 
! {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="background: lightsteelblue; text-align: center;" | {{{conflict|{{PAGENAME}}}}}
 
|-
 
{{#if:{{{partof|}}} |
 
{{!}} {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="text-align: center; background: lightsteelblue;" {{!}} Part of {{{partof|}}}
 
}}
 
 
|-
 
|-
{{#if:{{{image|}}} |
+
| colspan="2" style="text-align:center;" | '''Background'''
{{!}} {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="text-align: center; font-size: 90%; border-bottom: 1px solid #aaa;" {{!}} {{{image|}}}<br/>{{{caption|}}}
+
|- style="text-align:left;"
}}
+
! Date:
 +
| {{{date}}}
 +
|- style="text-align:left;"
 +
! Location:
 +
| {{{location}}}
 +
|- style="text-align:left;"
 +
! Result:
 +
| {{{result}}}
 
|-
 
|-
| {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} |
+
| colspan="2" style="text-align:center;" | '''Forces'''
{| class="infobox" width="100%" style="margin: 0; cellpadding: 0; padding: 0; border: 0;"
+
|- style="text-align:left;"
 +
! Force 1:
 +
| {{{force1}}}
 +
|- style="text-align:left;"
 +
! Force 2:
 +
| {{{force2}}}
 +
|- style="text-align:left;"
 +
! Commander, Force 1:
 +
| {{{comforce1}}}
 +
|- style="text-align:left;"
 +
! Commander, Force 2:
 +
| {{{comforce2}}}
 +
|- style="text-align:left;"
 +
! Notable Officers, Force 1:
 +
| {{{heroes1}}}
 +
|- style="text-align:left;"
 +
! Notable Officers, Force 2:
 +
| {{{heroes2}}}
 
|-
 
|-
! style="padding-right: 1em;" | Date
+
| colspan="2" style="text-align:center;" | '''Force Strengths'''
| {{{date|}}}
+
|- style="text-align:left;"
 +
! Force 1 Strength:
 +
| {{{force1nums}}}
 +
|- style="text-align:left;"
 +
! Force 2 Strength:
 +
| {{{force2nums}}}
 
|-
 
|-
! style="padding-right: 1em;" | Location
+
| colspan="2" style="text-align:center;" | '''Casualties'''
| {{{place|}}}
+
|- style="text-align:left;"
|-
+
! Force 1 Casualties:
! style="padding-right: 1em;" | Result
+
| {{{force1dead}}}
| {{{result|}}}
+
|- style="text-align:left;"
|-
+
! Force 2 Casualties:
{{#if:{{{casus|}}} |
+
| {{{force2dead}}}
! style="padding-right: 1em;" {{!}} <i>[[Casus belli|Casus&nbsp;belli]]</i>
+
|-  
{{!}} {{{casus|}}}
+
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
}}
+
|}<noinclude>
|-
+
 
{{#if:{{{territory|}}} |
+
<br style="clear:both" />
! style="padding-right: 1em;" {{!}} Territorial<br>changes
+
 
{{!}} {{{territory|}}}
+
'''<big>Usage</big>'''
}}
+
 
|}
+
The infobox can be added by copying and pasting the template shown below:
|-
+
 
{{#if:{{{combatant1|}}}{{{combatant2|}}}{{{combatant3|}}} |
+
''Note: All fields are optional.''
! {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="background: lightsteelblue; text-align: center;" {{!}} Combatants
+
 
}}
+
<div style="width:250px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
|-
+
{{Battle
{{#if:{{{combatant1|}}}{{{combatant2|}}}{{{combatant3|}}} |
+
| date =  
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{combatant1|}}}
+
| location =
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="padding-left: 0.25em;" {{!}} {{{combatant2|}}}
+
| result =
{{#if:{{{combatant3|}}} |
+
| force1 =
{{!}} width="33%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" {{!}} {{{combatant3|}}}
+
| force2 =  
}}}}
+
| comforce1 =
|-
+
| comforce2 =  
{{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}} |
+
| heroes1 =  
! {{#if:{{{combatant3|}}} | colspan="3" |colspan="2" }} style="background: lightsteelblue; text-align: center;" {{!}} Commanders
+
| heroes2 =  
}}
+
| force1nums =
|-
+
| force2nums =  
{{#if:{{{commander1|}}}{{{commander2|}}}{{{commander3|}}} |
+
| force1dead =
{{!}} {{#if:{{{combatant3|}}} | width="33%" | width="50%" }} style="border-right: 1px dotted #aaa;" {{!}} {{{commander1|}}}
+
| force2dead =  
{{!}} {{#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|}}} |
 
! {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="background: lightsteelblue; text-align: center;" {{!}} Strength
 
}}
 
|-
 
{{#if:{{{strength1|}}}{{{strength2|}}}{{{strength3|}}} |
 
{{!}} {{#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%" style="border-left: 1px dotted #aaa; padding-left: 0.25em;" {{!}} {{{strength3|}}}
 
}}}}
 
|-
 
{{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}} |
 
! {{#if:{{{combatant3|}}} | colspan="3" | colspan="2" }} style="background: lightsteelblue; text-align: center;" {{!}} Casualties
 
}}
 
|-
 
{{#if:{{{casualties1|}}}{{{casualties2|}}}{{{casualties3|}}} |
 
{{!}} {{#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%" 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|}}} |
 
{{!}} {{#if:{{{combatant3|}}}|colspan="3"|colspan="2"}} style="font-size:90%; border-top:1px solid #aaa;" {{!}} {{{notes|}}}
 
 
}}
 
}}
|}</includeonly>
+
</pre></div>
 +
 
 +
* '''date''' &ndash; the date when the battle took place.
 +
* '''location''' &ndash; the ::city/specific location:nation:continent:world:dimension:: where the battle took place.
 +
* '''result''' &ndash; immediate result of the battle; who won, what was captured/lost, etc.
 +
* '''force1''' &ndash; one of the participants of the battle.
 +
* '''force2''' &ndash; the other participant of the battle.
 +
* '''comforce1''' &ndash; the commander in charge of Force 1's army in the battle.
 +
* '''comforce2''' &ndash; the commander in charge of Force 2's army in the battle.
 +
* '''heroes1''' &ndash; named Kupopolis characters who fought on the side of Force 1 during the battle.
 +
* '''heroes2''' &ndash; named Kupopolis characters who fought on the side of Force 2 during the battle.
 +
* '''force1nums''' &ndash; approximate strength of Force 1's numbers (optionally broken down into specific numbers of infantry, cavalry, artillery, aerospace fighters, capital ships and so forth).
 +
* '''force2nums''' ''&ndash;'' how many guys Force 2 haves?
 +
* '''force1dead''' ''&ndash;'' casualties from Force 1 (wounded, dead, missing).
 +
* '''force2dead''' ''&ndash;'' wounded, dead and missing from Force 2.
 +
 
 +
For an example, see [[Battle of Plinths]].
 +
 
 +
[[Category:Templates]]
 +
</noinclude>

Revision as of 03:55, 22 January 2007

Battle
Background
Date: {{{date}}}
Location: {{{location}}}
Result: {{{result}}}
Forces
Force 1: {{{force1}}}
Force 2: {{{force2}}}
Commander, Force 1: {{{comforce1}}}
Commander, Force 2: {{{comforce2}}}
Notable Officers, Force 1: {{{heroes1}}}
Notable Officers, Force 2: {{{heroes2}}}
Force Strengths
Force 1 Strength: {{{force1nums}}}
Force 2 Strength: {{{force2nums}}}
Casualties
Force 1 Casualties: {{{force1dead}}}
Force 2 Casualties: {{{force2dead}}}


Usage

The infobox can be added by copying and pasting the template shown below:

Note: All fields are optional.

{{Battle
| date = 
| location =
| result =
| force1 =
| force2 = 
| comforce1 =
| comforce2 = 
| heroes1 = 
| heroes2 = 
| force1nums =
| force2nums = 
| force1dead =
| force2dead = 
}}
  • date – the date when the battle took place.
  • location – the ::city/specific location:nation:continent:world:dimension:: where the battle took place.
  • result – immediate result of the battle; who won, what was captured/lost, etc.
  • force1 – one of the participants of the battle.
  • force2 – the other participant of the battle.
  • comforce1 – the commander in charge of Force 1's army in the battle.
  • comforce2 – the commander in charge of Force 2's army in the battle.
  • heroes1 – named Kupopolis characters who fought on the side of Force 1 during the battle.
  • heroes2 – named Kupopolis characters who fought on the side of Force 2 during the battle.
  • force1nums – approximate strength of Force 1's numbers (optionally broken down into specific numbers of infantry, cavalry, artillery, aerospace fighters, capital ships and so forth).
  • force2nums how many guys Force 2 haves?
  • force1dead casualties from Force 1 (wounded, dead, missing).
  • force2dead wounded, dead and missing from Force 2.

For an example, see Battle of Plinths.