Template:Dialogue: Difference between revisions
Johnrdorazio (talk | contribs) m 1 revision imported |
Johnrdorazio (talk | contribs) No edit summary |
||
Line 10: | Line 10: | ||
//-->{{#if:{{{17|}}}|{{#ifeq:{{{17|}}}|action|<i>[{{{18}}}]</i>|'''{{{{{{17|default}}}|{{{17|Character}}}}}}'''{{#if:{{{mood9|}}}| ''({{{mood9}}})''|}}<nowiki>:</nowiki> {{#if:{{{18|}}}|"{{trim|{{{18}}}}}"|...}}|}}|}}{{#if:{{{19|}}}|<br />|}}<!-- |
//-->{{#if:{{{17|}}}|{{#ifeq:{{{17|}}}|action|<i>[{{{18}}}]</i>|'''{{{{{{17|default}}}|{{{17|Character}}}}}}'''{{#if:{{{mood9|}}}| ''({{{mood9}}})''|}}<nowiki>:</nowiki> {{#if:{{{18|}}}|"{{trim|{{{18}}}}}"|...}}|}}|}}{{#if:{{{19|}}}|<br />|}}<!-- |
||
//-->{{#if:{{{19|}}}|{{#ifeq:{{{19|}}}|action|<i>[{{{20}}}]</i>|'''{{{{{{19|default}}}|{{{19|Character}}}}}}'''{{#if:{{{mood10|}}}| ''({{{mood10}}})''|}}<nowiki>:</nowiki> {{#if:{{{20|}}}|"{{trim|{{{20}}}}}"|...}}|}}|}}{{#if:{{{21|}}}|<br />|}}<!-- |
//-->{{#if:{{{19|}}}|{{#ifeq:{{{19|}}}|action|<i>[{{{20}}}]</i>|'''{{{{{{19|default}}}|{{{19|Character}}}}}}'''{{#if:{{{mood10|}}}| ''({{{mood10}}})''|}}<nowiki>:</nowiki> {{#if:{{{20|}}}|"{{trim|{{{20}}}}}"|...}}|}}|}}{{#if:{{{21|}}}|<br />|}}<!-- |
||
⚫ | |||
//-->{{#if:{{{21|}}}|{{#ifeq:{{{21|}}}|action|<i>[{{{22}}}]</i>|'''{{{{{{21|default}}}|{{{21|Character}}}}}}'''{{#if:{{{mood11|}}}| ''({{{mood11}}})''|}}<nowiki>:</nowiki> {{#if:{{{22|}}}|"{{trim|{{{22}}}}}"|...}}|}}|}}{{#if:{{{23|}}}|<br />|}}<!-- |
|||
//-->{{#if:{{{23|}}}|{{#ifeq:{{{23|}}}|action|<i>[{{{24}}}]</i>|'''{{{{{{23|default}}}|{{{23|Character}}}}}}'''{{#if:{{{mood12|}}}| ''({{{mood12}}})''|}}<nowiki>:</nowiki> {{#if:{{{24|}}}|"{{trim|{{{24}}}}}"|...}}|}}|}}{{#if:{{{25|}}}|<br />|}}<!-- |
|||
//-->{{#if:{{{25|}}}|{{#ifeq:{{{25|}}}|action|<i>[{{{26}}}]</i>|'''{{{{{{25|default}}}|{{{25|Character}}}}}}'''{{#if:{{{mood13|}}}| ''({{{mood13}}})''|}}<nowiki>:</nowiki> {{#if:{{{26|}}}|"{{trim|{{{26}}}}}"|...}}|}}|}}{{#if:{{{27|}}}|<br />|}}<!-- |
|||
//-->{{#if:{{{27|}}}|{{#ifeq:{{{27|}}}|action|<i>[{{{28}}}]</i>|'''{{{{{{27|default}}}|{{{27|Character}}}}}}'''{{#if:{{{mood14|}}}| ''({{{mood14}}})''|}}<nowiki>:</nowiki> {{#if:{{{28|}}}|"{{trim|{{{28}}}}}"|...}}|}}|}}{{#if:{{{29|}}}|<br />|}}<!-- |
|||
//-->{{#if:{{{29|}}}|{{#ifeq:{{{29|}}}|action|<i>[{{{30}}}]</i>|'''{{{{{{29|default}}}|{{{29|Character}}}}}}'''{{#if:{{{mood15|}}}| ''({{{mood15}}})''|}}<nowiki>:</nowiki> {{#if:{{{30|}}}|"{{trim|{{{30}}}}}"|...}}|}}|}}{{#if:{{{31|}}}|<br />|}}<!-- |
|||
//-->{{#if:{{{31|}}}|{{#ifeq:{{{31|}}}|action|<i>[{{{32}}}]</i>|'''{{{{{{31|default}}}|{{{31|Character}}}}}}'''{{#if:{{{mood16|}}}| ''({{{mood16}}})''|}}<nowiki>:</nowiki> {{#if:{{{32|}}}|"{{trim|{{{32}}}}}"|...}}|}}|}}{{#if:{{{33|}}}|<br />|}}<!-- |
|||
//-->{{#if:{{{33|}}}|{{#ifeq:{{{33|}}}|action|<i>[{{{34}}}]</i>|'''{{{{{{33|default}}}|{{{33|Character}}}}}}'''{{#if:{{{mood17|}}}| ''({{{mood17}}})''|}}<nowiki>:</nowiki> {{#if:{{{34|}}}|"{{trim|{{{34}}}}}"|...}}|}}|}}{{#if:{{{35|}}}|<br />|}}<!-- |
|||
//-->{{#if:{{{35|}}}|{{#ifeq:{{{35|}}}|action|<i>[{{{36}}}]</i>|'''{{{{{{35|default}}}|{{{35|Character}}}}}}'''{{#if:{{{mood18|}}}| ''({{{mood18}}})''|}}<nowiki>:</nowiki> {{#if:{{{36|}}}|"{{trim|{{{36}}}}}"|...}}|}}|}}{{#if:{{{37|}}}|<br />|}}<!-- |
|||
//-->{{#if:{{{37|}}}|{{#ifeq:{{{37|}}}|action|<i>[{{{38}}}]</i>|'''{{{{{{37|default}}}|{{{37|Character}}}}}}'''{{#if:{{{mood19|}}}| ''({{{mood19}}})''|}}<nowiki>:</nowiki> {{#if:{{{38|}}}|"{{trim|{{{38}}}}}"|...}}|}}|}}{{#if:{{{39|}}}|<br />|}}<!-- |
|||
//-->{{#if:{{{39|}}}|{{#ifeq:{{{39|}}}|action|<i>[{{{40}}}]</i>|'''{{{{{{39|default}}}|{{{39|Character}}}}}}'''{{#if:{{{mood20|}}}| ''({{{mood20}}})''|}}<nowiki>:</nowiki> {{#if:{{{40|}}}|"{{trim|{{{40}}}}}"|...}}|}}|}}{{#if:{{{41|}}}|<br />|}}<!-- |
|||
⚫ | |||
{{Documentation}} |
{{Documentation}} |
||
<!-- Add cats and interwikis to the /doc subpage, not here! --> |
<!-- Add cats and interwikis to the /doc subpage, not here! --> |
Revision as of 01:04, September 3, 2020
Character: ...
This is a complex template designed to make it easy to write out lines of dialogue. This template cannot be subst:
'd. The template can handle most standard formats of writing dialogue, and can be indented, bulleted or numbered.
{{Dialogue}} facilitates the writing of dialogue in a standard format.
Syntax
This is how to write the template in wikitext onto your article:
{{dialogue |short=full |short=full |short=full ... |Character|Speech |Character|Speech |Character|Speech ... }}
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 "mood1
", "mood2
", "mood3
", etc., up to "mood25
", specify moods for the corresponding line number (e.g. "mood1
" 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.
Parameter 1
(required)- Character name speaking
Parameter 2
(optional)- Line to speak
Parameter 3
(optional)- Next character
Parameter 4
(optional)- Next line
Parameter 5
(optional)- Next character
Parameter 6
(optional)- Next line
Parameter 7
(optional)- so on...
This extends for 25 lines at maximum. After that, unfortunately the template will have to be manually called again from the code.
Note: if any character is called "action
" then that line will be construed as an action line. It still counts as a line nonetheless.
Examples
Here is an example of a full template usage:
{{dialogue |harry=[[wikipedia:Harry Enfield|Harry]] |bryan=[[wikipedia:Bryan Adams|Bryan]] |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 above would generate:
Harry (happy): "Hello!"
Bryan (surprised): "Oh hello there"
Harry (inquisitive): "How are you?"
Bryan (reserved): "Quite fine thank you."
Harry (spiffed): "Oh that's spiffing."
Bryan (multo-spiffed): "It is, isn't it?!"
Harry (bored): "Quite so."
Bryan (joyous): "Well, I'm off!"
Harry (relieved): "Ta-ta!"
Bryan (sarcastic): "Au revoir!"
The below code demonstrates examples of extended use:
{{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. }}
The above would generate:
[Enter: George and Rachel
]
Georgie Boy (happy): "Good morrow dearest Rachel!"
[Rachel turns to see him
]
Rachel: "Oh, George, it's you!"
Georgie Boy: ...
Rachel (worried): "Why won't you say anything?!"
[Enter: Guards
]
Guards: "We are announcing George's arrest!"
Rachel (horrified): "Oh my!"
[George is dragged away.
]
Notes
You can number, bullet or indent your dialogue:
<blockquote>{{dialogue|Me|Hello|You|Howdido!}}</blockquote>
Me: "Hello"
You: "Howdido!"
#{{dialogue|Me|Hello|You|Howdido!}} #{{dialogue|Them|Good afternoon|Us|What a load of rubbish!}}
- Me: "Hello"
You: "Howdido!" - Them: "Good afternoon"
Us: "What a load of rubbish!"
*{{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!}}
- Fortitude: "I am an angel!"
Crowd: "We don't believe you!" - Fortitude: "But I'm being quite serious!"
Crowd: "Too bad for you then!"
You will get the odd spacing error (e.g. "Speech<space>
") if you lay out your dialogue on multiple lines. If you need 11 or more lines, you must split the template up. Otherwise you'll see this:
Line 25: ...