Difference between revisions of "Template:Conflict Infobox"

From Discovery Wiki
Jump to navigationJump to search
(Fixing templates that include categories when transcluding themselves.)
 
(5 intermediate revisions by one other user not shown)
Line 4: Line 4:
 
| colspan="2" class="infobox-name"|'''{{{conflict}}}'''
 
| colspan="2" class="infobox-name"|'''{{{conflict}}}'''
 
{{#if: {{{partof|}}} | {{!}}-
 
{{#if: {{{partof|}}} | {{!}}-
{{!}} colspan="2" class="infobox-section"  {{!}} Part of the {{{partof}}} }}{{#if: {{{date|}}} |
+
{{!}} colspan="2" class="infobox-section"  {{!}} Part of the {{{partof}}}
{{!}}-
+
}}
 +
{{#if: {{{date|}}} | {{!}}-
 
{{!}} style="font-weight: bold;" {{!}} Date
 
{{!}} style="font-weight: bold;" {{!}} Date
 
{{!}} style="padding-right: 1em;" {{!}} {{{date}}}
 
{{!}} style="padding-right: 1em;" {{!}} {{{date}}}
Line 13: Line 14:
 
|style="padding-right: 1em; line-height: 17px;" | {{#if: {{{system|}}}{{{sector|}}}{{{region|}}}
 
|style="padding-right: 1em; line-height: 17px;" | {{#if: {{{system|}}}{{{sector|}}}{{{region|}}}
 
| {{#if: {{{sector|}}} | '''{{{sector}}}''', }} {{#if: {{{system|}}} | {{{system}}} | ''unknown'' }}{{#if: {{{region|}}} | <br>''{{{region}}}'' }}
 
| {{#if: {{{sector|}}} | '''{{{sector}}}''', }} {{#if: {{{system|}}} | {{{system}}} | ''unknown'' }}{{#if: {{{region|}}} | <br>''{{{region}}}'' }}
| ''unknown'' }}{{#if: {{{status|}}}
+
| ''unknown''
| {{!}}-
+
}}
 +
{{#if: {{{status|}}} | {{!}}-
 
{{!}} style="font-weight: bold;" {{!}} Status
 
{{!}} style="font-weight: bold;" {{!}} Status
 
{{!}} style="padding-right: 1em;" {{!}} {{{status}}}
 
{{!}} style="padding-right: 1em;" {{!}} {{{status}}}
}}{{#if: {{{result|}}}
+
}}
| {{!}}-
+
{{#if: {{{result|}}} | {{!}}-
 
{{!}} style="font-weight: bold;" {{!}} Result
 
{{!}} style="font-weight: bold;" {{!}} Result
{{!}} style="padding-right: 1em;" {{!}} {{{result}}} }}
+
{{!}} style="padding-right: 1em;" {{!}} {{{result}}}
 +
}}
 
|-
 
|-
 
| colspan="2" class="infobox-section"  | Belligerents
 
| colspan="2" class="infobox-section"  | Belligerents
Line 27: Line 30:
 
{| style="width: 100%;"
 
{| style="width: 100%;"
 
|-
 
|-
| style="vertical-align: top; width: 50%; padding-right: 3px; border-right: 1px dotted #aaaaaa;" | {{{combatant1}}}
+
| style="vertical-align: top; width: 50%; padding-right: 7px; border-right: 1px dotted #aaaaaa;" |
| style="vertical-align: top; width: 50%; padding-left: 3px;" | {{{combatant2}}}
+
{{{combatant1}}}
|}{{#if: {{{commander1|}}}{{{commander2|}}} |  
+
| style="vertical-align: top; width: 50%; padding-left: 7px;" |
 +
{{{combatant2}}}
 +
|}
 +
{{#if: {{{commander1|}}}{{{commander2|}}} |  
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" class="infobox-section"  {{!}} Commanders
 
{{!}} colspan="2" class="infobox-section"  {{!}} Commanders
Line 36: Line 42:
 
{{{!}} style="width: 100%;"
 
{{{!}} style="width: 100%;"
 
{{!}}-
 
{{!}}-
{{!}} style="vertical-align: top; width: 50%; padding-right: 3px; border-right: 1px dotted #aaaaaa;" {{!}} {{{commander1}}}
+
{{!}} style="vertical-align: top; width: 50%; padding-right: 7px; border-right: 1px dotted #aaaaaa;" {{!}}
{{!}} style="vertical-align: top; width: 50%; padding-left: 3px;;" {{!}} {{{commander2}}}
+
{{{commander1}}}
 +
{{!}} style="vertical-align: top; width: 50%; padding-left: 7px;" {{!}}
 +
{{{commander2}}}
 
{{!}}}
 
{{!}}}
}}{{#if: {{{strength1|}}}{{{strength2|}}} |  
+
}}
 +
{{#if: {{{strength1|}}}{{{strength2|}}} |  
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" class="infobox-section" {{!}} Strength
 
{{!}} colspan="2" class="infobox-section" {{!}} Strength
Line 46: Line 55:
 
{{{!}} style="width: 100%;"
 
{{{!}} style="width: 100%;"
 
{{!}}-
 
{{!}}-
{{!}} style="vertical-align: top; width: 50%; padding-right: 3px; border-right: 1px dotted #aaaaaa;" {{!}} {{{strength1}}}
+
{{!}} style="vertical-align: top; width: 50%; padding-right: 7px; border-right: 1px dotted #aaaaaa;" {{!}}
{{!}} style="vertical-align: top; width: 50%; padding-left: 3px;" {{!}} {{{strength2}}}
+
{{{strength1}}}
 +
{{!}} style="vertical-align: top; width: 50%; padding-left: 7px;" {{!}}
 +
{{{strength2}}}
 
{{!}}}
 
{{!}}}
 
}}
 
}}
 
|}
 
|}
[[Category: Conflicts]]
+
{{#ifeq:{{NAMESPACE}}|Template||[[Category:Conflicts]]}}<noinclude>-->
<noinclude>
 
-->
 
 
==Example 1==
 
==Example 1==
 
===Usage===
 
===Usage===

Latest revision as of 20:48, 24 January 2012

Example 1

Usage

{{Conflict Infobox
| conflict = Omega-5 Conflict
| partof = Corsair - Hessian War
| date = 740 [[A.S.]]
| sector = 
| system = [[Omega-5]]
| region = [[Border Worlds]]
| result = 
| status = Ongoing conflict
| combatant1 = [[Red Hessians]]
| combatant2 = {{House Link | Corsairs}}
| commander1 = 
| commander2 = 
| strength1 = Exact number unknown,<br>believed to maintain numerical superiority
| strength2 = Exact number unknown
}}

Result

Omega-5 Conflict
Part of the Hessian-Corsair War
Date 740 A.S.
Location Omega-5
Border Worlds
Status Ongoing conflict
Belligerents

Red Hessians

Flag-corsairs.png Corsairs

Strength

Exact number unknown,
believed to maintain numerical superiority

Exact number unknown

Example 2

Usage

{{Conflict Infobox
| conflict = Battle of the Yanagi cloud
| partof = [[Eighty Years War]]
| date = 668 [[A.S.]]
| sector = C5
| system = [[Sigma-13]]
| region = [[Border Worlds]]
| result = Decisive victory for the [[Gas Miners Guild]]
| status = 
| combatant1 = {{House Link | Rheinland}}
| combatant2 = [[Gas Miners Guild]]
| commander1 = Empress Leicht
| commander2 = GMG Security Council
| strength1 = 
| strength2 = 
}}

Result

Battle of the Yanagi cloud
Part of the Eighty Years War
Date 668 A.S.
Location C5, Sigma-13
Border Worlds
Result Decisive victory for the Gas Miners Guild
Belligerents

Flag-rheinland.png Rheinland

Gas Miners Guild

Commanders

Empress Leicht

GMG Security Council