The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
⚫ | |||
<noinclude>{{Documentation subpage}}</noinclude> |
|||
⚫ | |||
This template uses the [[w:Help:Lua|Lua templating language]], and more information can be found [[w:c:dev:Global_Lua_Modules/Dialogue|on the Global Lua Module page]]. '''For a traditional wikitext version of this template, see [[w:c:templates:Template:Dialogue/wikitext|Dialogue on Templates Wiki]]'''. |
This template uses the [[w:Help:Lua|Lua templating language]], and more information can be found [[w:c:dev:Global_Lua_Modules/Dialogue|on the Global Lua Module page]]. '''For a traditional wikitext version of this template, see [[w:c:templates:Template:Dialogue/wikitext|Dialogue on Templates Wiki]]'''. |
||
== |
==Syntax== |
||
This is how to write the template in [[w:Help:wikitext|wikitext]] onto your article: |
This is how to write the template in [[w:Help:wikitext|wikitext]] onto your article: |
||
<pre>{{ |
<pre>{{dialogue |
||
|short=full |
|short=full |
||
|short=full |
|short=full |
||
Line 21: | Line 20: | ||
These parameters are explained more fully below. |
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: |
'''Named parameters specify name shortcuts. They are all optional.''' They are placed at the top of the template call, like this: |
||
<pre>{{ |
<pre>{{dialogue |
||
|short=full |
|short=full |
||
|short=full |
|short=full |
||
Line 54: | Line 53: | ||
To write a dialogue description/source, use <code>cite =</code> |
To write a dialogue description/source, use <code>cite =</code> |
||
== |
==Examples== |
||
Here is an example of a full template usage: |
Here is an example of a full template usage: |
||
<pre>{{ |
<pre>{{dialogue |
||
|harry=Harry Enfield |
|harry=Harry Enfield |
||
|bryan=Bryan Adams |
|bryan=Bryan Adams |
||
Line 75: | Line 74: | ||
The above would generate: |
The above would generate: |
||
{{dialogue |
|||
{{Dialogue |
|||
|harry=Harry Enfield |
|harry=Harry Enfield |
||
|bryan=Bryan Adams |
|bryan=Bryan Adams |
||
Line 93: | Line 92: | ||
The below code demonstrates examples of extended use: |
The below code demonstrates examples of extended use: |
||
<pre>{{ |
<pre>{{dialogue |
||
|george=Georgie Boy |
|george=Georgie Boy |
||
|rachel=Rachel |
|rachel=Rachel |
||
Line 111: | Line 110: | ||
The above would generate: |
The above would generate: |
||
{{dialogue |
|||
{{Dialogue |
|||
|george=Georgie Boy |
|george=Georgie Boy |
||
|rachel=Rachel |
|rachel=Rachel |
||
Line 127: | Line 126: | ||
}} |
}} |
||
=== |
===Notes=== |
||
You can number, bullet or indent your dialogue: |
You can number, bullet or indent your dialogue: |
||
<pre>:{{ |
<pre>:{{dialogue|Me|Hello|You|Howdido!}}</pre> |
||
:{{ |
:{{dialogue|Me|Hello|You|Howdido!}} |
||
<pre>#{{ |
<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>*{{ |
<pre>*{{dialogue |
||
|angel=Fortitude |
|angel=Fortitude |
||
|angel|I am an angel!|Crowd|We don't believe you!}} |
|angel|I am an angel!|Crowd|We don't believe you!}} |
||
* |
*{{dialogue |
||
|angel=Fortitude |
|angel=Fortitude |
||
|angel|But I'm being quite serious!|Crowd|Too bad for you then!}}</pre> |
|angel|But I'm being quite serious!|Crowd|Too bad for you then!}}</pre> |
||
* |
*{{dialogue |
||
|angel=Fortitude |
|angel=Fortitude |
||
|angel|I am an angel!|Crowd|We don't believe you!}} |
|angel|I am an angel!|Crowd|We don't believe you!}} |
||
* |
*{{dialogue |
||
|angel=Fortitude |
|angel=Fortitude |
||
|angel|But I'm being quite serious!|Crowd|Too bad for you then!}} |
|angel|But I'm being quite serious!|Crowd|Too bad for you then!}} |
||
Line 156: | Line 156: | ||
You will get the odd spacing error (e.g. "Speech<code><nowiki><space></nowiki></code>") if you lay out your dialogue on multiple lines. |
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:Quote templates]]</includeonly> |
<includeonly>[[Category:Quote templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |