Difference between revisions of "Template:Infobox Conflict"

From Holocron - Star Wars Combine
Jump to: navigation, search
(cat change)
 
(49 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:300px; background:black; border-collapse:collapse; border:1px solid black; font-size:smaller; line-height:1.5;"><tr><td><div id="infoboxinternal">
+
<table style="border: 1px solid grey; padding: 1px; margin: 5px; width: 30%; float: right; font-size: 11px;"><tr><td width="100%" colspan="{{#if:{{{side3|}}}|3|2}}" style="background-color: #21314c; font-size: 16px; text-align: center;"><font color="white"><b>{{{title}}}</b></font></td></tr>
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:300px; black:transparent; border-collapse:collapse;">
+
<tr><td width="100%" colspan="{{#if:{{{side3|}}}|3|2}}" style="width: 100%; text-align: center;">{{{image}}}</td></tr>
<tr style="text-align:center; color:#ffffff; background:{{{c1|#303030}}}; font-size:larger;"><th colspan="2">{{{name}}}</th></tr>
+
<tr><td style="width: 20%;" valign="top">Date</td><td colspan="{{#if:{{{side3|}}}|2|1}}"style="width: 80%;" valign="top">{{{start}}} &mdash; {{{end}}}</td></tr>
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{c2|#B4C5E3}}};">{{{image|}}}</td></tr>
+
<tr><td style="width: 20%;" valign="top">Location</td><td colspan="{{#if:{{{side3|}}}|2|1}}" style="width: 80%;" valign="top">{{{location}}}</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:transparent; vertical-align:top;"><td>'''Conflict''':</td><td class="infoboxcell" style="width:100%;">{{{conflict}}}
+
<tr><td style="width: 20%;" valign="top">Result</td><td colspan="{{#if:{{{side3|}}}|2|1}}" style="width: 80%;" valign="top">{{{result}}}</td></tr>
</td></tr></table>
+
<tr><td width="100%" colspan="{{#if:{{{side3|}}}|3|2}}" style="background-color: #21314c; text-align: center;"><font color="white"><b>Belligerents</b></font></td></tr>
</td></tr>
+
<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:transparent; vertical-align:top;"><td>'''Date''':</td><td class="infoboxcell" style="width:100%;">{{{date}}}
+
{{#if:{{{side3|}}}|<td style="border-color: #4d4d4d; border-style: solid; border-right-width: 1px; border-left-width: 0px; text-align: left;" width="33%" valign="top"><small>{{{side1}}}</small></td><td style="border-color: #4d4d4d; border-style: solid; border-right-width: 1px; border-left-width: 1px; text-align: center;" width="34%" valign="top"><small>{{{side2}}}</small></td><td style="border-color: #4d4d4d; border-style: solid; border-left-width: 1px; border-right-width: 0px; text-align: right;" width="33%" valign="top"><small>{{{side3}}}</small></td></tr>|<td style="border-color: #4d4d4d; border-style: solid; border-right-width: 1px; border-left-width: 0px; text-align: left;" width="50%" valign="top">{{{side1}}}</td><td style="border-color: #4d4d4d; border-style: solid; border-left-width: 1px; border-right-width: 0px; text-align: right;" width="50%" valign="top">{{{side2}}}</td></tr>}}
</td></tr></table>
+
<tr><td width="100%" colspan="{{#if:{{{side3|}}}|3|2}}" style="background-color: #21314c; text-align: center;"><font color="white"><b>Commanders and Leaders</b></font></td></tr>
</td></tr>
+
<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:transparent; vertical-align:top;"><td>'''Place''':</td><td class="infoboxcell" style="width:100%;">{{{place}}}
+
{{#if:{{{side3|}}}|<td style="border-color: #4d4d4d; border-style: solid; border-right-width: 1px; border-left-width: 0px; text-align: left;" width="33%" valign="top">{{{side1leaders}}}</td><td style="border-color: #4d4d4d; border-style: solid; border-right-width: 1px; border-left-width: 1px; text-align: center;" width="34%" valign="top">{{{side2leaders}}}</td><td style="border-color: #4d4d4d; border-style: solid; border-left-width: 1px; border-right-width: 0px; text-align: right;" width="33%" valign="top">{{{side3leaders}}}</td></tr>|<td style="border-color: #4d4d4d; border-style: solid; border-right-width: 1px; border-left-width: 0px; text-align: left;" width="50%" valign="top">{{{side1leaders}}}</td><td style="border-color: #4d4d4d; border-style: solid; border-left-width: 1px; border-right-width: 0px; text-align: right;" width="50%" valign="top">{{{side2leaders}}}</td></tr>}}
</td></tr></table>
+
{{#if:{{{side1losses|}}}|<tr><td width="100%" colspan="{{#if:{{{side3|}}}|3|2}}" style="background-color: #21314c; text-align: center;"><font color="white"><b>Casualties and Losses</b></font></td></tr>
</td></tr>
+
<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:transparent; vertical-align:top;"><td>'''Outcome''':</td><td class="infoboxcell" style="width:100%;">{{{result}}}
+
{{#if:{{{side3|}}}|<td style="border-color: #4d4d4d; border-style: solid; border-right-width: 1px; border-left-width: 0px; text-align: left;" width="33%" valign="top">{{{side1losses}}}</td><td style="border-color: #4d4d4d; border-style: solid; border-right-width: 1px; border-left-width: 1px; text-align: center;" width="34%" valign="top">{{{side2losses}}}</td><td style="border-color: #4d4d4d; border-style: solid; border-left-width: 1px; border-right-width: 0px; text-align: right;" width="33%" valign="top">{{{side3losses}}}</td></tr>|<td style="border-color: #4d4d4d; border-style: solid; border-right-width: 1px; border-left-width: 0px; text-align: left;" width="50%" valign="top">{{{side1losses}}}</td><td style="border-color: #4d4d4d; border-style: solid; border-left-width: 1px; border-right-width: 0px; text-align: right;" width="50%" valign="top">{{{side2losses}}}</td></tr>}}}}
</td></tr></table>
+
{{#if:{{{battles|}}}|<tr><td width="100%" colspan="{{#if:{{{side3|}}}|3|2}}" style="background-color: #21314c; text-align: center;"><font color="white"><b>Battles</b></font></td></tr>
</td></tr>
+
<tr><td width="100%" colspan="{{#if:{{{side3|}}}|3|2}}" style="text-align: center;">{{{battles}}}</td></tr>}}</table><noinclude>
<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:transparent; vertical-align:top;"><td>'''Previous''':</td><td class="infoboxcell" style="width:100%;">{{{previous}}}
+
===Usage===
</td></tr></table>
 
</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:transparent; vertical-align:top;"><td>'''Next''':</td><td class="infoboxcell" style="width:100%;">{{{next}}}
 
</td></tr></table>
 
</td></tr>
 
<tr><th colspan="2" style="color:#000000; text-align:left; font-weight:normal; background:{{{c2|#838383}}};">'''Combatants'''</th></tr>
 
<tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; text-align:center; background:transparent;"><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;">
 
{{{side1}}}
 
</td><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
 
{{{side2}}}
 
</td></tr>
 
<tr><th colspan="2" style="color:#000000; text-align:left; font-weight:normal; background:{{{c2|#838383}}};">'''Commanders'''</th></tr>
 
<tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; background:transparent;"><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="color:#000000; text-align:left; font-weight:normal; background:{{{c2|#838383}}};">'''Strength'''</th></tr>
 
<tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; background:transparent;"><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="color:#000000; text-align:left; font-weight:normal; background:{{{c2|#838383}}};">'''Casualties'''</th></tr>
 
<tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; background:transparent;"><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="50%" 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: center">
 
</td></tr></table>
 
<noinclude>For battles, use [[Template:Infobox Battle]].
 
 
 
  
===Field list===
+
The Conflict template is used to give details pertaining to conflicts that have happened in the galaxy. Paste code into an article, filling fields in with the pertinent information. The first four fields should be regimes or groups involved in the conflict; the last four are for important battles and locations. In the (likely) event that a particular field requires multiple entries, include them all under the same field, separated by a dash (-) or a dot (&middot;).
*name
 
*image
 
*conflict
 
*date
 
*place
 
*result
 
*previous
 
*next
 
*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>
 
<pre><nowiki>
{{conflict
+
{{Infobox Conflict
|name=
+
| title =
|image=
+
| image =
|conflict=
+
| start =
|date=
+
| end =
|place=
+
| location =
|result=
+
| result =
|previous=
+
| side1 =
|next=
+
| side2 =
|side1=
+
| side1leaders =
|side2=
+
| side2leaders =  
|commanders1=
+
| side1losses =  
|commanders2=
+
| side2losses =  
|forces1=
+
| battles =
|forces2=
 
|casual1=
 
|casual2=
 
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
  
[[Category:Templates|{{PAGENAME}}]]
+
==See also==
</noinclude>
+
* [[:Template:Infobox Battle]]
 +
* [[:Category:Conflicts]]
 +
 
 +
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 17:56, 17 April 2014

{{{title}}}
{{{image}}}
Date{{{start}}} — {{{end}}}
Location{{{location}}}
Result{{{result}}}
Belligerents
{{{side1}}}{{{side2}}}
Commanders and Leaders
{{{side1leaders}}}{{{side2leaders}}}

Usage

The Conflict template is used to give details pertaining to conflicts that have happened in the galaxy. Paste code into an article, filling fields in with the pertinent information. The first four fields should be regimes or groups involved in the conflict; the last four are for important battles and locations. In the (likely) event that a particular field requires multiple entries, include them all under the same field, separated by a dash (-) or a dot (·).

{{Infobox Conflict
| title =
| image =
| start =
| end =
| location =
| result =
| side1 =
| side2 =
| side1leaders =
| side2leaders = 
| side1losses = 
| side2losses = 
| battles =
}}

See also