|
|
| (13 intermediate revisions by 7 users not shown) |
| Line 1: |
Line 1: |
| {| id="War" class="infobox hidable" style="border-width: 0px; padding: 0px; width: auto;"
| | <infobox> |
| |
| | <group row-items="2"> |
| {| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="border-width: 0px; width:{{#if:{{{width|}}}|{{{width|}}}|300px}};"
| | <data source="prev"><label>Previous</label></data> |
| |-
| | <data source="next"><label>Next</label></data> |
| {{#if:{{{previous|}}}|
| | </group> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Previous
| | <group row-items="2"> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | <data source="conc"><label>Concurrent</label></data> |
| {{{previous|}}}
| | </group> |
| {{!}}-|}}
| | <title source="name"><default>{{PAGENAME}}</default></title> |
| {{#if:{{{conc|}}}|
| | <image source="image"/> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Concurrent
| | <group> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | <data source="begin"><label>Beginning</label></data> |
| {{{conc|}}}
| | <data source="end"><label>End</label></data> |
| {{!}}-|}}
| | <data source="place"><label>Place</label></data> |
| {{#if:{{{next|}}}|
| | <data source="result"><label>Outcome</label></data> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Next
| | <data source="battles"><label>Major battles</label></data> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | </group> |
| {{{next|}}}
| | <group row-items="4"> |
| {{!}}-|}}
| | <header>Combatants</header> |
| ! class="infoboxheading" colspan="2" style="background: #7995CA;" | {{{{{{2|name}}}}}}
| | <data source="side1"/> |
| |-
| | <data source="side2"/> |
| | class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|background: #B4C5E3}}" | {{{image|}}}
| | <data source="side3"/> |
| |-
| | <data source="side4"/> |
| {{#if:{{{begin|}}}|
| | </group> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Beginning
| | <group row-items="4"> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | <header>Commanders</header> |
| {{{begin|}}}
| | <data source="commanders1"/> |
| {{!}}-|}}
| | <data source="commanders2"/> |
| {{#if:{{{end|}}}|
| | <data source="commanders3"/> |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} End
| | <data source="commanders4"/> |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| | </group> |
| {{{end|}}}
| | </infobox><noinclude>{{Clear}}{{documentation}}</noinclude> |
| {{!}}-|}}
| |
| {{#if:{{{place|}}}|
| |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Place
| |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{place|}}}
| |
| {{!}}-|}}
| |
| {{#if:{{{result|}}}|
| |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Outcome
| |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{result|}}}
| |
| {{!}}-|}}
| |
| {{#if:{{{battles|}}}|
| |
| {{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Major battles
| |
| {{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{battles|}}}
| |
| {{!}}-|}}
| |
| | colspan="2" cellpadding="0" cellspacing="0" style="margin:0; padding:0" |
| |
| {| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="border-width: 0px; width:100%"
| |
| |-
| |
| {{#ifexpr:{{#if:{{{side1|}}}|1|0}} or {{#if:{{{side2|}}}|1|0}} or {{#if:{{{side3|}}}|1|0}} or {{#if:{{{side4|}}}|1|0}}|
| |
| ! class="infoboxsubheading" colspan="4" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|B4C5E3}}" {{!}} '''Combatants'''
| |
| {{!}}-
| |
| {{!}} class="infoboxcell" colspan="{{#if:{{{side3|}}}|1|2}}" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}|}}; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{side1|}}}
| |
| {{!}} class="infoboxcell" colspan="{{#if:{{{side4|}}}|1|2}}" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}|}}; border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{side2|}}}
| |
| {{#if:{{{side3|}}}|
| |
| {{!}} class="infoboxcell" style="width:{{#if:{{{side4|}}}|25%|}}; border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{side3|}}}
| |
| |}}
| |
| {{#if:{{{side4|}}}|
| |
| {{!}} class="infoboxcell" style="width:25%; border-left:1px solid #999999; vertical-align:top; {{#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="4" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|B4C5E3}}" {{!}} '''Commanders'''
| |
| {{!}}-
| |
| {{!}} class="infoboxcell" colspan="{{#if:{{{side3|}}}|1|2}}" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}|}}; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{commanders1|}}}
| |
| {{!}} class="infoboxcell" colspan="{{#if:{{{side4|}}}|1|2}}" style="width:{{#if:{{{side4|}}}|25%|{{#if:{{{side3|}}}|33%|50%}}|}}; border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{commanders2|}}}
| |
| {{#if:{{{side3|}}}|
| |
| {{!}} class="infoboxcell" style="width:{{#if:{{{side4|}}}|25%|}}; border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{commanders3|}}}
| |
| |}}
| |
| {{#if:{{{side4|}}}|
| |
| {{!}} class="infoboxcell" style="width:25%; border-left:1px solid #999999; vertical-align:top; {{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
| |
| {{{commanders4|}}}
| |
| |}}
| |
| {{!}}-|}}
| |
| |}
| |
| |}
| |
| <div class="infoboxfooter plainlinks" style="text-align: center; background: #7995CA"><span class="hidable-button"></span>[[{{{srclink|Template:War}}}|[Source]]]</div>{{Rb|#7995CA}} | |
| |}<!-- TEMPLATE ENDS HERE. This template cannot be regenerated by source code alone. --><noinclude>{{Eras|sprot}}
| |
| For 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===
| |
| To use this template, paste the following code into the top of the article, filling all relevant fields:
| |
| <pre><nowiki>{{War
| |
| |width=
| |
| |previous=
| |
| |conc=
| |
| |next=
| |
| |name=
| |
| |imageBG=
| |
| |image=
| |
| |begin=
| |
| |end=
| |
| |place=
| |
| |result=
| |
| |battles=
| |
| |BG2=
| |
| |side1=
| |
| |side2=
| |
| |side3=
| |
| |side4=
| |
| |commanders1=
| |
| |commanders2=
| |
| |commanders3=
| |
| |commanders4=}}
| |
| </nowiki></pre>
| |
| | |
| ===Display parameters===
| |
| These additional parameters may also be added to the template:
| |
| *width (defaults to 300px)
| |
| *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/Wookieepedia:Template:War similar] at [http://starwars.wikia.com/wiki/Main_Page Wookiepedia.]</small></div>
| |
| | |
| [[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
| |
| Template documentation follows
|
| Note: the template above may sometimes be partially or fully invisible.
|
| Visit Template:War_Infobox/doc to edit this documentation. (How does this work?)
|
- Description
- For 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
To use this template, paste the following code into the top of the article, filling all relevant fields:
{{War Infobox
|prev =
|conc =
|next =
|name =
|image =
|begin =
|end =
|place =
|result =
|battles =
|side1 =
|side2 =
|side3 =
|side4 =
|commanders1 =
|commanders2 =
|commanders3 =
|commanders4 =
}}
The contents of this page were based partially or completely from a similar at Wookiepedia.