Template:Dialogue Branch: Difference between revisions

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


Line 37: Line 66:
{
{
"params": {
"params": {
"text": {
"1": {
"aliases": [
"label": "Choice",
"1"
],
"label": "Text",
"type": "string",
"type": "string",
"required": true
"required": true
},
"2": {
"label": "Response",
"type": "content",
"suggested": true
}
}
},
},
"description": "Used in a bulleted list to auto-collapse a further indented sublist.",
"paramOrder": [
"paramOrder": [
"text"
"1",
"2"
],
],
"format": "inline"
"format": "block"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 05:10, 3 December 2023

1k (1000) Option: {{{1}}} [ Choose ]

Usage

Example:

[[1k (1000)]]: Hello!

[[Byron (7)]]: How are you?

{{Dialogue Branch|I'm fine.|

[[Byron (7)]]: That's good.

[[Melville (142)]]: I'm glad.
}}

{{Dialogue Branch|Not great.|

[[Melville (142)]]: Why is that?

{{Dialogue Branch|I'm tired.|

[[Melville (142)]]: Try Sleep Mode.
}}

{{Dialogue Branch|I don't know.|

[[Melville (142)]]: Hm...

[[Byron (7)]]: Maybe you're tired?
}}
}}

produces

1k (1000): Hello!

Byron (7): How are you?

1k (1000) Option: I'm fine. [ Choose ]

Byron (7): That's good.

Melville (142): I'm glad.

1k (1000) Option: Not great. [ Choose ]

Melville (142): Why is that?

1k (1000) Option: I'm tired. [ Choose ]

Melville (142): Try Sleep Mode.

1k (1000) Option: I don't know. [ Choose ]

Melville (142): Hm...

Byron (7): Maybe you're tired?

No description.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Choice1

no description

Stringrequired
Response2

no description

Contentsuggested