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

Template:War Infobox: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>Zero-ELEC
m removed stuff from wookieepedia
imported>Cyanide3
No edit summary
Line 1: Line 1:
<small>
<infobox>
{| id="War" class="infobox hidable" style="border-width: 0px; padding: 0px; width: auto;"
        <group row-items="3">
|
    <data source="previous"><label>Previous</label></data>
{| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="border-width: 0px; width:{{#if:{{{width|}}}|{{{width|}}}|300px}};"
    <data source="conc"><label>Concurrent</label></data>
|-
    <data source="next"><label>Next</label></data>
{{#if:{{{previous|}}}|
</group>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Previous
    <title source="name"><default>{{PAGENAME}}</default></title>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
<image source="image"/>
{{{previous|}}}
<group>
{{!}}-|}}
    <data source="begin"><label>Beginning</label></data>
{{#if:{{{conc|}}}|
    <data source="end"><label>End</label></data>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Concurrent
    <data source="place"><label>Place</label></data>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
    <data source="result"><label>Outcome</label></data>
{{{conc|}}}
    <data source="battles"><label>Major battles</label></data>
{{!}}-|}}
</group>
{{#if:{{{next|}}}|
<group>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Next
    <header>Combatants</header>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
        <data source="side1"/>
{{{next|}}}
        <data source="side2"/>
{{!}}-|}}
        <data source="side3"/>
! class="infoboxheading" colspan="2" style="background: #7995CA;" | {{{{{{2|name}}}}}}
        <data source="side4"/>
|-
</group>
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|{{#if:B0C4DE|background: #E5E4E2|background: #999999}}}}" | {{{image|}}}
<group>
|-
    <header>Commanders</header>
{{#if:{{{begin|}}}|
        <data source="commanders1"/>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Beginning
        <data source="commanders2"/>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
        <data source="commanders3"/>
{{{begin|}}}
        <data source="commanders4"/>
{{!}}-|}}
</group>
{{#if:{{{end|}}}|
</infobox>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} End
<noinclude>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
{{{end|}}}
{{!}}-|}}
{{#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: #7995CA" {{!}} '''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: #7995CA" {{!}} '''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}}
|}</small><!-- TEMPLATE ENDS HERE. This template cannot be regenerated by source code alone. --><noinclude>
For battles, use [[Template:Battle Infobox|Template:Battle]].
For battles, use [[Template:Battle Infobox|Template:Battle]].



Revision as of 22:30, 7 February 2017

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.

Usage

To use this template, paste the following code into the top of the article, filling all relevant fields:

{{War
|width=
|previous=
|conc=
|next=
|name=
|imageBG=
|image=
|begin=
|end=
|place=
|result=
|battles=
|BG2=
|side1=
|side2=
|side3=
|side4=
|commanders1=
|commanders2=
|commanders3=
|commanders4=}}

Display parameters

These additional parameters may also be added to the template:

  • width (defaults to 300px)
  • imageBG
  • BG2
The contents of this page were based partially or completely from a similar at Wookiepedia.