Template:War: Difference between revisions

Template page
acp>Taeronys
(Created page with "{| id="War" class="infobox hidable" style="border-width: 0px; padding: 0px; width: auto;" | {| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="bord...")
 
m (1 revision imported)
 
(No difference)

Latest revision as of 03:57, 26 February 2024

{{#if:| {{#if:| {{#if:| {{#if:| {{#if:| {{#if:| {{#if:|
background: #{{{3}}}|}}" | Previous background: #{{{3}}}|}}" |
background: #{{{3}}}|}}" | Concurrent background: #{{{3}}}|}}" |
background: #{{{3}}}|}}" | Next background: #{{{3}}}|}}" |
background: #{{{BG2}}}|background: #74682B4}}" |
background: #{{{3}}}|}}" | Beginning background: #{{{3}}}|}}" |
background: #{{{3}}}|}}" | End background: #{{{3}}}|}}" |
background: #{{{3}}}|}}" | Place: background: #{{{3}}}|}}" |
background: #{{{3}}}|}}" | Outcome: background: #{{{3}}}|}}" |
{{#ifexpr:{{#if:|1|0}} or {{#if:|1|0}} or {{#if:|1|0}} or {{#if:|1|0}}|
{{{BG2}}}|1e5467}}; color:white" | Combatants
1|2}}" style="width:{{#if:|20%|{{#if:|33%|50%}}|}}; vertical-align:top; {{#if:|background: #{{{3}}}|}}" | 1|2}}" style="width:{{#if:|20%|{{#if:|33%|50%}}|}}; border-left:1px solid #999999; vertical-align:top; {{#if:|background: #{{{3}}}|}}" |

{{#if:|

20%|}}; border-left:1px solid #999999; vertical-align:top; {{#if:|background: #{{{3}}}|}}" |
}

{{#if:|

20%|}}; border-left:1px solid #999999; vertical-align:top; {{#if:|background: #{{{3}}}|}}" |
}

{{#if:|

20%|}}; border-left:1px solid #999999; vertical-align:top; {{#if:|background: #{{{3}}}|}}" |

}

|-|}} {{#ifexpr:{{#if:|1|0}} or {{#if:|1|0}} or {{#if:|1|0}} or {{#if:|1|0}}| ! class="infoboxsubheading" colspan="5" style="background: #{{#if:|{{{BG2}}}|1e5467}}; color:white" | Leaders |- | class="infoboxcell" colspan="{{#if:|1|2}}" style="width:{{#if:|20%|{{#if:|33%|50%}}|}}; vertical-align:top; {{#if:|background: #{{{3}}}|}}" |

| class="infoboxcell" colspan="{{#if:|1|2}}" style="width:{{#if:|20%|{{#if:|33%|50%}}|}}; border-left:1px solid #999999; vertical-align:top; {{#if:|background: #{{{3}}}|}}" |

{{#if:| | class="infoboxcell" style="width:{{#if:|20%|}}; border-left:1px solid #999999; vertical-align:top; {{#if:|background: #{{{3}}}|}}" |

|}} {{#if:| | class="infoboxcell" style="width:20%; border-left:1px solid #999999; vertical-align:top; {{#if:|background: #{{{3}}}|}}" |

|}} {{#if:| | class="infoboxcell" style="width:20%; border-left:1px solid #999999; vertical-align:top; {{#if:|background: #{{{3}}}|}}" |

|}} |-|}} |} |-|}} {{#if:| ! class="infoboxsubheading" colspan="4" style="background: #{{#if:|{{{BG2}}}|1e5467}}; color:white" | Battles |- | colspan="2" class="infoboxcell" style="{{#if:|background: #{{{3}}}|}}" |

|-|}} |} |}

This template is used for wars. For Battles, use Template:Battle.

Usage instruction

This template automatically adds and category: Wars to a page on which it is used.

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