Difference between revisions of "Template:Infobox Conflict"
From The Battle for Wesnoth Wiki
(Creating template - essentially scaled back version of Infobox Campaign) |
(Making leaders optional) |
||
| Line 21: | Line 21: | ||
| | | | ||
{{{belligerents 2|Side 2}}} | {{{belligerents 2|Side 2}}} | ||
| − | | | + | {{#if: {{{leaders 1|}}}{{{leaders 2|}}}|<tr> |
| − | + | <td colspan="2" style="text-align:center; background:#F2DEB6;">'''Leaders'''</td> | |
| − | + | </tr> | |
| − | + | <tr style="vertical-align:top;"> | |
| − | {{{leaders 1|Side 1}}} | + | <td style="border-style: dotted; border-width: 0 1px 0 0; width: 50%">{{{leaders 1|Side 1}}}</td> |
| − | + | <td>{{{leaders 2|Side 2}}}</td> | |
| − | {{{leaders 2|Side 2}}} | + | </tr>}} |
| − | |||
|} | |} | ||
</div> | </div> | ||
Revision as of 05:04, 14 October 2019
| Conflict | |||
| |||
| Belligerents | |||
|
Side 1 |
Side 2 | ||
This template produces an infobox with conflict details.
Parameters
name denotes the name of the conflict.
result denotes a set of bullet points describing the outcome of the conflict.
belligerents 1 denotes the names of the victorious side.
belligerents 2 denotes the names of the defeated side.
leaders 1 denotes the leader(s) of each of the factions for the victorious side.
leaders 2 denotes the leader(s) of each of the factions for the defeated side.
Usage
{{Infobox Conflict
| name=First Wesfolk War
| result=
* Wesfolk forced into more marginal lands.
* The study of magic begins on the Green Isle.
| belligerents 1=
* [[Haldric's people|Prince Haldric's people]]
| belligerents 2=
* [[Wesfolk]]
* [[Lich-Lords]]
}}
| First Wesfolk War | |||
| |||
| Belligerents | |||