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>D. Cello
No edit summary
imported>Darman36
Moving "Concurrent" to new line
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<small>
<infobox>
{| id="War" 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|}}}|300px}};"
    <data source="next"><label>Next</label></data>
|-
</group>
{{#if:{{{previous|}}}|
<group row-items="2">
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Previous
<data source="conc"><label>Concurrent</label></data>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
</group>
{{{previous|}}}
    <title source="name"><default>{{PAGENAME}}</default></title>
{{!}}-|}}
<image source="image"/>
{{#if:{{{conc|}}}|
<group>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Concurrent
    <data source="begin"><label>Beginning</label></data>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
    <data source="end"><label>End</label></data>
{{{conc|}}}
    <data source="place"><label>Place</label></data>
{{!}}-|}}
    <data source="result"><label>Outcome</label></data>
{{#if:{{{next|}}}|
    <data source="battles"><label>Major battles</label></data>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Next
</group>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
<group row-items="4">
{{{next|}}}
    <header>Combatants</header>
{{!}}-|}}
        <data source="side1"/>
! class="infoboxheading" colspan="2" style="background: #7995CA;" | {{{{{{2|name}}}}}}
        <data source="side2"/>
|-
        <data source="side3"/>
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|background: #B4C5E3}}" | {{{image|}}}
        <data source="side4"/>
|-
</group>
{{#if:{{{begin|}}}|
<group row-items="4">
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Beginning
    <header>Commanders</header>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
        <data source="commanders1"/>
{{{begin|}}}
        <data source="commanders2"/>
{{!}}-|}}
        <data source="commanders3"/>
{{#if:{{{end|}}}|
        <data source="commanders4"/>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} End
</group>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}}
</infobox><noinclude>{{Clear}}{{documentation}}</noinclude>
{{{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: #{{#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}}
|}</small><!-- 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/Template:War similar] at [http://starwars.wikia.com/wiki/Main_Page Wookiepedia.]</small></div>
 
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 16:50, 20 December 2021

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.