Difference between revisions of "Template:Infobox Scenario"
m (Fixing formatting) |
(Adding location parameter) |
||
(24 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><div class="thumb tright"> | <onlyinclude><div class="thumb tright"> | ||
<div> | <div> | ||
− | {| class="infobox bordered" style="width: {{#if:{{{belligerents 3|}}}| | + | {| class="infobox bordered" style="width: {{#if: {{{belligerents 2|}}} | {{#expr: 12.5 * {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}em | 25em}}; text-align: left; font-size: 100%;" |
|- | |- | ||
− | ! colspan="{{ | + | ! colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" style="text-align:center; background:#F2DEB6;" | {{#if:{{{campaign|}}}|'''[[{{{campaign|Campaign}}}]] {{#switch: {{{type|}}} | interlude=interlude | epilogue=epilogue | #default=scenario }}'''|'''Campaign'''}} |
|- | |- | ||
− | | colspan="{{ | + | | colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" style="text-align:center; font-size: large;" | '''{{{name|Scenario}}}''' |
|- | |- | ||
− | | colspan="{{ | + | | colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" | |
{| | {| | ||
+ | |- style="vertical-align:top;" | ||
+ | ! Location: | ||
+ | | | ||
+ | {{{location|}}} | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
! Result: | ! Result: | ||
Line 16: | Line 20: | ||
|} | |} | ||
|- | |- | ||
− | | colspan="{{ | + | | colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" style="text-align:center; background:#F2DEB6;" | '''Belligerents''' |
|- style="vertical-align:top" | |- style="vertical-align:top" | ||
− | | style="border-style: dotted; border-width: 0 1px 0 0; width: | + | | style="{{#if: {{{belligerents 2|}}} | border-style: dotted; border-width: 0 1px 0 0; | }} width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;" | |
{{{belligerents 1|Side 1}}} | {{{belligerents 1|Side 1}}} | ||
− | {{#if:{{{belligerents | + | {{#if: {{{belligerents 2|}}} | <td style="{{#if: {{{belligerents 3|}}} | border-style: dotted; border-width: 0 1px 0 0; | }} width: {{#expr: 100 / {{Count | MANDATORY | MANDATORY | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;"> |
− | {{#if:{{{belligerents | + | {{{belligerents 2|}}}</td>}} |
+ | {{#if: {{{belligerents 3|}}} | <td style="{{#if: {{{belligerents 4|}}} | border-style: dotted; border-width: 0 1px 0 0; | }} width: {{#expr: 100 / {{Count | MANDATORY | MANDATORY | MANDATORY | {{{belligerents 4|}}} }} }}%;"> | ||
+ | {{{belligerents 3|}}}</td>}}{{#if: {{{belligerents 4|}}} | <td style="width: {{#expr: 100 / {{Count | MANDATORY | MANDATORY | MANDATORY | MANDATORY }} }}%;"> | ||
+ | {{{belligerents 4|}}}</td>}} | ||
|- | |- | ||
− | | colspan="{{ | + | | colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" style="text-align:center; background:#F2DEB6;" | '''Leaders''' |
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
− | | style="border-style: dotted; border-width: 0 1px 0 0; width: | + | | style="{{#if: {{{belligerents 2|}}} | border-style: dotted; border-width: 0 1px 0 0; | }} width: {{#expr: 100 / {{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }} }}%;" | |
{{{leaders 1|Side 1}}} | {{{leaders 1|Side 1}}} | ||
− | {{#if:{{{belligerents | + | {{#if: {{{belligerents 2|}}} | <td style="{{#if: {{{belligerents 3|}}} | border-style: dotted; border-width: 0 1px 0 0; | }};"> |
− | {{{leaders 2| | + | {{{leaders 2|}}}</td>}} |
− | {{{leaders | + | {{#if: {{{belligerents 3|}}} | <td style="{{#if: {{{belligerents 4|}}} | border-style: dotted; border-width: 0 1px 0 0; | }};"> |
− | {{#if:{{{belligerents | + | {{{leaders 3|}}}</td>}}{{#if: {{{belligerents 4|}}} | <td><ul> |
− | {{{leaders | + | {{{leaders 4|}}}</ul></td>}} |
|- | |- | ||
− | {{#if:{{{prev|}}}|<tr><td colspan="{{ | + | {{#if:{{{prev|}}}|<tr><td colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" style="text-align:center;"><b>← {{{prev|}}}{{#if:{{{prev 2|}}}|/{{{prev 2|}}}|}}</b></td></tr>}} |
− | {{#if:{{{ | + | {{#if: {{{subscenario|}}} | <tr><td colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" style="text-align:center;"><span style="font-size: 90%;">'''{{{subscenario|}}}'''{{#if: {{{subscenario 2|}}} | • '''{{{subscenario 2|}}}''' }}{{#if: {{{subscenario 3|}}} | • '''{{{subscenario 3|}}}''' }}{{#if: {{{subscenario 4|}}} | • '''{{{subscenario 4|}}}''' }}</span></td></tr> }}{{#if:{{{next|}}}|<tr><td colspan="{{Count | MANDATORY | {{{belligerents 2|}}} | {{{belligerents 3|}}} | {{{belligerents 4|}}} }}" style="text-align:center;"><b>{{{next|}}}{{#if:{{{next 2|}}}|/{{{next 2|}}}|}} →</b></td></tr>}} |
|} | |} | ||
</div> | </div> |
Latest revision as of 09:38, 14 August 2019
Campaign | ||||
---|---|---|---|---|
Scenario | ||||
| ||||
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 | |||||
| |||||
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 | |||||||
| |||||||
Belligerents | |||||||
Ka'lian elves |
Undead |
Rebel elves |
Kingdom of Wesnoth |
||||
Leaders | |||||||
|
|||||||
← The Fall | |||||||
Close Encounter • Borderlands • Lure of the Crypt • Ambushed | |||||||
A Harrowing Escape → |