Template:Dialogue Branch: Difference between revisions
wraps text in span.dialogue-choice |
m Corrected name |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <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 == | |||
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": { | ||
" | "1": { | ||
"label": "Choice", | |||
"label": " | |||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | |||
"2": { | |||
"label": "Response", | |||
"type": "content", | |||
"suggested": true | |||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "1", | ||
"2" | |||
], | ], | ||
"format": " | "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?
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Choice | 1 | no description | String | required |
Response | 2 | no description | Content | suggested |