Difference between revisions of "Template:Conflict"


 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{| class="wiki-sidebar"
+
<div class="infobox">
|-
+
{| width="300" align="right" cellpadding="3" cellspacing="0" style="border: 1px #444 solid; background: #bbb; border-bottom-right-radius: .8em; border-bottom-left-radius: .8em; -moz-border-radius-bottomright: .8em; -moz-border-radius-bottomleft: .8em; -webkit-border-bottom-right-radius: .8em; -webkit-border-bottom-left-radius: .8em; margin-top: -1.4em; margin: 0 0 1em 1em; font-size: 12px;color: #444;"
! colspan="2" |{{{conflict_name}}}
 
 
|-
 
|-
{{#if:{{{part_of|}}}|
+
{{#if: {{{conflict_name|}}}|
{{!}} style="text-align:center;" colspan="2" {{!}} <small>Part of {{{part_of}}}</small>
+
{{!}} colspan="4" style="border-top: 1px solid #444; text-align: center; color: #e5e5ed; font-size:larger; background-color:#313645; text-align:center; font-variant:small-caps;" {{!}} '''{{{conflict_name}}}'''}}
}}
+
{{#if: {{{name|}}}|
 +
{{!}} colspan="4" style="border-top: 1px solid #444; text-align: center; color: #e5e5ed; font-size:larger; background-color:#313645; text-align:center; font-variant:small-caps;" {{!}} '''{{{name}}}'''}}
 
|-
 
|-
{{#ifeq:{{{twoimg|}}}||{{#if:{{{image|}}}|{{!}} class="sb-both" colspan="2" {{!}}{{sidebar image|{{{image}}}|{{{imagecap}}}}}{{{imagecap}}}}}|{{#if:{{{image|}}}|{{!}} class="sb-both" colspan="2" {{!}}{{sidebar image|img1={{{image}}}|cap1={{{imagecap}}}|img2={{{image2}}}|cap2={{{imagecap2}}}|size={{{size|143}}}}}}}}}
+
{{#if: {{{part of|}}}|
 +
{{!}} colspan="2" bgcolor=#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; text-align: center; color: #444; font-size:smaller;" {{!}} Part of the {{{part of}}}}}
 
|-
 
|-
{{!}} colspan="2" {{!}}
+
{{#if: {{{image|}}}|
{| style="width:100%; background:#222222;"
+
{{!}} colspan="4" bgcolor=#bbb; style="background: #bbb; border-top: 1px solid #444; color: #444; font-size:smaller; text-align: center;" {{!}} {{{image}}}}}
 
|-
 
|-
| style="padding-right: 1em;" valign="top" width="20%"|{{ #if: {{{date|}}}|'''Date''':}}
+
{{#if: {{{caption|}}}|
| {{ #if: {{{date|}}}|{{{date}}}}}
+
{{!}} colspan="4" bgcolor=#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; text-align: center; color: #444; font-size:smaller;" {{!}} {{{caption}}}}}
 
|-
 
|-
| style="padding-right: 1em;" valign="top" width="20%"|{{ #if: {{{location|}}}|'''Location''':}}
+
{{#if: {{{date|}}}|
| {{ #if: {{{location|}}}|{{{location}}}}}
+
{{!}} colspan="1" bgcolor=#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;" {{!}} Date:
 +
{{!}} colspan="3" bgcolor=#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;" {{!}}  
 +
{{{date}}}}}
 
|-
 
|-
| style="padding-right: 1em;" valign="top" width="20%"|{{ #if: {{{result|}}}|'''Result''':}}
+
{{#if: {{{location|}}}|
| {{ #if: {{{result|}}}|{{{result}}}}}
+
{{!}} colspan="1" bgcolor=#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;" {{!}} Location:
|}
+
{{!}} colspan="3" bgcolor=#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;" {{!}}  
 +
{{{location}}}}}
 
|-
 
|-
! colspan="2" | Belligerents
+
{{#if: {{{result|}}}|
 +
{{!}} colspan="1" bgcolor=#aaa; style="background: #aaa; padding-left:6px; padding-right:6px; border-top: 1px solid #444; border-right: 1px solid #444; color: #333; font-size:smaller;" {{!}} Result:
 +
{{!}} colspan="3" bgcolor=#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller;" {{!}}
 +
{{{result}}}}}
 
|-
 
|-
| style="border-right:1px dotted #aaa; width:50%; vertical-align:top;" | {{{combatant1}}}  
+
{{#if:{{{combatant1|}}}{{{combatant2|}}}|
| style="padding-left: 0.25em; width:50%; vertical-align:top;" | {{{combatant2}}}  
+
! colspan="2" style="border-top: 1px solid #444; text-align: center; color: #e5e5ed; font-size:larger; background-color:#313645; text-align:center; font-variant:small-caps;" {{!}} Belligerents
 +
{{!}}-
 +
{{!}} bgcolor=#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller; border-right:1px dotted #444; width:50%; vertical-align:top;" {{!}}
 +
{{{combatant1}}}
 +
{{!}} bgcolor=#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller; width:50%; vertical-align:top;" {{!}}
 +
{{{combatant2}}}
 +
}}
 
|-
 
|-
 
{{#if:{{{commander1|}}}{{{commander2|}}}|
 
{{#if:{{{commander1|}}}{{{commander2|}}}|
! colspan="2" {{!}} Notable commanders
+
! colspan="2" style="border-top: 1px solid #444; text-align: center; color: #e5e5ed; font-size:larger; background-color:#313645; text-align:center; font-variant:small-caps;" {{!}} Notable commanders
 
{{!}}-
 
{{!}}-
{{!}} style="border-right:1px dotted #aaa; width:50%; vertical-align:top;" {{!}} {{{commander1}}}
+
{{!}} bgcolor=#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller; border-right:1px dotted #444; width:50%; vertical-align:top;" {{!}}  
{{!}} style="padding-left: 0.25em; width:50%; vertical-align:top;" {{!}} {{{commander2}}}
+
{{{commander1}}}
 +
{{!}} bgcolor=#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller; width:50%; vertical-align:top;" {{!}}  
 +
{{{commander2}}}
 
}}
 
}}
 
|-
 
|-
 
{{#if:{{{strength1|}}}{{{strength2|}}}|
 
{{#if:{{{strength1|}}}{{{strength2|}}}|
! colspan="2" {{!}} Strength
+
! colspan="2" style="border-top: 1px solid #444; text-align: center; color: #e5e5ed; font-size:larger; background-color:#313645; text-align:center; font-variant:small-caps;" {{!}} Strength
 
{{!}}-
 
{{!}}-
{{!}} style="border-right:1px dotted #aaa; width:50%; vertical-align:top;" {{!}} {{{strength1}}}
+
{{!}} bgcolor=#bbbstyle="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller; border-right:1px dotted #444; width:50%; vertical-align:top;" {{!}}  
{{!}} style="padding-left: 0.25em; width:50%; vertical-align:top;" {{!}} {{{strength2}}}
+
{{{strength1}}}
 +
{{!}} bgcolor=#bbbstyle="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller; width:50%; vertical-align:top;" {{!}}  
 +
{{{strength2}}}
 
}}
 
}}
 
|-
 
|-
 
{{#if:{{{losses1|}}}{{{losses2|}}}|
 
{{#if:{{{losses1|}}}{{{losses2|}}}|
! colspan="2" {{!}} Casualties and losses
+
! colspan="2" style="border-top: 1px solid #444; text-align: center; color: #e5e5ed; font-size:larger; background-color:#313645; text-align:center; font-variant:small-caps;" {{!}} Casualties and Losses
 
{{!}}-
 
{{!}}-
{{!}} style="border-right:1px dotted #aaa; width:50%; vertical-align:top;" {{!}} {{{losses1}}}
+
{{!}} bgcolor=#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller; border-right:1px dotted #444; width:50%; vertical-align:top;" {{!}}  
{{!}} style="padding-left:0.25em; width:50%; vertical-align:top;" {{!}} {{{losses2}}}
+
{{{losses1}}}
 +
{{!}} bgcolor=#bbb; style="background: #bbb; padding-left:6px; padding-right:6px; border-top: 1px solid #444; font-size:smaller; width:50%; vertical-align:top;" {{!}}  
 +
{{{losses2}}}
 
}}
 
}}
 
|-
 
|-
{{#ifeq:{{{twoimg|}}}||{{#if:{{{image2|}}}|{{!}} colspan="2" {{!}}{{sidebar image|{{{image2}}}|{{{imagecap2}}}}}}}|}}
+
|colspan="2" style="border-bottom-right-radius: .8em; border-bottom-left-radius: .8em; -moz-border-radius-bottomright: .8em; -moz-border-radius-bottomleft: .8em; -webkit-border-bottom-right-radius: .8em; -webkit-border-bottom-left-radius: .8em; text-align: center; color: #e5e5ed; font-variant:small-caps; font-size:smaller; background-color:#313645; text-align:center; border-top: 1px solid #444;" | [ [[Template:Conflict|Source]] ]
|}</includeonly><noinclude>{{doc}}[[Category:Memory Alpha sidebar templates|Military conflict]]</noinclude>
+
|}</div>
 
 
  
 
<includeonly>
 
<includeonly>

Latest revision as of 15:18, 6 April 2015

[ Source ]


{{conflict
|name= 
|part of=
|image=
|caption=
|date=
|location=
|result=
<!-- combatant 1 -->
|combatant1=
|commander1=
|strength1=
|losses1=
<!-- combatant 2 -->
|combatant2=
|commander2=
|strength2=
|losses2=
}}