Template:Dialogue Branch: Difference between revisions

From The Talos Principle Wiki
wraps text in span.dialogue-choice
 
Usage
Line 1: Line 1:
<span class="dialogue-choice">''Option:'' [[1k (1000)]]: {{{text|{{{1}}}}}}</span>
<span class="dialogue-choice">''Option:'' [[1k (1000)]]: {{{text|{{{1}}}}}}</span> <span class="dialogue-choice-button" data-collapsed="true">Expand</span><noinclude>
<noinclude>
== Usage ==
In order to function correctly, the entire bulleted list must be wrapped in a div as so:
<pre>
<div class="dialogue-thread">
* [[1k (1000)]]: Hello!
* [[Byron (7)]]: How are you?
* {{Dialogue Choice|I'm fine.}}
** [[Byron (7)]]: That's good.
** [[Melville (142)]]: I'm glad.
* {{Dialogue Choice|Not great.}}
** [[Melville (142)]]: Why is that?
** {{Dialogue Choice|I'm tired.}}
*** [[Melville (142)]]: Try Sleep Mode.
** {{Dialogue Choice|I don't know.}}
*** [[Melville (142)]]: Hm...
*** [[Byron (7)]]: Maybe you're tired?
</div>
</pre>
produces
<div class="dialogue-thread">
* [[1k (1000)]]: Hello!
* [[Byron (7)]]: How are you?
* {{Dialogue Choice|I'm fine.}}
** [[Byron (7)]]: That's good.
** [[Melville (142)]]: I'm glad.
* {{Dialogue Choice|Not great.}}
** [[Melville (142)]]: Why is that?
** {{Dialogue Choice|I'm tired.}}
*** [[Melville (142)]]: Try Sleep Mode.
** {{Dialogue Choice|I don't know.}}
*** [[Melville (142)]]: Hm...
*** [[Byron (7)]]: Maybe you're tired?
</div>
 
<templatedata>
<templatedata>
{
{

Revision as of 08:47, 25 November 2023

Option: 1k (1000): {{{1}}} Expand

Usage

In order to function correctly, the entire bulleted list must be wrapped in a div as so:

<div class="dialogue-thread">
* [[1k (1000)]]: Hello!
* [[Byron (7)]]: How are you?
* {{Dialogue Choice|I'm fine.}}
** [[Byron (7)]]: That's good.
** [[Melville (142)]]: I'm glad.
* {{Dialogue Choice|Not great.}}
** [[Melville (142)]]: Why is that?
** {{Dialogue Choice|I'm tired.}}
*** [[Melville (142)]]: Try Sleep Mode.
** {{Dialogue Choice|I don't know.}}
*** [[Melville (142)]]: Hm...
*** [[Byron (7)]]: Maybe you're tired?
</div>

produces

Used in a bulleted list to auto-collapse a further indented sublist.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Texttext 1

no description

Stringrequired