Template:Infobox/battle

From Gineipaedia, the Legend of Galactic Heroes wiki

(Difference between revisions)
Jump to: navigation, search
m (test)
m (tables)
Line 29: Line 29:
|-
|-
{{#if:{{{commanders1|}}}|
{{#if:{{{commanders1|}}}|
-
{{!}}class="sb-both center" colspan="2"{{!}}'''Commanders / leaders'''
+
{{!}}class="sb-both center" colspan="2"{{!}}<table><tr><th colspan="2">'''Commanders / leaders'''</th></tr>
 +
<tr><td width="50%">{{{commanders1}}}</td><td width="50%">{{{commanders2}}}</td></tr></table>
}}
}}
|-
|-
-
{{#if:{{{commanders1|}}}|
+
{{#if:{{{strength1|}}}|
-
{{!}}class="sb-left"{{!}}{{{commanders1}}}
+
{{!}}class="sb-both center" colspan="2"{{!}}<table><tr><th colspan="2">'''Strength'''</th></tr>
-
{{!}}class="sb-right"{{!}}{{{commanders2}}}
+
<tr><td width="50%">{{{strength1}}}</td><td width="50%">{{{strength2}}}</td></tr></table>
}}
}}
|-
|-
-
{{#if:{{{flagship|}}}|
+
{{#if:{{{losses1|}}}|
-
{{!}}class="sb-left"{{!}}'''Flagship(s):'''
+
{{!}}class="sb-both center" colspan="2"{{!}}<table><tr><th colspan="2">'''Casualties / losses'''</th></tr>
-
{{!}}class="sb-right"{{!}}{{{flagship}}}
+
<tr><td width="50%">{{{losses1}}}</td><td width="50%">{{{losses2}}}</td></tr></table>
-
}}
+
-
|-
+
-
{{#if:{{{occupation|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Occupation:'''
+
-
{{!}}class="sb-right"{{!}}{{{occupation}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{status|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Status:'''
+
-
{{!}}class="sb-right"{{!}}{{{status}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{born|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Born:'''
+
-
{{!}}class="sb-right"{{!}}{{{born}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{died|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Died:'''
+
-
{{!}}class="sb-right"{{!}}{{{died}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{father|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Father:'''
+
-
{{!}}class="sb-right"{{!}}{{{father}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{mother|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Mother:'''
+
-
{{!}}class="sb-right"{{!}}{{{mother}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{siblings|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Sibling(s):'''
+
-
{{!}}class="sb-right"{{!}}{{{siblings}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{marital-status|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Marital status:'''
+
-
{{!}}class="sb-right"{{!}}{{{marital-status}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{spouse|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Spouse(s):'''
+
-
{{!}}class="sb-right"{{!}}{{{spouse}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{children|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Children:'''
+
-
{{!}}class="sb-right"{{!}}{{{children}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{relatives|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Other relative(s):'''
+
-
{{!}}class="sb-right"{{!}}{{{relatives}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{owner|}}}|
+
-
{{!}}class="sb-left"{{!}}'''Owner:'''
+
-
{{!}}class="sb-right"{{!}}{{{owner}}}
+
-
}}
+
-
|-
+
-
{{#if:{{{actor|}}}|
+
-
{{!}}class="sb-left"{{!}}'''''Played by'':'''
+
-
{{!}}class="sb-right"{{!}}''{{{actor}}}''
+
}}
}}
|-
|-

Revision as of 22:55, 30 March 2012

The following documentation is transcluded from Template:Infobox/battle/doc:


Battle of Astarte
(First Alliance-Imperial War)
Thumb
Ring formation
Date: January 796 UC (487 IC / 3596 CE)
Location: Astarte Starzone
Result: Major Imperial victory
Belligerents
Free Planets AllianceGalactic Empire
Units
2nd Fleet
4th Fleet
6th Fleet
Lohengramm Fleet
Commanders / leaders
Yang Wen-li
Paetta
Pastoll
Moore
Reinhard von Lohengramm
Willibald Joachim von Merkatz
Staden
Adalbert von Fahrenheit
Erlache
Fogel
Strength
39,000 warships20,000 warships
Casualties / losses
1,500,000 casualties150,000 casualties

Description</dt>
Infobox template for LOGH battles. Adds an infobox with pictures and common information (units involved, number of casualties, etc.) to the right side of an article.</dd>

Syntax</dt>

{{infobox/battle
| battle           = <name of battle>
| campaign         = <name of campaign (if any)>
| war              = <name of war the battle is part of>
| image-top        = <file name of image depicting battle>
| caption-top      = <caption for top image>
| date             = <in-universe date (or date range)>
| location         = <location of battle>
| result           = <result of battle>
| belligerents1    = <names of belligerents involved>
| belligerents2
| units1           = <names of participating units>
| units2            
| commanders1      = <names of commanders involved>
| commanders2       
| strength1        = <numerical strength of units involved>
| strength2         
| losses1          = <casualties suffered, including dead, wounded, missing, captured, and civilian deaths>
| losses2          
}}
}}
</dd>

Sample output</dt>

{{infobox/battle
| battle           = Battle of Astarte
| campaign         =
| war              = First Alliance-Imperial War
| image-top        = Ring formation 2.jpg
| caption-top      = '''Ring formation'''
| date             = January {{d|796|uc}}
| location         = [[Astarte Starzone]]
| result           = Major Imperial victory
| belligerents1    = [[Free Planets Alliance]]
| belligerents2    = [[Galactic Empire]]
| units1           = [[2nd Fleet]]<br>[[4th Fleet]]<br>[[6th Fleet]]
| units2           = [[Lohengramm Fleet]]
| commanders1      = [[Yang Wen-li]]<br>[[Paetta]]<br>[[Pastoll]] {{kia}}<br>[[Moore]] {{kia}}
| commanders2      = [[Reinhard von Lohengramm]]<br>[[Willibald Joachim von Merkatz]]<br>[[Staden]]<br>[[Adalbert von Fahrenheit]]<br>[[Erlache]] {{kia}}<br>[[Fogel]]
| strength1        = 39,000 warships
| strength2        = 20,000 warships
| losses1          = 1,500,000 casualties
| losses2          = 150,000 casualties
}}

produces: See top right of page.</dd>

Acknowledgements</dt>
n/a</dd>

Personal tools
Namespaces
Variants
Actions
Miscellany
Common
Tool box