Template:Dialogue/doc
This template is used to display a stylized box for interactive dialogues as seen in-game (indicated by the circle with 3 lines).
Typical usage include interactive NPC dialogues, and journals.
NOTE: For non-interactive NPC voiceovers (subtitles indicated by golden names), use the Template:Voiceover. See Template page for usage, documentation, and examples.
Parameters
Parameter | Data type | Values | Notes |
---|---|---|---|
noexpand | boolean | true |
(Optional) To hide Expand button. Useful for one panel of text.
|
expand | boolean | true |
(Optional) To auto-expand dialog boxes without needing to manually click Expand button. Useful for one panel of text. false by default.
|
opening | String | The opening dialogue. | |
option# | String | Conversation option for the player or optional context cues. | |
text# | String | Dialogue text. | |
action# | String | For when a NPC performs an action, such as accepting an important quest item, casting a spell, etc. |
TIP: You can use <br>
for line breaks between dialogue that prompt the player to "Continue" for the next part of the same dialogue.
Example
The following example demonstrates a dialogue with 3 options:
{{dialogue |opening= Greetings, pirate! Which ice cream flavor would you like? |option1= Chocolate |text1= I was looking at that one too. |option2= Vanilla |text2= My favorite! |option3= Fried |action3 = (Voiceover Starts and he scratches his chin for a moment) |text3= Interesting, I think I can accommodate. }}
The above code will display as:
Greetings, pirate! Which ice cream flavor would you like?
Chocolate
I was looking at that one too.
-
-
-
-
Vanilla
My favorite!
-
-
-
-
Fried
(Voiceover Starts and he scratches his chin for a moment)
Interesting, I think I can accommodate.
-
-
-
-
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.