Template:Battle: Difference between revisions

From EarthMC
Jump to navigation Jump to search
>CorruptedGreed
No edit summary
m (Redirected page to Template:BattleTemplate)
Tag: New redirect
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<infobox>
#REDIRECT [[Template:BattleTemplate]]
  <title source="title1">
<!--{| 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"
    <default>{{PAGENAME}}</default>
|-
  </title>
|<div>
  <image source="image1">
{| border="0" cellpadding="4" cellspacing="0" style="float:right; margin:0 0 0 0; width:100%; background:; border-collapse:collapse; vertical-align: middle"
    <caption source="caption1"/>
|-
  </image>
! colspan="2" style="text-align:center; color:#FFFFFF; background:#212121; font-size:200%;" | {{{name|<font color="white">{{{title1}}}</font>}}}
  <data source="affiliated_war">
|- style="text-align:center;"
    <label>Affiliated War</label>
|-
  </data>
{{#if:{{{image1<includeonly>|</includeonly>}}} |
  <data source="date">
{{!}} colspan="2" style="text-align:center;background-color:#;" {{!}}{{{image1}}}
    <label>Date</label>
{{!}}-
  </data>
}}
  <data source="location">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    <label>Location</label>
| style="{{#if:{{{full_name|}}}| |display: none;}}" valign="top" | '''Date'''
  </data>
| style="{{#if:{{{full_name|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{date|}}}
  <data source="belligerents">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    <label>Belligerents</label>
| style="{{#if:{{{full_name|}}}| |display: none;}}" valign="top" | '''Location'''
  </data>
| style="{{#if:{{{full_name|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{location|}}}
  <data source="strength">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    <label>Strength</label>
| style="{{#if:{{{full_name|}}}| |display: none;}}" valign="top" | '''Result'''
  </data>
| style="{{#if:{{{full_name|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{result|}}}
  <data source="result">
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
    <label>Result</label>
|-
  </data>
| colspan="2" style="{{#if:{{{eras|}}}| |display: none;}}" class="infoboxcell" valign="top" | {{{eras|}}}
  <data source="casualties_and_losses">
|-
    <label>Casualties and losses</label>
! colspan="2" style="{{#if:{{{hideb|}}}|display: none;| |}} text-align:center; font-weight:normal; color:#FFFFFF; background:#212121;" | '''Belligerents'''
  </data>
|- style="border-top: 1px solid #999; border-bottom: 1px solid #999;"
</infobox>
| style="{{#if:{{{full_name|}}}| |display: none;}}" valign="top" | '''Belligerents'''
| 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]][[Category:Test3]]</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>-->

Latest revision as of 15:16, 20 October 2023