Difference between revisions of "Template:Infobox Scenario"

From The Battle for Wesnoth Wiki
(Experimenting... will be reverted)
(Trying to see if there was a proper version)
Line 21: Line 21:
 
{{{belligerents 1|Side 1}}}
 
{{{belligerents 1|Side 1}}}
 
{{#if: {{{belligerents 2|}}} | <td style="{{#if: {{{belligerents 3|}}} | border-style: dotted; border-width: 0 1px 0 0; | }} width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;">
 
{{#if: {{{belligerents 2|}}} | <td style="{{#if: {{{belligerents 3|}}} | border-style: dotted; border-width: 0 1px 0 0; | }} width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;">
{{{belligerents 2|}}}</td> | }}
+
{{{belligerents 2|}}}</td>}}
{{#if: {{{belligerents 3|}}} | <td style="width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;">
+
{{#if: {{{belligerents 3|}}} | <td style="{{#if: {{{belligerents 3|}}} | border-style: dotted; border-width: 0 1px 0 0; | }} width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;">
 
{{{belligerents 3|}}}</td>}}
 
{{{belligerents 3|}}}</td>}}
 +
{{#if: {{{belligerents 4|}}} | <td style="width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;">
 +
{{{belligerents 4|}}}</td>}}
 
|-
 
|-
 
| colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" style="text-align:center; background:#F2DEB6;" | '''Leaders'''
 
| colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" style="text-align:center; background:#F2DEB6;" | '''Leaders'''
Line 31: Line 33:
 
{{#if: {{{belligerents 2|}}} | <td style="{{#if: {{{belligerents 3|}}} | border-style: dotted; border-width: 0 1px 0 0; | }} width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;">
 
{{#if: {{{belligerents 2|}}} | <td style="{{#if: {{{belligerents 3|}}} | border-style: dotted; border-width: 0 1px 0 0; | }} width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;">
 
{{{leaders 2|}}}</td> | }}
 
{{{leaders 2|}}}</td> | }}
{{#if:{{{belligerents 3|}}}|<td style="width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;">
+
{{#if: {{{belligerents 3|}}} | <td style="{{#if: {{{belligerents 4|}}} | border-style: dotted; border-width: 0 1px 0 0; | }} width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;">
{{{leaders 3|}}}</td>}}
+
{{{leaders 3|}}}</td> | }}
 +
{{#if:{{{belligerents 4|}}}|<td style="width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;">
 +
{{{leaders 4|}}}</td>}}
 
|-
 
|-
 
{{#if:{{{prev|}}}|<tr><td colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" style="text-align:center;"><b>← [[{{{prev|Previous scenario}}}]]{{#if:{{{prev 2|}}}|/[[{{{prev 2|}}}]]|}}</b></td></tr>}}
 
{{#if:{{{prev|}}}|<tr><td colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" style="text-align:center;"><b>← [[{{{prev|Previous scenario}}}]]{{#if:{{{prev 2|}}}|/[[{{{prev 2|}}}]]|}}</b></td></tr>}}

Revision as of 05:22, 20 July 2019

Campaign
Scenario
Result:
Belligerents

Side 1


Leaders

Side 1


This template produces an infobox with scenario details.

Parameters

name denotes the name of the scenario.

campaign denotes the name of the name of the campaign in which the scenario is found.

type denotes what type of scenario it is. If set, can take value of interlude or epilogue. If no value is set, assumes it is a normal scenario.

location denotes the location of the scenario.

result denotes a set of bullet points describing the outcome of the scenario.

belligerents 1 denotes the names of the human-controlled side's allied factions for the majority of the scenario.

belligerents 2 denotes the names of the primary enemy ai-controlled side's allied factions for the majority of the scenario.

leaders 1 denotes the leader(s) of each of the factions for the human-controlled sides. Note that leaders who died should have their bullet point appended with " †", whereas leaders who may have died should have their bullet point appended with " ?".

leaders 2 denotes the leader(s) of each of the factions for the enemy ai-controlled sides. Note that leaders who died should have their bullet point appended with " †", whereas leaders who may have died should have their bullet point appended with " ?".

prev denotes the link to the previous scenario in the campaign.

prev 2 denotes the second possible link to a scenario which precedes the current scenario.

subscenario denotes a subscenario of the scenario. An example would be The Ka'lian (scenario) containing Lizard Beach as a subscenario. subscenario 2, subscenario 3, and subscenario 4 denote the second, third, and fourth subscenarios.

next denotes the link to the next scenario in the campaign.

next 2 denotes the second possible link to a scenario which follows the current scenario.

Usage

{{Infobox Scenario
|name=A Summer of Storms
|campaign=The Rise of Wesnoth
|location=[[Stormvale]], [[Green Isle]]
|result=Wesfolk forced out of Stormvale.
|belligerents 1=Kingdom of Stormvale
* [https://units.wesnoth.org/1.14/mainline/en_US/Bowman.html Bowmen]
* [https://units.wesnoth.org/1.14/mainline/en_US/Horseman.html Horsemen]
* [https://units.wesnoth.org/1.14/mainline/en_US/Mage.html Magi]
* [https://units.wesnoth.org/1.14/mainline/en_US/Spearman.html Spearmen]
|belligerents 2=Wesfolk
* [https://units.wesnoth.org/1.14/mainline/en_US/Footpad.html Footpads]
* [https://units.wesnoth.org/1.14/mainline/en_US/Poacher.html Poachers]
* [https://units.wesnoth.org/1.14/mainline/en_US/Thief.html Thieves]
* [https://units.wesnoth.org/1.14/mainline/en_US/Thug.html Thugs]
|leaders 1=
* [[Haldric I|Prince Haldric]]
* [[Eldaric IV|Prince Eldaric]]
|leaders 2=
* [[Jessene|Wesfolk Leader]]
|next=The Fall
}}
The Rise of Wesnoth scenario
A Summer of Storms
Location:

Stormvale, Green Isle

Result:

Wesfolk forced out of Stormvale.

Belligerents

Kingdom of Stormvale

Wesfolk

Leaders
The Fall


{{Infobox Scenario
|name=Fictional Scenario
|campaign=The Rise of Wesnoth
|location=[[Grey Woods]], [[Great Continent]]
|result=
* The rebel elves are completely destroyed.
* The undead threat gains a foothold in Wesmere Forest.
* [[Asheviere|Queen Asheviere]] is forced out of Wesmere forest.
|belligerents 1=Ka'lian elves
* [https://units.wesnoth.org/1.14/mainline/en_US/Elfish%20Fighter.html Elfish Fighters]
* [https://units.wesnoth.org/1.14/mainline/en_US/Elfish%20Archer.html Elfish Archers]
|belligerents 2=Undead
* [https://units.wesnoth.org/1.14/mainline/en_US/Walking%20Corpse.html Walking Corpses]
|belligerents 3=Rebel elves
* [https://units.wesnoth.org/1.14/mainline/en_US/Elfish%20Fighter.html Elfish Fighters]
* [https://units.wesnoth.org/1.14/mainline/en_US/Elfish%20Archer.html Elfish Archers]
|belligerents 4=Kingdom of Wesnoth
* [https://units.wesnoth.org/1.14/mainline/en_US/Knight.html Knights]
* [https://units.wesnoth.org/1.14/mainline/en_US/Longbowman.html Longbowmen]
* [https://units.wesnoth.org/1.14/mainline/en_US/Swordsman.html Swordsmen]
* [https://units.wesnoth.org/1.14/mainline/en_US/Pikeman.html Pikemen]
|leaders 1=
* [[Kalenz|High Lord Kalenz]]
|leaders 2=
* [[Glani]] †
|leaders 3=
* [[Anuthaesilor]]
|leaders 4=
* [[Asheviere|Queen Asheviere]]
}}
The Rise of Wesnoth scenario
Fictional Scenario
Location:

Grey Woods, Great Continent

Result:
  • The rebel elves are completely destroyed.
  • The undead threat gains a foothold in Wesmere Forest.
  • Queen Asheviere is forced out of Wesmere forest.
Belligerents

Ka'lian elves

Undead

Rebel elves

Kingdom of Wesnoth

Leaders
The Fall
Close Encounter • Borderlands • Lure of the Crypt • Ambushed
A Harrowing Escape