Template:Battle Data: Difference between revisions

Template page
(maybe this will do it)
m (tweak)
(38 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<noinclude>{{inuse|a short while|Mercifull}}</noinclude>
<includeonly>
{| class="toccolors" style="float: right; margin: 0 0 1em 1em; width: 20em; font-size: 90%; clear:right; border: 1px solid #a60003;" align="center"
{| class="infobox"
|- style="text-align: center;"
|- style="text-align: center;"
! style="background: #461919; color: #FFFFFF;" colspan="3" | '''{{PAGENAME}}'''
! class="infoboxheader " colspan="3" | '''{{{name|{{PAGENAME}}}}}'''
|- style="text-align: center;" class="hiddenStructure{{{image|}}}"
|- style="text-align: center;" class="hiddenStructure{{{image|}}}"
| colspan="2" | [[Image:{{{image}}}|center|300px|{{{description}}}]]
| colspan="2" | [[Image:{{{image}}}|center|300px|{{{description|{{{name|{{PAGENAME}}}}}}}}]]
|- style="text-align: center;"
|- class="hiddenStructure{{{conflict||}}}" valign="top"
! style="background: #461919; color: #FFFFFF;" colspan="2" | '''General Information'''
| '''Conflict:'''
|- class="hiddenStructure{{{conflict}}}" valign="top"
| '''Conflict'''
| {{{conflict}}}
| {{{conflict}}}
|- class="hiddenStructure{{{date}}}" valign="top"
|- class="hiddenStructure{{{date|}}}" valign="top"
| '''Date'''
| '''Date:'''
| {{{date}}}
| {{{date}}}
|- class="hiddenStructure{{{place}}}" valign="top"
|- class="hiddenStructure{{{epi|}}}" valign="top"
| '''Place'''
| '''Related Episode(s):'''
| {{{epi|}}}
|- valign="top"
| '''Place:'''
| {{{place}}}
| {{{place}}}
|- class="hiddenStructure{{{result}}}" valign="top"
|- valign="top"
| '''Result'''
| '''Result:'''
| {{{result}}}
| {{{result}}}
|- style="text-align: center;"
|- style="text-align: center;"
| colspan="2" |
| colspan="2" |
{| width="100%" align="center"
{| width="100%" align="center" class="hiddenStructure{{{combatant1|}}}{{{combatant2|}}}"
! style="background: #461919; color: #FFFFFF;" colspan="2" | '''Combatants'''
! class="infoboxheader " colspan="2" | '''Combatants'''
|- style="text-align: center;"
|- style="text-align: left;"
| valign="top" | {{{combatant1}}}
| style="width: 50%;" valign="top" | {{{combatant1}}}
| valign="top" | {{{combatant2}}}
| style="width: 50%;" valign="top" | {{{combatant2}}}
|- style="text-align: center;"
|- style="text-align: center;" class="hiddenStructure{{{co1|}}}{{{co2|}}}"
! style="background: #461919; color: #FFFFFF;" colspan="2" | '''Commanders '''
! class="infoboxheader " colspan="2" | '''Commanders'''
|- style="text-align: center;"
|- style="text-align: left;"
| valign="top" | {{{co1}}}
| style="width: 50%;" valign="top" | {{{co1}}}
| valign="top" | {{{co2}}}
| style="width: 50%;" valign="top" | {{{co2}}}
|- style="text-align: center;"
|- style="text-align: center;" class="hiddenStructure{{{strength1|}}}{{{strength2|}}}"
! style="background: #461919; color: #FFFFFF;" colspan="2" | '''Strength'''
! class="infoboxheader " colspan="2" | '''Strength'''
|- style="text-align: center;"
|- style="text-align: left;"
| valign="top" | {{{strength1}}}
| style="width: 50%;" valign="top"; "border-right: 1px solid #999999"; | {{{strength1}}}
| valign="top" | {{{strength2}}}
| style="width: 50%;" valign="top" | {{{strength2}}}
|- style="text-align: center;"
|- style="text-align: center;" class="hiddenStructure{{{shiploss1|}}}{{{shiploss2|}}}"
! style="background: #461919; color: #FFFFFF;" colspan="2" | '''Ship Casualties'''
! class="infoboxheader " colspan="2" | '''Materiel Losses'''<!-- Materiel spelled correctly-->
|- style="text-align: center;"
|- style="text-align: left;"
| valign="top" | {{{scasualties1}}}
| style="width: 50%;" valign="top" | {{{shiploss1}}}
| valign="top" | {{{scasualties2}}}
| style="width: 50%;" valign="top" | {{{shiploss2}}}
|- style="text-align: center;"
|- style="text-align: center;"  class="hiddenStructure{{{casualties1|}}}{{{casualties2|}}}"
! style="background: #461919; color: #FFFFFF;" colspan="2" | '''"Life" Casualties'''
! class="infoboxheader " colspan="2" | '''Casualties'''
|- style="text-align: center;"
|- style="text-align: left;"
| valign="top" | {{{lcasualties1}}}
| style="width: 50%;" valign="top" | {{{casualties1}}}
| valign="top" | {{{lcasualties2}}}
| style="width: 50%;" valign="top" | {{{casualties2}}}
|}
|}
|- style="text-align:center;"
|- style="text-align:center;"
! style="background: #461919; color: #FFFFFF;" colspan="3" | Battle Chronology
! class="infoboxheader " colspan="3" | [[Colonial battles chronology ({{{series}}})|Battle Chronology]]
|- style="text-align:center; font-size:smaller;"  
|- style="text-align:center; font-size:90%;"  
| colspan="2" |
| colspan="2" |
{| width="100%" align="center"
{| width="100%" align="center"
Line 55: Line 56:
| style="width: 34%;" |
| style="width: 34%;" |
| style="width: 33%;" | Next
| style="width: 33%;" | Next
|- style="text-align:center; font-size:smaller;"  
|- style="text-align:center; font-size:90%;"  
| style="width: 33%;" | {{{prev}}}
| style="width: 33%;" | {{{prev}}}
| style="width: 34%;" | {{PAGENAME}}
| style="width: 34%;" | {{{name|{{PAGENAME}}}}}
| style="width: 33%;" | {{{next}}}
| style="width: 33%;" | {{{next}}}
|}
|}
|}
|}
</includeonly>
<noinclude>
<noinclude>
= Documentation =
This template provides a means to summarize statistical data regarding battles in the ''Battlestar Galactica'' series.
== Usage ==
<pre>
<pre>
{{Battle Data
{{Battle Data
|image= ''optionial''
| name=
|description= ''optionial''
| image=  
|conflict=
| description=  
|date=
| conflict=
|place=
| date=
|result=
| epi=
|combatant1=
| place=
|combatant2=
| result=
|co1=
| combatant1=
|co2=
| combatant2=
|strength1=
| co1=
|strength2=
| co2=
|scasualties1=
| strength1=
|scasualties2=
| strength2=
|lcasualties1=
| shiploss1=
|lcasualties2=
| shiploss2=
|prev=
| casualties1=
|next=
| casualties2=
| prev=
| next=
| series=
}}</pre>
}}</pre>


All fields are required except ''image'' and ''image description''.
=== Required parameters ===
* '''conflict'''
* '''date'''
* '''place'''
* '''result'''
* '''combatant1'''
* '''combatant2'''
* '''co1'''
* '''co2'''
* '''strength1'''
* '''strength2'''
* '''shiploss1'''
* '''shiploss2'''
* '''casualties1'''
* '''casualties2'''
* '''prev'''
* '''next'''
* '''series''': One of <code>RDM</code>, <code>TOS</code> of <code>1980</code>.
** '''''NOTE:''''' This parameter is '''case-sensitive'''.
See [[Battle of the Resurrection Ship]] for example of use.


See [[Battle of the Resurrection Ship]] for example of use.
=== Optional parameters ===
* '''name''': Name of the Battle
* '''image''': The image filename.
* '''description''': A description of the image.
* '''epi''': Episodes that this battle takes place. Wikify allowed. Use <code><nowiki><br /></nowiki></code> for more than one Episode.
[[Category:Infobox|Battle Data]]
[[Category:Infobox|Battle Data]]
[[de:Vorlage:Schlacht]]
</noinclude>
</noinclude>

Revision as of 02:50, 18 August 2019


Documentation

This template provides a means to summarize statistical data regarding battles in the Battlestar Galactica series.

Usage

{{Battle Data
| name= 
| image= 
| description= 
| conflict=
| date=
| epi=
| place=
| result=
| combatant1=
| combatant2=
| co1=
| co2=
| strength1=
| strength2=
| shiploss1=
| shiploss2=
| casualties1=
| casualties2=
| prev=
| next=
| series=
}}

Required parameters

  • conflict
  • date
  • place
  • result
  • combatant1
  • combatant2
  • co1
  • co2
  • strength1
  • strength2
  • shiploss1
  • shiploss2
  • casualties1
  • casualties2
  • prev
  • next
  • series: One of RDM, TOS of 1980.
    • NOTE: This parameter is case-sensitive.

See Battle of the Resurrection Ship for example of use.

Optional parameters

  • name: Name of the Battle
  • image: The image filename.
  • description: A description of the image.
  • epi: Episodes that this battle takes place. Wikify allowed. Use <br /> for more than one Episode.