Global Lua Modules/Dialogue

Dialogue facilitates the writing of dialogue in a standard format. The template can handle most standard formats of writing dialogue, and can be indented, bulleted or numbered. This template cannot be 'd.

This template uses the Lua templating language, and more information can be found on the Global Lua Module page. For a traditional wikitext version of this template, see Dialogue on Templates Wiki.

Syntax
This is how to write the template in wikitext onto your article:

These parameters are explained more fully below.

Parameters
'''Named parameters specify name shortcuts. They are all optional.''' They are placed at the top of the template call, like this:

{{dialogue ...
 * short=full
 * short=full
 * short=full

Name shortcuts apply to your main dialogue text. If you use a shortcut specified here for a character name, then the full name will be replaced for it.

Named parameters of the form " ", " ", " ", etc., up to " ", specify moods for the corresponding line number (e.g. " " specifies line 1). They are placed in a line like this:

... ...
 * Character|Speech|mood1=angry
 * Character|Speech|mood2=quiet
 * Character|Speech|mood3=ecstatic

Positional parameters form the text of the dialogue (i.e. any line not containing an " " will be construed as part of the dialogue.


 * (required) : Character name speaking
 * (optional) : Line to speak
 * (optional) : Next character
 * (optional) : Next line
 * (optional) : Next character
 * (optional) : Next line
 * (optional) : so on...

Note: if any character is called " " then that line will be construed as an action line. It still counts as a line nonetheless.

To write a dialogue description/source, use

Examples
Here is an example of a full template usage:

The above would generate:

The below code demonstrates examples of extended use:

The above would generate: