Template:Dialogue/doc
From SpiralKnights
Contents
[hide]Usage
To replicate the appearance of in-game dialogue. Please make dialogues on their own pages, like so: Kora Dialogue/Welcome to Haven!, with <noinclude>[[Category:Dialogues]]</noinclude> right after the last }} .
Then link to them as needed like so: {{:Kora Dialogue/Welcome to Haven!}} - this is template friendly. Have not encountered problems yet.
It is optional to hide this dialogue with Template:Dialogue/Showhide.
This way, users can:
- Find dialogues in bulk quickly via Category:Dialogues
- Update a dialogue that appears in more than one spot in the game/wiki right away and consistently.
Code
{{Dialogue |character = |cd = |pd = }}
Parameters
Required
|character
- the name of the character - do not use brackets etc. Just the name.
|cd
- character dialogue.
|pd
- player response to the character dialogue.
Examples
See what links here for examples of this template in action.
- The NPC pages (NAME Dialogue/Location) do not use the optional Template:Dialogue/Showhide, revealing the entire dialogue alone on its own page for easy reading.
- The other mainspace pages do. The dialogue page is inserted into the showhide for optional reading on pages with other information.
Notes
Forum Discussion about this template.
There is probably a more elegant way to code this template regarding the what I call "chunky" number of entries (something instead of cd 1, 2, 3...20), I just don't know quite how to work that in with the flexibility we need. One option is using individual entries per character-player interaction within a space, for example, like the accessory lists. They would just use a different container, not a class=sortable, and slightly tweak the entry behavior. But that also has downsides, and this template simply does it for you. Most conversations are short with a single NPC. With an entry that doesn't use PAGENAME or built in default switches, the NPC's name would need to be entered each time as far as I know - not a huge problem with copypaste, but annoying to do for different conversations with different NPCs, even with easy mass text replace options. This template takes care of that with a single entry, and has flexibility if there's more than one NPC in the dialogue.
- Users so far seem to like the ease of entry of the format.