Open main menu
Home
Random
Log in
Settings
About Rhythm Doctor Wiki
Disclaimers
Rhythm Doctor Wiki
Search
Editing
Template:Dialogue/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{documentation subpage}} {{lua|Module:Dialogue}} {{t|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 <code>subst:</code>'d'''. ==Syntax== This is how to use the template: <pre>{{dialogue |short=full |short=full |short=full ... |Character|Speech |Character|Speech |Character|Speech ... |cite = dialogue description }}</pre> 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: <pre>{{dialogue |short=full |short=full |short=full ...</pre> 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 "<code>mood1</code>", "<code>mood2</code>", "<code>mood3</code>", etc., up to "<code>mood10</code>", specify moods for the corresponding line number (e.g. "<code>mood1</code>" specifies line 1). They are placed in a line like this: <pre>... |Character|Speech|mood1=angry |Character|Speech|mood2=quiet |Character|Speech|mood3=ecstatic ...</pre> Positional parameters form the text of the dialogue (i.e. any line not containing an "<code>=</code>" will be construed as part of the dialogue. :;<code>Parameter 1</code> ''(required)'' : Character name speaking :;<code>Parameter 2</code> ''(optional)'' : Line to speak :;<code>Parameter 3</code> ''(optional)'' : Next character :;<code>Parameter 4</code> ''(optional)'' : Next line :;<code>Parameter 5</code> ''(optional)'' : Next character :;<code>Parameter 6</code> ''(optional)'' : Next line :;<code>Parameter 7</code> ''(optional)'' : so on... Note: if any character is called "<code>action</code>" then that line will be construed as an action line. It still counts as a ''line'' nonetheless. To write a dialogue description/source, use <code>cite =</code> ==Examples== Here is an example of a full template usage: <pre>{{dialogue |harry=Harry Enfield |bryan=Bryan Adams |harry|Hello! |mood1=happy |bryan|Oh hello there |mood2=surprised |harry|How are you? |mood3=inquisitive |bryan|Quite fine thank you. |mood4=reserved |harry|Oh that's spiffing. |mood5=spiffed |bryan|It is, isn't it?! |mood6=multo-spiffed |harry|Quite so. |mood7=bored |bryan|Well, I'm off! |mood8=joyous |harry|Ta-ta! |mood9=relieved |bryan|Au revoir! |mood10=sarcastic }}</pre> The above would generate: {{dialogue |harry=Harry Enfield |bryan=Bryan Adams |harry|Hello! |mood1=happy |bryan|Oh hello there |mood2=surprised |harry|How are you? |mood3=inquisitive |bryan|Quite fine thank you. |mood4=reserved |harry|Oh that's spiffing. |mood5=spiffed |bryan|It is, isn't it?! |mood6=multo-spiffed |harry|Quite so. |mood7=bored |bryan|Well, I'm off! |mood8=joyous |harry|Ta-ta! |mood9=relieved |bryan|Au revoir! |mood10=sarcastic }} The below code demonstrates examples of extended use: <pre>{{dialogue |george=Georgie Boy |rachel=Rachel |action|Enter: George and Rachel |george|Good morrow dearest Rachel!|mood2=happy |action|Rachel turns to see him |rachel|Oh, George, it's you! |george|... |rachel|Why won't you say anything?!|mood6=worried |action|Enter: Guards |Guards|We are announcing George's arrest! |rachel|Oh my!|mood9=horrified |action|George is dragged away. }}</pre> The above would generate: {{dialogue |george=Georgie Boy |rachel=Rachel |action|Enter: George and Rachel |george|Good morrow dearest Rachel!|mood2=happy |action|Rachel turns to see him |rachel|Oh, George, it's you! |george|... |rachel|Why won't you say anything?!|mood6=worried |action|Enter: Guards |Guards|We are announcing George's arrest! |rachel|Oh my!|mood9=horrified |action|George is dragged away. }} ===Notes=== You can number, bullet or indent your dialogue: <pre>:{{dialogue|Me|Hello|You|Howdido!}}</pre> :{{dialogue|Me|Hello|You|Howdido!}} <pre>#{{dialogue|Me|Hello|You|Howdido!}} #{{dialogue|Them|Good afternoon|Us|What a load of rubbish!}}</pre> #{{dialogue|Me|Hello|You|Howdido!}} #{{dialogue|Them|Good afternoon|Us|What a load of rubbish!}} <pre>*{{dialogue |angel=Fortitude |angel|I am an angel!|Crowd|We don't believe you!}} *{{dialogue |angel=Fortitude |angel|But I'm being quite serious!|Crowd|Too bad for you then!}}</pre> *{{dialogue |angel=Fortitude |angel|I am an angel!|Crowd|We don't believe you!}} *{{dialogue |angel=Fortitude |angel|But I'm being quite serious!|Crowd|Too bad for you then!}} You will get the odd spacing error (e.g. "Speech<code><nowiki><space></nowiki></code>") if you lay out your dialogue on multiple lines. <includeonly>[[Category:Templates|{{PAGENAME}}]]</includeonly>
Summary:
Please note that all contributions to Rhythm Doctor Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
RDWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Dialogue
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Lua
(
edit
)
Template:Mbox
(
edit
)
Template:Strong
(
edit
)
Template:T
(
edit
)
Template:Template link
(
edit
)
Template:Terminate sentence
(
edit
)
Module:Arguments
(
edit
)
Module:Dialogue
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:No globals
(
edit
)
Module:TableTools
(
edit
)
Module:Yesno
(
edit
)