|
|
| (20 intermediate revisions by 9 users not shown) |
| Line 1: |
Line 1: |
| <small> | | <infobox> |
| {| id="Battle" class="infobox hidable" style="border-width: 0px; padding: 0px; width: auto;"
| | <group row-items="2"> |
| |
| | <data source="prev"><label>Previous</label></data> |
| {| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="border-width: 0px; width:{{#if:{{{width|}}}|{{{width}}}|{{#if:{{{side4|}}}|350px|{{#if:{{{side3|}}}|300px|300px}}}}}};"
| | <data source="next"><label>Next</label></data> |
| |-
| | <group row-items="2"> |
| {{#if:{{{prev|}}}|
| | <data source="conc"><label>Concurrent</label></data> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Previous
| | </group> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | </group> |
| {{{prev|}}}
| | <title source="name"><default>{{PAGENAME}}</default></title> |
| {{!}}-|}}
| | <image source="image"/> |
| {{#if:{{{conc|}}}|
| | <data source="conflict"><label>Conflict</label></data> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Concurrent
| | <data source="date"><label>Date</label></data> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | <data source="place"><label>Place</label></data> |
| {{{conc|}}}
| | <data source="result"><label>Outcome</label></data> |
| {{!}}-|}}
| | <group layout="horizontal"> |
| {{#if:{{{next|}}}|
| | <header>Combatants</header> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Next
| | <data source="side1"></data> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | <data source="side2"></data> |
| {{{next|}}}
| | <data source="side3"></data> |
| {{!}}-|}}
| | <data source="side4"></data> |
| ! class="infoboxheading" colspan="2" style="background: #7995CA;" | {{{{{{2|name}}}}}}
| | </group> |
| |-
| | <group row-items="4"> |
| | class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|background: #B4C5E3}}" | {{{image|}}}
| | <header>Commanders</header> |
| |-
| | <data source="commanders1"></data> |
| {{#if:{{{conflict|}}}|
| | <data source="commanders2"></data> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Conflict
| | <data source="commanders3"></data> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | <data source="commanders4"></data> |
| {{{conflict|}}}
| | </group> |
| {{!}}-|}}
| | <group row-items="4"> |
| {{#if:{{{date|}}}|
| | <header>Strength</header> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Date
| | <data source="forces1"></data> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | <data source="forces2"></data> |
| {{{date|}}}
| | <data source="forces3"></data> |
| {{!}}-|}}
| | <data source="forces4"></data> |
| {{#if:{{{place|}}}|
| | </group> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Place
| | <group row-items="4"> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | <header>Casualties</header> |
| {{{place|}}}
| | <data source="casual1"></data> |
| {{!}}-|}}
| | <data source="casual2"></data> |
| {{#if:{{{result|}}}|
| | <data source="casual3"></data> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Outcome
| | <data source="casual4"></data> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | </group> |
| {{{result|}}}
| | <group> |
| {{!}}-|}}
| | <header>Civilian casualties</header> |
| | colspan="2" cellpadding="0" cellspacing="0" style="margin:0; padding:0" |
| | <data source="civilian"></data> |
| {| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="border-width: 0px; width:100%"
| | </group> |
| |-
| | </infobox><noinclude>{{Clear}}{{documentation}}</noinclude> |
| {{#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="infoboxcell" style="vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{side1|}}}
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}}}; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{side2|}}}
| |
| {{#if:{{{side3|}}}|
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; width:{{#if:{{{side4|}}}|25%|}}; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{side3|}}}
| |
| {{#if:{{{side4|}}}|
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; width:25%; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{side4|}}}
| |
| |}}|}}
| |
| {{!}}-|}}
| |
| {{#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="infoboxcell" style="vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{commanders1|}}}
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{commanders2|}}}
| |
| {{#if:{{{side3|}}}|
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{commanders3|}}}
| |
| {{#if:{{{side4|}}}|
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{commanders4|}}}
| |
| |}}|}}
| |
| {{!}}-|}}
| |
| {{#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="infoboxcell" style="vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{forces1|}}}
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{forces2|}}}
| |
| {{#if:{{{side3|}}}|
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{forces3|}}}
| |
| {{#if:{{{side4|}}}|
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{forces4|}}}
| |
| |}}|}}
| |
| {{!}}-|}}
| |
| {{#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="infoboxcell" style="vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{casual1|}}}
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{casual2|}}}
| |
| {{#if:{{{side3|}}}|
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{casual3|}}}
| |
| {{#if:{{{side4|}}}|
| |
| {{!}} class="infoboxcell" style="border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{casual4|}}}
| |
| |}}|}}
| |
| {{!}}-|}}
| |
| {{#if:{{{civilian|}}}|
| |
| ! class="infoboxsubheading" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="text-align: center; background: #{{#if:{{{BG2|}}}|{{{BG2}}}|B4C5E3}}" {{!}} '''Civilian casualties'''
| |
| {{!}}-
| |
| {{!}} class="infoboxcell" colspan="{{#if:{{{side4|}}}|4|{{#if:{{{side3|}}}|3|2}}}}" style="text-align: center; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{civilian|}}}
| |
| {{!}}-|}}
| |
| |}
| |
| |}
| |
| <div class="infoboxfooter plainlinks" style="text-align: center; background: #7995CA"><span class="hidable-button"></span>[[{{{srclink|Template:Battle}}}|[Source]]]</div>{{Rb|#7995CA}} | |
| |}</small><!-- 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 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: 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> | |
| | |
| [[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
| |