Template:Dialogue section ID/doc

This template is used to generate an ID for a section created by Dialogue section. It is implemented by Module:Dialogue. It is intended so that users never have to manually construct a dialogue ID, which helps minimize if not nullify damage in case breaking changes to the section ID format become needed. (That means the current format, while considered stable for now, may need to change in the future.)

dlg id is a shortcut for this template.

Parameters

 * contains the NPC name for the dialogue section. If omitted, the template uses the NPC name last specified in a dialogue section on the same page.
 * contains the dialogue name. If omitted, the template uses the dialogue name last specified in a dialogue section on the same page.
 * contains the section ID.

If any of the three parameters could not be retrieved (not specified, or in case of the NPC name and the dialogue name, never used before in a dialogue section), the template errors.

Examples
produces.

To demonstrate the functionality for retrieving previously used values, it is needed to include a dialogue section. 

Now the template can retrieve the NPC name and the dialogue ID from the variables set by the dialogue section template. produces, same as the previous call.