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>VatsaAWB
m Bot: Fixing redirects
imported>PhoenixBlitzkrieg
Formatting
Line 1: Line 1:
<small>
<small>
{| id="Battle" class="infobox hidable" style="border-width: 0px; background: #3e6dc0; padding: 0px; width: auto;"
{| class="infobox" style="float:right; width:264px; font-size:90%; text-align:left; -moz-border-radius:7px; background:transparent; padding:6px;" cellspacing="0" cellpadding="3"
|
|
{| 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 19: Line 19:
{{{next|}}}
{{{next|}}}
{{!}}-|}}
{{!}}-|}}
! class="infoboxheading" colspan="2" style="background: #7995CA;" | {{{{{{2|name}}}}}}
! colspan="2" style="font-size:130%; text-align:center;" | {{{2|{{PAGENAME}}}}}  
|-
|-
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|background: #B4C5E3}}" | {{{image|}}}
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|background: #B4C5E3}}" | {{{image|}}}
Line 26: Line 26:
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Conflict
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Conflict
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{{conflict|}}}
{{{conflict}}}
{{!}}-|}}
{{!}}-|}}
{{#if:{{{date|}}}|
{{#if:{{{date|}}}|
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Date
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Date
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{{date|}}}
{{{date}}}
{{!}}-|}}
{{!}}-|}}
{{#if:{{{place|}}}|
{{#if:{{{place|}}}|
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Place
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Place
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{{place|}}}
{{{place}}}
{{!}}-|}}
{{!}}-|}}
{{#if:{{{result|}}}|
{{#if:{{{result|}}}|
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Outcome
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Outcome
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{{result|}}}
{{{result}}}
{{!}}-|}}
{{!}}-|}}
| colspan="2" cellpadding="0" cellspacing="0" style="margin:0; padding:0" |
| colspan="2" cellpadding="0" cellspacing="0" style="margin:0; padding:0" |
Line 115: Line 115:
|}
|}
|}</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>{{clear}}{{documentation}}
For two-, three-, and four-way battles, use [[Template:Battle Infobox|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]].
{{Clear}}
===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:
 
<pre><nowiki>{{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=}}</nowiki></pre>
 
===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
 
<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 22:26, 3 June 2015

Battle Infobox
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Battle_Infobox/doc to edit this documentation. (How does this work?)
Description
For two-, three-, and four-way battles, use Template:Battle Infobox.
For wars or other conflicts, use Template:War Infobox.
For missions, use Template:Mission Infobox.
For general events, use Template:Event Infobox.
Syntax

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 Infobox
|prev = 
|conc = 
|next = 
|name = 
|image = 
|conflict = 
|date = 
|place = 
|result = 
|side1 = 
|side2 = 
|side3 = 
|side4 = 
|commanders1 = 
|commanders2 = 
|commanders3 = 
|commanders4 = 
|forces1 = 
|forces2 = 
|forces3 = 
|forces4 = 
|casual1 = 
|casual2 = 
|casual3 = 
|casual4 = 
|civilian = 
}}

The contents of this page were based partially or completely from a similar at Wookiepedia.