Template:Dialogue/doc
This template formats quest or NPC dialogue in a presentable manner.
Syntax
For the most part, dialogue can be copied and pasted directly from the in-game chat log into this template with no additional formatting. Wikitext can be added for words rendered in italics and for other purposes.
| Example | Output |
|---|---|
{{Dialogue|<nowiki>
Speaker A: Lorem
Speaker B: ''Ipsum''
</nowiki>}}
|
Wrapping the input in a nowiki tag is strongly recommended and will be required in the future. This nowiki tag doesn't actually prevent wikitext in dialogue from being rendered, like a normal nowiki tag would; it is specially handled by the underlying module in order to enable processing of custom syntax on top of normal wikitext.
Speakers
A colon separates the speaker from the rest of a message. By default, each speaker name will be linked to its wiki page. If you want to change the target of the link, or not have it link, use the following:
- Change target of the link:
Target of link@Speaker name in game - No link:
x@Speaker name in game.
| Example | Output |
|---|---|
{{Dialogue|<nowiki>
Alphinaud@Smart Elezen Teenager: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
x@Imposing Sign: Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</nowiki>}}
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Imposing Sign Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. |
Certain speaker names are special and are used to display non-dialogue text such as system messages. These are:
- "System" for system messages that appear in the chat log.
- "Question" for a prompt given when the player has a choice to make.
| Example | Output |
|---|---|
{{Dialogue|<nowiki>
System: This is a system message.
Question: This is a question.
Thancred: This is Thancred.
</nowiki>}}
|
For backwards-compatibility with an old dialogue format the wiki previously used, wikitext bold markers (''') surrounding the speaker section will be discarded.
| Example | Output |
|---|---|
{{Dialogue|<nowiki>
'''Alphinaud''': This works!
'''Alisaie:''' This also works!
</nowiki>}}
|
Dialogue Choices
Use > to denote potential answers to questions. Combine this with a "Question:" line to display the prompt that's shown when the user is selecting. The responses (if present) to each answer will be shown in collapsible boxes that are collapsed by default. Once the entire section with optional responses ends, use --- in its own line to denote the end of the section.
| Example | Output |
|---|---|
{{Dialogue|<nowiki>
Question: What will you say?
> Option A
Alphinaud: Lorem ipsum dolor sit amet
> Option B
Alphinaud: Ut enim ad minim veniam
> Option C (this does not have a unique response)
---
Alphinaud: Duis aute irure dolor
</nowiki>}}
|
Dialogue choices can be nested by using multiple > to signify the level of nesting. Using --- after nested choices "goes down" a single nesting level; use multiple as needed to escape the full stack of nested choices.
| Example | Output |
|---|---|
{{Dialogue|<nowiki>
This is always said
> 1
Response to 1
>> 1.1
Response to 1.1
>> 1.2
Response to 1.2
> 2
Response to 2
>> 2.1
Response to 2.1
>> 2.2
Response to 2.2
---
Response to 2 continued
---
This is always said
</nowiki>}}
|
This is always said 1 Response to 1 1.1 Response to 1.1 1.2 Response to 1.2 2 Response to 2 2.1 Response to 2.1 2.2 Response to 2.2 Response to 2 continued This is always said |
Optional Dialogue
Use -optional start in its own line to denote optional dialogue. When the optional dialogue concludes, write -optional end in its own line.
| Example | Output |
|---|---|
{{Dialogue|<nowiki>
Alphinaud: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Alphinaud: Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Alphinaud: Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
-optional start
Alphinaud: Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-optional end
Alisaie: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</nowiki>}}
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Optional dialogue Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
Cutscenes
Use -cutscene start or -voiced cutscene startin its own line to denote the start of a cutscene. Use -cutscene end in its own line to denote the end of a cutscene.
| Example | Output |
|---|---|
{{Dialogue|<nowiki>
Alphinaud: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-voiced cutscene start
Alphinaud: Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Alphinaud: Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Alisaie: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-cutscene end
Alphinaud: Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</nowiki>}}
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. End of cutscene. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. |
Quest Accepted/Complete
Put -quest accepted or -quest complete in its own line in the appropriate section of the dialogue to display a "Quest Accepted/Complete" image.
| Example | Output |
|---|---|
{{Dialogue|<nowiki>
Alphinaud: Good work. As in tradition, your next quest will begin with speaking to Wuk Lamat.
-quest complete
</nowiki>}}
|
Good work. As in tradition, your next quest will begin with speaking to Wuk Lamat. |