Welcome to Assassin's Creed Wiki! Log in and join the community.
Template:Battle Infobox: Difference between revisions
Jump to navigation
Jump to search
imported>PhoenixBlitzkrieg Formatting |
imported>Althyk No edit summary |
||
| Line 1: | Line 1: | ||
{| class="infobox" style="float:right; width:{{#if:{{{width|}}}|{{{width}}}|{{#if:{{{side4|}}}|408px|{{#if:{{{side3|}}}|327px|264px}}}}}}; font-size:90%; text-align:left; -moz-border-radius:7px; background:transparent; padding:6px;" cellspacing="0" cellpadding="4" | |||
{| class="infobox" style="float:right | |||
{{#if:{{{prev|}}}| | {{#if:{{{prev|}}}| | ||
{{!}} | {{!}} style="vertical-align:top; padding: 0 0 0 4px; line-height:14px; width:70px !important;" {{!}} | ||
{{!}} | '''''Previous''''' | ||
{{!}} style="vertical-align:top; line-height:14px;" {{!}} | |||
{{{prev|}}} | {{{prev|}}} | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#if:{{{conc|}}}| | {{#if:{{{conc|}}}| | ||
{{!}} | {{!}} style="vertical-align:top; padding: 0 0 0 4px; line-height:14px; width:70px !important;" {{!}} | ||
{{!}} | '''''Concurrent''''' | ||
{{!}} style="vertical-align:top; line-height:14px;" {{!}} | |||
{{{conc|}}} | {{{conc|}}} | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#if:{{{next|}}}| | {{#if:{{{next|}}}| | ||
{{!}} | {{!}} style="vertical-align:top; padding: 0 0 0 4px; line-height:14px; width:70px !important;" {{!}} | ||
{{!}} | '''''Next''''' | ||
{{!}} style="vertical-align:top; line-height:14px;" {{!}} | |||
{{{next|}}} | {{{next|}}} | ||
{{!}}-|}} | {{!}}-|}} | ||
! | {{!}}- | ||
| | ! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="text-align:center; background:#000000;" | {{#if:{{{name|}}}|{{{name}}}|'''{{PAGENAME}}'''}} | ||
| | {{!}}- | ||
{{#if:{{{image|}}}| | |||
{{#if:{{{ | ! style="text-align:center;" colspan="2" {{!}} {{#if:{{{image|}}}|[[File:{{{image}}}{{!}}250px]]}}{{#if:{{{imgdesc|}}}|<br />{{{imgdesc}}}}} | ||
}} | |||
{{!}}- | |||
{{#if:{{{data|}}}| | |||
{{!}}- | {{!}} style="vertical-align:top; padding: 0 0 0 4px; line-height:14px; width:70px !important;" {{!}} | ||
{{#if:{{{ | '''''Date''''' | ||
{{!}} | {{!}} style="vertical-align:top; line-height:14px;" {{!}} | ||
{{{date|}}} | |||
{{{ | {{!}}-}} | ||
{{!}}- | {{#if:{{{end|}}}| | ||
{{!}} style="vertical-align:top; padding: 0 0 0 4px; line-height:14px; width:70px !important;" {{!}} | |||
'''''Ending''''' | |||
{{!}} style="vertical-align:top; line-height:14px;" {{!}} | |||
{{{end|}}} | |||
{{!}}-}} | |||
{{#if:{{{place|}}}| | {{#if:{{{place|}}}| | ||
{{!}} | {{!}} style="vertical-align:top; padding: 0 0 0 4px; line-height:14px; width:70px !important;" {{!}} | ||
{{!}} | '''''Location''''' | ||
{{{place}}} | {{!}} style="vertical-align:top; line-height:14px;" {{!}} | ||
{{!}}- | {{{place|}}} | ||
{{!}}-}} | |||
{{#if:{{{result|}}}| | {{#if:{{{result|}}}| | ||
{{!}} | {{!}} style="vertical-align:top; padding: 0 0 0 4px; line-height:14px; width:70px !important;" {{!}} | ||
{{!}} | '''''Outcome''''' | ||
{{{result}}} | {{!}} style="vertical-align:top; line-height:14px;" {{!}} | ||
{{!}}- | {{{result|}}} | ||
| colspan="2 | {{!}}-}} | ||
{| | | colspan="2" | | ||
{| cellspacing="0" style="padding:0; width:100%; margin:0;" | |||
|- | |- | ||
{{#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: # | {{!}} class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="text-align:center; background:#000000;" {{!}} '''Belligerents''' | ||
{{!}}- | {{!}}- | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{side1|}}} | {{{side1|}}} | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; border-left:1px solid #6B6A6A; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{side2|}}} | {{{side2|}}} | ||
{{#if:{{{side3|}}}| | {{#if:{{{side3|}}}| | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; border-left:1px solid #6B6A6A; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{side3|}}} | {{{side3|}}} | ||
{{#if:{{{side4|}}}| | {{#if:{{{side4|}}}| | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; border-left:1px solid #6B6A6A; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{side4|}}} | {{{side4|}}} | ||
|}}|}} | |}}|}} | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#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: # | {{!}} class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="text-align:center; background:#000000;" {{!}} '''Commanders''' | ||
{{!}}- | {{!}}- | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{commanders1|}}} | {{{commanders1|}}} | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; border-left:1px solid #6B6A6A; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{commanders2|}}} | {{{commanders2|}}} | ||
{{#if:{{{side3|}}}| | {{#if:{{{side3|}}}| | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; border-left:1px solid #6B6A6A; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{commanders3|}}} | {{{commanders3|}}} | ||
{{#if:{{{side4|}}}| | {{#if:{{{side4|}}}| | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; border-left:1px solid #6B6A6A; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{commanders4|}}} | {{{commanders4|}}} | ||
|}}|}} | |}}|}} | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#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: # | {{!}} class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="text-align:center; background:#000000;" {{!}} '''Casualties''' | ||
{{!}}- | {{!}}- | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{casual1|}}} | {{{casual1|}}} | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; border-left:1px solid #6B6A6A; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{casual2|}}} | {{{casual2|}}} | ||
{{#if:{{{side3|}}}| | {{#if:{{{side3|}}}| | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; border-left:1px solid #6B6A6A; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{casual3|}}} | {{{casual3|}}} | ||
{{#if:{{{side4|}}}| | {{#if:{{{side4|}}}| | ||
{{!}} | {{!}} style="text-align:left; padding:0 4px; border-left:1px solid #6B6A6A; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}};" {{!}} | ||
{{{casual4|}}} | {{{casual4|}}} | ||
|}}|}} | |}}|}} | ||
{{!}}-|}} | {{!}}-|}} | ||
{{#if:{{{civilian|}}}| | {{#if:{{{civilian|}}}| | ||
! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="text-align: center; background: # | {{!}} class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="text-align:center; background:#000000;" {{!}} '''Civilian casualties''' | ||
{{!}}- | {{!}}- | ||
{{!}} | {{!}} colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="text-align:left; padding:0 4px; vertical-align:top;" {{!}} | ||
{{{civilian|}}} | {{{civilian|}}} | ||
{{!}}-|}} | {{!}}-|}} | ||
{{!}}- | |||
|} | |} | ||
|} | |}<div class="infoboxfooter plainlinks" style="text-align: center |background:transparent|background: #000000}}"><span class="hidable-button"></span></div> | ||
|}</ | <noinclude>{{clear}}{{documentation}}[[Category:Infobox templates]]</noinclude> | ||
< | |||
[[Category:Infobox templates | |||
Revision as of 01:43, 23 December 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.