Template:Battle Data: Difference between revisions

Template page
(saved; updating.. documentation)
m (tweak)
(26 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<includeonly>
<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" | '''{{{name|{{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}}}}}}}}]]
|- valign="top"
|- class="hiddenStructure{{{conflict||}}}"  valign="top"
| '''Conflict'''
| '''Conflict:'''
| {{{conflict}}}
| {{{conflict}}}
|- valign="top"
|- class="hiddenStructure{{{date|}}}" valign="top"
| '''Date'''
| '''Date:'''
| {{{date}}}
| {{{date}}}
|- class="hiddenStructure{{{epi|}}}" valign="top"
| '''Related Episode(s):'''
| {{{epi|}}}
|- valign="top"
|- valign="top"
| '''Place'''
| '''Place:'''
| {{{place}}}
| {{{place}}}
|- 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;"
| style="width: 50%;" valign="top" | {{{combatant1}}}
| style="width: 50%;" valign="top" | {{{combatant1}}}
| style="width: 50%;" 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;"
| style="width: 50%;" valign="top" | {{{co1}}}
| style="width: 50%;" valign="top" | {{{co1}}}
| style="width: 50%;" 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;"
| style="width: 50%;" valign="top" | {{{strength1}}}
| style="width: 50%;" valign="top"; "border-right: 1px solid #999999"; | {{{strength1}}}
| style="width: 50%;" 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" | '''Material Losses'''
! class="infoboxheader " colspan="2" | '''Materiel Losses'''<!-- Materiel spelled correctly-->
|- style="text-align: center;"
|- style="text-align: left;"
| style="width: 50%;" valign="top" | {{{shiploss1}}}
| style="width: 50%;" valign="top" | {{{shiploss1}}}
| style="width: 50%;" valign="top" | {{{shiploss2}}}
| 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" | '''Casualties'''
! class="infoboxheader " colspan="2" | '''Casualties'''
|- style="text-align: center;"
|- style="text-align: left;"
| style="width: 50%;" valign="top" | {{{casualties1}}}
| style="width: 50%;" valign="top" | {{{casualties1}}}
| style="width: 50%;" valign="top" | {{{casualties2}}}
| 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:90%;"  
|- style="text-align:center; font-size:90%;"  
| colspan="2" |
| colspan="2" |
Line 62: Line 65:
<noinclude>
<noinclude>
= Documentation =
= Documentation =
''Insert what this template is about.''
This template provides a means to summarize statistical data regarding battles in the ''Battlestar Galactica'' series.


== Usage ==
== Usage ==
<pre>
<pre>
''Insert full usage here.''
{{Battle Data
</pre>
| name=
| image=
| description=
| conflict=
| date=
| epi=
| place=
| result=
| combatant1=
| combatant2=
| co1=
| co2=
| strength1=
| strength2=
| shiploss1=
| shiploss2=
| casualties1=
| casualties2=
| prev=
| next=
| series=
}}</pre>


=== Required parameters ===
=== Required parameters ===
''Insert 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.


=== Optional parameters ===
=== Optional parameters ===
''Insert 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.
 
<pre>
{{Battle Data
|name= ''optional''
|image= ''optional''
|description= ''optional''
|conflict=
|date=
|place=
|result=
|combatant1=
|combatant2=
|co1=
|co2=
|strength1=
|strength2=
|shiploss1=
|shiploss2=
|casualties1=
|casualties2=
|prev=
|next=
}}</pre>
 
All fields are required except ''image'', ''name'', and ''description''.
 
See [[Battle of the Resurrection Ship]] for example of use.
[[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.