Difference between revisions of "Template:Infobox war"

From Taijitu
Jump to: navigation, search
(Created page with '{| align=right cellpadding=4 cellspacing=0 width=300 class="infobox" style="margin: 0 0 1em 1em; background: #f9f9f9; border: 1px #aaaaaa solid; border-collapse: collapse; font-s…')
 
Line 1: Line 1:
{| align=right cellpadding=4 cellspacing=0 width=300 class="infobox" style="margin: 0 0 1em 1em; background: #f9f9f9; border: 1px #aaaaaa solid; border-collapse: collapse; font-size: 95%;"
+
{|
!colspan=2 style="background-color:#75B2DD"|<big>{{{Name|{{{Name}}}}}}</big>
+
|-
+
| align="center" colspan="2"|
+
{| border=0 cellpadding=2 cellspacing=0 style="background:#f9f9f9; text-align:center;"
+
| width="130px"| [[image:{{{Image}}}|300px]]
+
|-
+
| width="130px"| <small>{{{Image description}}}</small>
+
 
|}
 
|}
|-
+
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:300px; background:#ffffff; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;"><tr><td colspan="2"><div id="infoboxinternal">
!Date
+
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:300px; background:#ffffff; border-collapse:collapse;">
| {{{Date}}}
+
{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#F0F0F0}}}; vertical-align:top;"><td>'''Previous''':</td><td class="infoboxcell" style="width:100%;">
|-
+
{{{prev}}}
{{#if: {{{Location|}}}|!Location
+
</td></tr></table>
{{!}} {{{Location}}}|}}
+
</td></tr>|1{{{prev|}}}=}}
|-
+
{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#F0F0F0}}}; vertical-align:top;"><td>'''Concurrent''':</td><td class="infoboxcell" style="width:100%;">
!Result
+
{{{conc}}}
| {{{Result}}}
+
</td></tr></table>
|-
+
</td></tr>|1{{{conc|}}}=}}
!Belligerent 1
+
{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#F0F0F0}}}; vertical-align:top;"><td>'''Next''':</td><td class="infoboxcell" style="width:100%;">
| {{{Belligerent 1}}}
+
{{{next}}}
|-
+
</td></tr></table>
!Belligerent 2
+
</td></tr>|1{{{next|}}}=}}
| {{{Belligerent 2}}}
+
<tr style="text-align:center; color:#ffffff; background:{{{c1|#7995CA}}}; font-size:larger;"><th colspan="2">{{{name}}}</th></tr>
|-
+
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{c2|#B4C5E3}}};">{{{image|}}}</td></tr>
{{#if: {{{Belligerent 1 commanders|}}}|!Belligerent 1 commanders
+
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#F0F0F0}}}; vertical-align:top;"></tr></table>
{{!}} {{{Belligerent 1 commanders}}}}}
+
</td></tr>
|-
+
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#F0F0F0}}}; vertical-align:top;"><td>'''Date''':</td><td class="infoboxcell" style="width:100%;">
{{#if: {{{Belligerent 2 commanders|}}}|!Belligerent 2 commanders
+
{{{date}}}
{{!}} {{{Belligerent 2 commanders}}}}}
+
</td></tr></table>
|-
+
</td></tr>
{{#if: {{{Belligerent 1 strength|}}}|!Belligerent 1 strength
+
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#F0F0F0}}}; vertical-align:top;"><td>'''Place''':</td><td class="infoboxcell" style="width:100%;">
{{!}} {{{Belligerent 1 strength}}}}}
+
{{{place}}}
|-
+
</td></tr></table>
{{#if: {{{Belligerent 2 strength|}}}|!Belligerent 2 strength
+
</td></tr>
{{!}} {{{Belligerent 2 strength}}}}}
+
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#F0F0F0}}}; vertical-align:top;"><td>'''Outcome''':</td><td class="infoboxcell" style="width:100%;">
|-
+
{{{result}}}
{{#if: {{{Belligerent 1 casualties|}}}|!Belligerent 1 casualties
+
</td></tr></table>
{{!}} {{{Belligerent 1 casualties}}}}}
+
</td></tr>
|-
+
<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{c2|#B4C5E3}}};">'''Combatants'''</th></tr>
{{#if: {{{Belligerent 2 casualties|}}}|!Belligerent 2 casualties
+
<tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; text-align:left; background:{{{c3|#F0F0F0}}};"><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;">
{{!}} {{{Belligerent 2 casualties}}}}}
+
{{{side1}}}
|-
+
</td><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
|}<noinclude>
+
{{{side2}}}
[[Category:infobox templates]]
+
</td></tr>
</noinclude>
+
<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{c2|#B4C5E3}}};">'''Commanders'''</th></tr>
 +
<tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; background:{{{c3|#F0F0F0}}};"><td class="infoboxcell" width="50%"  style="border-top: 1px solid #999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;">
 +
{{{commanders1}}}
 +
</td><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
 +
{{{commanders2}}}
 +
</td></tr>
 +
<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{c2|#B4C5E3}}};">'''Strength'''</th></tr>
 +
<tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; background:{{{c3|#F0F0F0}}};"><td class="infoboxcell" width="50%"  style="border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;">
 +
{{{forces1}}}
 +
</td><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
 +
{{{forces2}}}
 +
</td></tr>
 +
<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{c2|#B4C5E3}}};">'''Casualties'''</th></tr>
 +
<tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; background:{{{c3|#F0F0F0}}};"><td class="infoboxcell" width="50%"  style="border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;">
 +
{{{casual1}}}
 +
</td><td class="infoboxcell" width="33%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
 +
{{{casual2}}}
 +
</td></tr></table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:right; width:49%;"></td><td style="text-align:left; width:51%;">&nbsp;&nbsp;[[Template:Infobox War|[Source]]]</td></tr></table><noinclude>
 +
{{clear}}
 +
==Field list==
 +
*prev (collapsible)
 +
*conc (collapsible)
 +
*next (collapsible)
 +
*name
 +
*image
 +
*date
 +
*place
 +
*result
 +
*side1
 +
*side2
 +
*commanders1
 +
*commanders2
 +
*forces1
 +
*forces2
 +
*casual1
 +
*casual2
 +
 
 +
==Usage==
 +
To use this template, paste the following code into the top of the article, filling all relevant fields:
 +
<pre><nowiki>
 +
{{Infobox War
 +
|prev=
 +
|conc=
 +
|next=
 +
|name=
 +
|image=
 +
|date=
 +
|place=
 +
|result=
 +
|side1=
 +
|side2=
 +
|commanders1=
 +
|commanders2=
 +
|forces1=
 +
|forces2=
 +
|casual1=
 +
|casual2=
 +
}}
 +
</nowiki></noinclude>

Revision as of 20:10, 21 February 2011

{{{name}}}
Date:

{{{date}}}

Place:

{{{place}}}

Outcome:

{{{result}}}

Combatants

{{{side1}}}

{{{side2}}}

Commanders

{{{commanders1}}}

{{{commanders2}}}

Strength

{{{forces1}}}

{{{forces2}}}

Casualties

{{{casual1}}}

{{{casual2}}}

  [Source]

Field list

  • prev (collapsible)
  • conc (collapsible)
  • next (collapsible)
  • name
  • image
  • date
  • place
  • result
  • side1
  • side2
  • commanders1
  • commanders2
  • forces1
  • forces2
  • casual1
  • casual2

Usage

To use this template, paste the following code into the top of the article, filling all relevant fields:

{{Infobox War
|prev=
|conc=
|next=
|name=
|image=
|date=
|place=
|result=
|side1=
|side2=
|commanders1=
|commanders2=
|forces1=
|forces2=
|casual1=
|casual2=
}}
</noinclude>