Template:Battle: Difference between revisions

From EarthMC
Jump to navigation Jump to search
m (209035053697728513 moved page Template:Battle template to Template:Battle without leaving a redirect)
No edit summary
Line 1: Line 1:
<infobox>
{| cellspacing="1" cellpadding="1" style="float:right; clear:right; margin: 0 0 .5em 1em; width:280px; background: border-collapse:collapse; border:3.5px solid {{{color|}}}; font-size:smaller; line-height:1.5"
  <title source="title1">
|-
    <default>{{PAGENAME}}</default>
|<div>
  </title>
{| border="0" cellpadding="4" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle"
  <image source="image1">
|-
    <caption source="caption1"/>
! colspan="2" style="text-align:center; color:#FFFFFF; background:#212121; font-size:200%;" | {{{name|<font color="white">{{{title1}}}</font>}}}
  </image>
|- style="text-align:center;"
  <data source="affiliated_war">
|-
    <label>Affiliated War</label>
{{#if:{{{image1<includeonly>|</includeonly>}}} |
  </data>
{{!}} colspan="2" style="text-align:center;background-color:#;" {{!}}{{{image1}}}
  <data source="date">
{{!}}-
    <label>Date</label>
}}
  </data>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
  <data source="location">
| style="{{#if:{{{full_name|}}}| |display: none;}}" valign="top" | '''Date'''
    <label>Location</label>
| style="{{#if:{{{full_name|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{date|}}}
  </data>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
  <data source="belligerents">
| style="{{#if:{{{full_name|}}}| |display: none;}}" valign="top" | '''Location'''
    <label>Belligerents</label>
| style="{{#if:{{{full_name|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{location|}}}
  </data>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
  <data source="strength">
| style="{{#if:{{{full_name|}}}| |display: none;}}" valign="top" | '''Result'''
    <label>Strength</label>
| style="{{#if:{{{full_name|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{result|}}}
  </data>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
  <data source="result">
|-
    <label>Result</label>
| colspan="2" style="{{#if:{{{eras|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{eras|}}}
  </data>
|-
  <data source="casualties_and_losses">
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Belligerents'''
    <label>Casualties and losses</label>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
  </data>
| style="{{#if:{{{full_name|}}}| |display: none;}}" valign="top" | '''Belligerents'''
</infobox>
| style="{{#if:{{{full_name|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{belligerents|}}}
|-
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Commanders and leaders'''
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{political_system|}}}| |display: none;}}" valign="top" | '''Commanders and leaders'''
| style="{{#if:{{{political_system|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{commanders_and_leaders|}}}
|-
|-
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Strength'''
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{political_system|}}}| |display: none;}}" valign="top" | '''Strength'''
| style="{{#if:{{{political_system|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{strength|}}}
|-
|-
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Casualties and losses'''
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
| style="{{#if:{{{political_system|}}}| |display: none;}}" valign="top" | '''Casualties and losses'''
| style="{{#if:{{{political_system|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{casualties_and_losses|}}}
|-
|}</div>
|}
<includeonly>[[Category:Battles]]</includeonly>
 
<noinclude>
<noinclude>
Example usage:<pre>
Example Usage:<pre>
{{Battle template
{{Battle
|color=Example
|eras={{Eras|beta|beginning|hype|decline|crepuscular|flooding}}
|title1=Example
|title1=Example
|image1=Example
|image1=Example
|caption1=Example
|Date=Example
|location=Example
|Location=Example
|date=Example
|Result=Example
|result=Example
|Belligerents=Example
|belligerents=Example
|Commanders and leaders=Example
|strength=Example
|Strength=Example
|casualties_and_losses=Example
|Casualties and losses=Example
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 18:33, 13 June 2023

{{{title1}}}
{{{image1}}}
Date
Location
Result
Belligerents
Belligerents
Commanders and leaders
Commanders and leaders
Strength
Strength
Casualties and losses
Casualties and losses


Example Usage:

{{Battle
|color=Example
|eras={{Eras|beta|beginning|hype|decline|crepuscular|flooding}}
|title1=Example
|image1=Example
|Date=Example
|Location=Example
|Result=Example
|Belligerents=Example
|Commanders and leaders=Example
|Strength=Example
|Casualties and losses=Example
}}