Welcome to Assassin's Creed Wiki! Log in and join the community.

Template:Battle Infobox: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>D. Cello
No edit summary
imported>Vatsa1708
m Colours..
Line 1: Line 1:
<small>
<small>
{| id="Battle" class="infobox hidable" style="border-width: 0px; padding: 0px; width: auto;"
{| id="Battle" class="infobox hidable" style="border-width: 0px; background: #3e6dc0; padding: 0px; width: auto;"
|
|
{| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="border-width: 0px; width:{{#if:{{{width|}}}|{{{width}}}|{{#if:{{{side4|}}}|350px|{{#if:{{{side3|}}}|300px|300px}}}}}};"
{| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="border-width: 0px; width:{{#if:{{{width|}}}|{{{width}}}|{{#if:{{{side4|}}}|350px|{{#if:{{{side3|}}}|300px|300px}}}}}};"
Line 47: Line 47:
|-
|-
{{#ifexpr:{{#if:{{{side1|}}}|1|0}} or {{#if:{{{side2|}}}|1|0}} or {{#if:{{{side3|}}}|1|0}} or {{#if:{{{side4|}}}|1|0}}|
{{#ifexpr:{{#if:{{{side1|}}}|1|0}} or {{#if:{{{side2|}}}|1|0}} or {{#if:{{{side3|}}}|1|0}} or {{#if:{{{side4|}}}|1|0}}|
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|B4C5E3}}" {{!}} '''Combatants'''
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|6b94dd}}" {{!}} '''Combatants'''
{{!}}-
{{!}}-
{{!}} class="infoboxcell" style="vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
Line 62: Line 62:
{{!}}-|}}
{{!}}-|}}
{{#ifexpr:{{#if:{{{commanders1|}}}|1|0}} or {{#if:{{{commanders2|}}}|1|0}} or {{#if:{{{commanders3|}}}|1|0}} or {{#if:{{{commanders4|}}}|1|0}}|
{{#ifexpr:{{#if:{{{commanders1|}}}|1|0}} or {{#if:{{{commanders2|}}}|1|0}} or {{#if:{{{commanders3|}}}|1|0}} or {{#if:{{{commanders4|}}}|1|0}}|
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|B4C5E3}}" {{!}} '''Commanders'''
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|6b94dd}}" {{!}} '''Commanders'''
{{!}}-
{{!}}-
{{!}} class="infoboxcell" style="vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
Line 77: Line 77:
{{!}}-|}}
{{!}}-|}}
{{#ifexpr:{{#if:{{{forces1|}}}|1|0}} or {{#if:{{{forces2|}}}|1|0}} or {{#if:{{{forces3|}}}|1|0}} or {{#if:{{{forces4|}}}|1|0}}|
{{#ifexpr:{{#if:{{{forces1|}}}|1|0}} or {{#if:{{{forces2|}}}|1|0}} or {{#if:{{{forces3|}}}|1|0}} or {{#if:{{{forces4|}}}|1|0}}|
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|B4C5E3}}" {{!}} '''Strength'''
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|6b94dd}}" {{!}} '''Strength'''
{{!}}-
{{!}}-
{{!}} class="infoboxcell" style="vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
Line 92: Line 92:
{{!}}-|}}
{{!}}-|}}
{{#ifexpr:{{#if:{{{casual1|}}}|1|0}} or {{#if:{{{casual2|}}}|1|0}} or {{#if:{{{casual3|}}}|1|0}} or {{#if:{{{casual4|}}}|1|0}}|
{{#ifexpr:{{#if:{{{casual1|}}}|1|0}} or {{#if:{{{casual2|}}}|1|0}} or {{#if:{{{casual3|}}}|1|0}} or {{#if:{{{casual4|}}}|1|0}}|
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|B4C5E3}}" {{!}} '''Casualties'''
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|6b94dd}}" {{!}} '''Casualties'''
{{!}}-
{{!}}-
{{!}} class="infoboxcell" style="vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
Line 114: Line 114:
|}
|}
|}
|}
<div class="infoboxfooter plainlinks" style="text-align: center; background: #7995CA"><span class="hidable-button"></span>[[{{{srclink|Template:Battle}}}|[Source]]]</div>{{Rb|#7995CA}}
|}</small>
|}</small><!-- TEMPLATE ENDS HERE. This template cannot be regenerated by source code alone. --><noinclude>{{Era|fprot}}
<!-- TEMPLATE ENDS HERE. This template cannot be regenerated by source code alone. --><noinclude>{{Era|fprot}}
For two-, three-, and four-way battles, use [[Template:Battle]].
For two-, three-, and four-way battles, use [[Template:Battle]].


Line 170: Line 170:
*BG2
*BG2


<center><div style="border:1px solid; padding: 3px 0px; background: white"><small>The contents of this page were based partially or completely from a [http://starwars.wikia.com/wiki/Template:Battle similar] at [http://starwars.wikia.com/wiki/Main_Page Wookiepedia.]</small></div>
<center><div style="border:1px solid; padding: 3px 0px; background:6b94dd"><small>The contents of this page were based partially or completely from a [http://starwars.wikia.com/wiki/Template:Battle similar] at [http://starwars.wikia.com/wiki/Main_Page Wookiepedia.]</small></div>


[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Revision as of 12:18, 21 February 2012

{{{name}}}

For two-, three-, and four-way battles, use Template:Battle.

For wars or other conflicts, use Template:War.

For missions, use Template:Mission.

For duels, use Template:Duel.

For campaigns, use Template:Campaign.

For general events, use Template:Event.

Usage instructions

This template is compatible with two-, three-, and four-way battles, assuming each side involved (i.e. side1, side2, etc.) is given a value.

Paste the following code into the top of an article, filling all known fields:

{{Battle
|width=
|prev=
|conc=
|next=
|name=
|imageBG=
|image=
|conflict=
|date=
|place=
|result=
|BG2=
|side1=
|side2=
|side3=
|side4=
|commanders1=
|commanders2=
|commanders3=
|commanders4=
|forces1=
|forces2=
|forces3=
|forces4=
|casual1=
|casual2=
|casual3=
|casual4=
|civilian=}}

Display parameters

These additional parameters may also be added to the template:

  • width (defaults to 300px, 350px, and 400px for two-, three-, and four-way battles, respectively)
  • imageBG
  • BG2
The contents of this page were based partially or completely from a similar at Wookiepedia.