Template:Dialogue Branch: Difference between revisions
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> | ||
< | == 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}}}
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
- 1k (1000): Hello!
- Byron (7): How are you?
- 1k (1000) Option: I'm fine. [ ]
- Byron (7): That's good.
- Melville (142): I'm glad.
- 1k (1000) Option: Not great. [ ]
- Melville (142): Why is that?
- 1k (1000) Option: I'm tired. [ ]
- Melville (142): Try Sleep Mode.
- 1k (1000) Option: I don't know. [ ]
- Melville (142): Hm...
- Byron (7): Maybe you're tired?
Used in a bulleted list to auto-collapse a further indented sublist.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | text 1 | no description | String | required |