Difference between revisions of "Template:Plot branch"

From The Battle for Wesnoth Wiki
(Creating template)
 
m (Adding documentation)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<onlyinclude>
 
<onlyinclude>
{| class="toccolours" style="background:#F8EAD1; margin: 0.5em auto; text-align: center"
+
{| class="toccolours" style="background:#F8EAD1; margin: 0.5em auto"
! style="background:#F2DEB6; border:1px #E4BC7B solid; width:90%" |https://raw.githubusercontent.com/wesnoth/wesnoth/master/data/core/images/scenery/signpost.png Plot branch : {{{branch text|}}}
+
! style="background:#F2DEB6; border:1px #E4BC7B solid; width:90%; text-align: center" |https://raw.githubusercontent.com/wesnoth/wesnoth/master/data/core/images/scenery/signpost.png Plot branch : {{{branch text|}}}
 
|-
 
|-
|colspan=1 |
+
| style="border:1px #E4BC7B solid;" | {{{contents|}}}
{{{contents|}}}
+
{{#if:{{{branch text 2|}}}
 +
|<tr><th style="background:#F2DEB6; border:1px #E4BC7B solid; width:90%; text-align: center">https://raw.githubusercontent.com/wesnoth/wesnoth/master/data/core/images/scenery/signpost.png Plot branch : {{{branch text 2}}}</th></tr><tr><td style="border:1px #E4BC7B solid;">
 +
{{{contents 2|}}}</td></tr>}}
 
|}
 
|}
 
</onlyinclude>
 
</onlyinclude>
<noinclude>{{template}}</noinclude>
+
<noinclude>{{Plot branch/doc}}{{Template}}</noinclude>

Latest revision as of 03:53, 4 August 2019

signpost.png Plot branch :

This template creates a set of mutually exclusive events that occur during a campaign in Battle for Wesnoth.

Parameters

branch text denotes the first title for a mutually exclusive event.

contents denotes the first text for a mutually exclusive event.

branch text 2 denotes the second title for a mutually exclusive event. Optional.

contents 2 denotes the second text for a mutually exclusive event. Optional.

Usage

{{Plot branch
|branch text=Konrad went west
|contents=Konrad hurried off to the west with Delfador, risking being abandonend by the elves.
|branch text 2=Konrad went east
|contents 2=Konrad hurried off to the east with Kalenz, risking being attacked by the undead.
}}
signpost.png Plot branch : Konrad went west
Konrad hurried off to the west with Delfador, risking being abandonend by the elves.
signpost.png Plot branch : Konrad went east
Konrad hurried off to the east with Kalenz, risking being attacked by the undead.
This page was last edited on 4 August 2019, at 03:53.