Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Dialogue: Difference between revisions

Template page
Created page with "<div class="quote"> :'''{{{1}}}''': {{#switch:{{{line1|}}}| trans = «''{{{2}}}''»| no = {{{2}}} |"{{{2}}}"}} :'''{{{3}}}''': {{#switch:{{{line2|}}}| trans = «''{{{4}}}''»| no = {{{4}}} |"{{{4}}}"}}{{#if:{{{5|}}}| :'''{{{5}}}''': {{#switch:{{{line3|}}}| trans = «''{{{6}}}''»| no = {{{6}}} |"{{{6}}}"}}}}{{#if:{{{7|}}}| :'''{{{7}}}''': {{#switch:{{{line4|}}}| trans = «''{{{8}}}''»| no = {{{8}}} |"{{{8}}}"}}}}{{#if:{{{9|}}}| :'..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div class="quote">
<includeonly><blockquote data-format="dialogue">
:'''{{{1}}}''': {{#switch:{{{line1|}}}| trans = &laquo;''{{{2}}}''&raquo;| no = {{{2}}} |"{{{2}}}"}}
<!-- whitespace as a fix for issue where blockquote adds a <p> to first multiline quote
:'''{{{3}}}''': {{#switch:{{{line2|}}}| trans = &laquo;''{{{4}}}''&raquo;| no = {{{4}}} |"{{{4}}}"}}{{#if:{{{5|}}}|
-->{{#invoke:Dialogue|main}}</blockquote></includeonly><noinclude>{{Documentation}}<!--
:'''{{{5}}}''': {{#switch:{{{line3|}}}| trans = &laquo;''{{{6}}}''&raquo;| no = {{{6}}} |"{{{6}}}"}}}}{{#if:{{{7|}}}|
For a more traditional wikitext version of this template, see
:'''{{{7}}}''': {{#switch:{{{line4|}}}| trans = &laquo;''{{{8}}}''&raquo;| no = {{{8}}} |"{{{8}}}"}}}}{{#if:{{{9|}}}|
https://templates.fandom.com/wiki/Template:Dialogue
:'''{{{9}}}''': {{#switch:{{{line5|}}}| trans = &laquo;''{{{10}}}''&raquo;| no = {{{10}}} |"{{{10}}}"}}}}{{#if:{{{11|}}}|
--></noinclude>
:'''{{{11}}}''': {{#switch:{{{line6|}}}| trans = &laquo;''{{{12}}}''&raquo;| no = {{{12}}} |"{{{12}}}"}}}}{{#if:{{{13|}}}|
:'''{{{13}}}''': {{#switch:{{{line7|}}}| trans = &laquo;''{{{14}}}''&raquo;| no = {{{14}}} |"{{{14}}}"}}}}{{#if:{{{15|}}}|
:'''{{{15}}}''': {{#switch:{{{line8|}}}| trans = &laquo;''{{{16}}}''&raquo;| no = {{{16}}} |"{{{16}}}"}}}}{{#if:{{{17|}}}|
:'''{{{17}}}''': {{#switch:{{{line9|}}}| trans = &laquo;''{{{18}}}''&raquo;| no = {{{18}}} |"{{{18}}}"}}}}{{#if:{{{19|}}}|
:'''{{{19}}}''': {{#switch:{{{line10|}}}| trans = &laquo;''{{{20}}}''&raquo;| no = {{{20}}} |"{{{20}}}"}}}}
:&#8213;{{{attr}}}{{#if:{{{audio|}}}|<span class="noprint">&nbsp;&mdash; [[File:Gnome-speakernotes.png|20px|(audio)]][[Media:{{{audio}}}|Listen]] <small>([[:File:{{{audio}}}|file info]])</small></span>|}}{{#if:{{{src|}}}|{{#if:{{{url|}}}|<sup class="noprint plainlinks">[{{{src|}}} <nowiki>[src]</nowiki>]</sup>|<sup class="noprint">[[{{{src|}}}|[src]]]</sup>}}|<includeonly>[[Category:Unsourced quotes]]</includeonly>}}</div><noinclude>
__NOTOC__
 
==Usage==
<code><nowiki>{{Dialogue|speaker1|speaker1 dialogue|speaker2|speaker2 dialogue|..(more speakers and dialogue)..|attr=|audio=|url=|src=}}</nowiki></code>
*<code>|linex=</code> if this line is translated or you need the italics and the default quotation marks removed, enter <code>|linex=trans</code> or <code>|linex=no</code>, depending on what you want. <code>x</code> is the line number.
*<code>|attr=</code> enter attribution here.
*<code>|audio=</code> if the dialogue has an audio version, enter the filename here without the "File:" prefix.
*<code>|url=</code> if the source is a website, enter yes here.
*<code>|src=</code> enter source here; if the source is a website, enter the url here and add yes to the <tt>|url=</tt> parameter.
'''The template currently supports up to ten speakers.'''
 
==Examples==
Code: <code><nowiki>{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|attr=Two guys|src=Main Page}}</nowiki></code>
 
Result:
{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|attr=Two guys|src=Main Page}}
 
Please note that {{t|Quote}} should be used instead of {{t|Dialogue}} in quotes with two speakers.
 
Code: <code><nowiki>{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|attr=Three guys|src=Main Page}}</nowiki></code>
 
Result:
{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|attr=Two guys|src=Main Page}}
 
 
Code: <code><nowiki>{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|User 4|Hey user 1, could you review my article?|User 1|Sure. I'll get to it ASAP.|attr=Four guys with a total of five dialogues|src=Main Page}}</nowiki></code>
 
Result:
{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|User 4|Hey user 1, could you review my article?|User 1|Sure. I'll get to it ASAP.|attr=Four guys with a total of five dialogues|src=Main Page}}
 
===Using url as source===
The code is basically the same, but you add a parameter, <code>|url=yes</code>, before the src parameter.
 
Code: <code><nowiki>{{Dialogue|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|User 4|Wanna hear a joke?|attr=Four guys with a total of four dialogues|url=yes|src=https://starwars.fandom.com/wiki/Talk:Anakin_Skywalker}}</nowiki></code>
 
Result:
{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|User 4|Wanna hear a joke?|attr=Four guys with a total of four dialogues|url=yes|src=https://starwars.fandom.com/wiki/Talk:Anakin_Skywalker}}
 
===Using audio===
Code: <code><nowiki>{{Dialogue|Vader|Obi-Wan never told you what happened to your father.|Luke|He told me enough. He told me you killed him.|Vader|No. ''I'' am your father.|Luke|No&hellip; no. That's not true. That's impossible!|attr=[[w:c:starwars:Anakin Skywalker|Darth Vader]], revealing the truth to [[w:c:starwars:Luke Skywalker|Luke Skywalker]]|audio=IAmYourFather.ogg|url=yes|src=src=https://starwars.fandom.com/wiki/Star_Wars:_Episode_V_The_Empire_Strikes_Back}}</nowiki></code>
 
Result:
{{Dialogue/wikitext|Vader|Obi-Wan never told you what happened to your father.|Luke|He told me enough. He told me you killed him.|Vader|No. ''I'' am your father.|Luke|No&hellip; no. That's not true. That's impossible!|attr=[[w:c:starwars:Anakin Skywalker|Darth Vader]], revealing the truth to [[w:c:starwars:Luke Skywalker|Luke Skywalker]]|audio=IAmYourFather.ogg|url=yes|src=https://starwars.fandom.com/wiki/Star_Wars:_Episode_V_The_Empire_Strikes_Back}}
 
===Using <code>linex</code>===
Code: <code><nowiki>{{Dialogue|Human 1|Hello.|Wookiee 1|line2=trans|Hey!|Human 2|line3=no|[waves] "''Hey guys.''"|Wookiee 2|line4=no|&laquo;''Rawr!''&raquo; [pounds chest]|attr=Conversation|src=Main Page}}</nowiki></code>
 
Result:
{{Dialogue/wikitext|Human 1|Hello.|Wookiee 1|line2=trans|Hey!|Human 2|line3=no|[waves] "''Hey guys.''"|Wookiee 2|line4=no|''&laquo;Rawr!&raquo;'' [pounds chest]|attr=Conversation|src=Main Page}}
 
==See also==
*[[w:c:starwars:Wookieepedia:Template messages/Quotes]]
 
[[Category:Quotation templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 05:20, 20 March 2026

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.