Template:Dialogue Branch: Difference between revisions

From The Talos Principle Wiki
wraps text in span.dialogue-choice
 
m Corrected name
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="dialogue-choice">''Option:'' [[1k (1000)]]: {{{text|{{{1}}}}}}</span>
<div class="collapsible-dialogue">[[1k (1000)]] ''Option:'' {{{1}}} [ <span class="collapsible-dialogue-link">Choose</span> ]<div class="collapsible-dialogue-content">{{{2|}}}</div>
<noinclude>
</div><noinclude>
== Usage ==
Example:
<pre>
[[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?
}}
}}
</pre>
produces
<div>
[[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?
}}
}}
</div>
 
<templatedata>
<templatedata>
{
{
"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