Difference between revisions of "Template:Conflict Infobox"

From Discovery Wiki
Jump to navigationJump to search
(Fixing templates that include categories when transcluding themselves.)
 
(14 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
{| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 300px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3"
 
{| class="infobox bordered" style="float: right; margin-left: 1em; margin-bottom: 10px; width: 300px; font-size: 11px; line-height: 14px; border: 1px solid #dddddd;" cellpadding="3"
 
|-
 
|-
| colspan="2" style="text-align: center; font-size: 14px; background: #f6f6f6;"|'''{{{conflict}}}'''
+
| colspan="2" class="infobox-name"|'''{{{conflict}}}'''
 
{{#if: {{{partof|}}} | {{!}}-
 
{{#if: {{{partof|}}} | {{!}}-
{{!}} colspan="2" style="text-align: center; font-size: 11px; background: #f6f6f6;" {{!}} Part of {{{partof}}}
+
{{!}} colspan="2" class="infobox-section" {{!}} Part of the {{{partof}}}
 
}}
 
}}
{{#if: {{{started|}}} | {{!}}-
+
{{#if: {{{date|}}} | {{!}}-
{{!}} style="font-weight: bold;" {{!}} Started on
+
{{!}} style="font-weight: bold;" {{!}} Date
{{!}} style="padding-right: 1em;" {{!}} {{{started}}} [[A.S.]]
+
{{!}} style="padding-right: 1em;" {{!}} {{{date}}}
}}
 
{{#if: {{{ended|}}} | {{!}}-
 
{{!}} style="font-weight: bold;" {{!}} Concluded
 
{{!}} style="padding-right: 1em;" {{!}} {{{ended}}} [[A.S.]]
 
 
}}
 
}}
 
|-
 
|-
 
|style="width: 70px; font-weight: bold;" | Location
 
|style="width: 70px; font-weight: bold;" | Location
|style="padding-right: 1em; line-height: 17px;" | {{#if: {{{system|}}}{{{sector|}}}{{{house|}}}
+
|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''
 
| ''unknown''
Line 29: Line 25:
 
}}
 
}}
 
|-
 
|-
| colspan="2" style="vertical-align: top; font-weight: bold; text-align: center; background: #ebdab9;" | Belligerents
+
| colspan="2" class="infobox-section" | Belligerents
 
|-
 
|-
 
| colspan="2" |  
 
| colspan="2" |  
 
{| style="width: 100%;"
 
{| style="width: 100%;"
 
|-
 
|-
| style="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="width: 50%; padding-left: 3px;" | {{{combatant2}}}
+
{{{combatant1}}}
 +
| style="vertical-align: top; width: 50%; padding-left: 7px;" |
 +
{{{combatant2}}}
 
|}
 
|}
 
{{#if: {{{commander1|}}}{{{commander2|}}} |  
 
{{#if: {{{commander1|}}}{{{commander2|}}} |  
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" style="vertical-align: top; font-weight: bold; text-align: center; background: #ebdab9;" {{!}} Commanders
+
{{!}} colspan="2" class="infobox-section" {{!}} Commanders
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" {{!}}  
 
{{!}} colspan="2" {{!}}  
 
{{{!}} style="width: 100%;"
 
{{{!}} style="width: 100%;"
 
{{!}}-
 
{{!}}-
{{!}} style="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="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" style="vertical-align: top; font-weight: bold; text-align: center; background: #ebdab9;" {{!}} Strength
+
{{!}} colspan="2" class="infobox-section" {{!}} Strength
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" {{!}}
 
{{!}} colspan="2" {{!}}
 
{{{!}} style="width: 100%;"
 
{{{!}} style="width: 100%;"
 
{{!}}-
 
{{!}}-
{{!}} style="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="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===
Line 68: Line 68:
 
| conflict = Omega-5 Conflict
 
| conflict = Omega-5 Conflict
 
| partof = Corsair - Hessian War
 
| partof = Corsair - Hessian War
| started = 740
+
| date = 740 [[A.S.]]
| ended =
 
 
| sector =  
 
| sector =  
 
| system = [[Omega-5]]
 
| system = [[Omega-5]]
Line 87: Line 86:
 
| conflict = Omega-5 Conflict
 
| conflict = Omega-5 Conflict
 
| partof = [[Hessian-Corsair War]]
 
| partof = [[Hessian-Corsair War]]
| started = 740
+
| date = 740 [[A.S.]]
| ended =
 
 
| sector =  
 
| sector =  
 
| system = [[Omega-5]]
 
| system = [[Omega-5]]
Line 107: Line 105:
 
| conflict = Battle of the Yanagi cloud
 
| conflict = Battle of the Yanagi cloud
 
| partof = [[Eighty Years War]]
 
| partof = [[Eighty Years War]]
| started = 668
+
| date = 668 [[A.S.]]
| ended = 668
 
 
| sector = C5
 
| sector = C5
 
| system = [[Sigma-13]]
 
| system = [[Sigma-13]]
Line 126: Line 123:
 
| conflict = Battle of the Yanagi cloud
 
| conflict = Battle of the Yanagi cloud
 
| partof = [[Eighty Years War]]
 
| partof = [[Eighty Years War]]
| started = 668
+
| date = 668 [[A.S.]]
| ended = 668
 
 
| sector = C5
 
| sector = C5
 
| system = [[Sigma-13]]
 
| system = [[Sigma-13]]

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