Difference between revisions of "Template:Dialogue"

From The Coppermind
Jump to navigation Jump to search
(Created page with "<div class="quote"> :'''{{{1}}}''': {{#switch:{{{line1|}}}| trans = «''{{{2}}}''»| no = {{{2}}} |"''{{{2}}}''"}} :'''{{{3}}}''': {{#switch:{{{line2|}}}| trans = &l...")
 
Line 19: Line 19:
   
 
==Usage==
 
==Usage==
<code><nowiki>{{Dialogue|speaker1|speaker1 dialogue|speaker2|speaker2 dialogue|..(more speakers and dialogue)..|attr=|audio=|url=|src=}}</nowiki></code>
+
<code><nowiki>{{Dialogue|speaker1|speaker1 dialogue|speaker2|speaker2 dialogue|..(more speakers and dialogue)..|src=}}</nowiki></code>
 
*<tt>|linex=</tt> if this line is translated or you need the italics and the default quotation marks removed, enter <tt>|linex=trans</tt> or <tt>|linex=no</tt>, depending on what you want. <tt>x</tt> is the line number.
 
*<tt>|linex=</tt> if this line is translated or you need the italics and the default quotation marks removed, enter <tt>|linex=trans</tt> or <tt>|linex=no</tt>, depending on what you want. <tt>x</tt> is the line number.
*<tt>|attr=</tt> enter attribution here.
 
*<tt>|audio=</tt> if the dialogue has an audio version, enter the filename here without the "File:" prefix.
 
*<tt>|url=</tt> if the source is a website, enter yes here.
 
 
*<tt>|src=</tt> enter source here; if the source is a website, enter the url here and add yes to the <tt>|url=</tt> parameter.
 
*<tt>|src=</tt> 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.'''
 
'''The template currently supports up to ten speakers.'''
   
 
==Examples==
 
==Examples==
Code: <code><nowiki>{{Dialogue|User 1|Hello.|User 2|Hey.|attr=Two guys|src=Wookieepedia}}</nowiki></code>
+
Code: <code><nowiki>{{Dialogue|User 1|Hello.|User 2|Hey.|attr=Two guys|src=Coppermind:Welcome}}</nowiki></code>
   
 
Result:
 
Result:
{{Dialogue|User 1|Hello.|User 2|Hey.|attr=Two guys|src=Wookieepedia}}
+
{{Dialogue|User 1|Hello.|User 2|Hey.|attr=Two guys|src=Coppermind:Welcome}}
   
Code: <code><nowiki>{{Dialogue|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|attr=Three guys|src=Wookieepedia}}</nowiki></code>
+
Code: <code><nowiki>{{Dialogue|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|attr=Three guys|src=Coppermind:Welcome}}</nowiki></code>
   
 
Result:
 
Result:
{{Dialogue|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|attr=Two guys|src=Wookieepedia}}
+
{{Dialogue|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|attr=Three guys|src=Coppermind:Welcome}}
   
   
Code: <code><nowiki>{{Dialogue|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=Wookieepedia}}</nowiki></code>
+
Code: <code><nowiki>{{Dialogue|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=Coppermind:Welcome}}</nowiki></code>
   
 
Result:
 
Result:
{{Dialogue|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=Wookieepedia}}
+
{{Dialogue|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=Coppermind:Welcome}}
   
 
===Using url as source===
 
===Using url as source===
 
The code is basically the same, but you add a parameter, <tt>|url=yes</tt>, before the src parameter.
 
The code is basically the same, but you add a parameter, <tt>|url=yes</tt>, 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=http://starwars.wikia.com/wiki/Talk:Anakin_Skywalker}}</nowiki></code>
+
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=http://coppermind.net/wiki/Talk:Kaladin}}</nowiki></code>
   
 
Result:
 
Result:
{{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=http://starwars.wikia.com/wiki/Talk:Anakin_Skywalker}}
+
{{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=http://coppermind.net/wiki/Talk:Kaladin}}
 
===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=[[Anakin Skywalker|Darth Vader]], revealing the truth to [[Luke Skywalker]]|audio=IAmYourFather.ogg|src=Star Wars Episode V: The Empire Strikes Back}}</nowiki></code>
 
 
Result:
 
{{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=[[Anakin Skywalker|Darth Vader]], revealing the truth to [[Luke Skywalker]]|audio=IAmYourFather.ogg|src=Star Wars Episode V: The Empire Strikes Back}}
 
   
 
===Using <tt>linex</tt>===
 
===Using <tt>linex</tt>===
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=Wookieepedia}}</nowiki></code>
+
Code: <code><nowiki>{{Dialogue|Alethi 1|Hello.|Veden 1|line2=trans|Hey!|Alethi 2|line3=no|[waves] "''Hey guys.''"|Veden 2|line4=no|&laquo;''Hey!''&raquo; [pounds chest]|attr=Conversation|src=Coppermind:Welcome}}</nowiki></code>
   
 
Result:
 
Result:
{{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=Wookieepedia}}
+
{{Dialogue|Alethi 1|Hello.|Veden 1|line2=trans|Hey!|Alethi 2|line3=no|[waves] "''Hey guys.''"|Veden 2|line4=no|&laquo;''Hey!''&raquo; [pounds chest]|attr=Conversation|src=Coppermind:Welcome}}
   
 
This page was taken from [http://starwars.wikia.com/wiki/Template:Dialogue Wookiepedia]
 
This page was taken from [http://starwars.wikia.com/wiki/Template:Dialogue Wookiepedia]

Revision as of 17:32, 1 February 2014

{{{1}}}: "{{{2}}}"
{{{3}}}: "{{{4}}}"
―{{{attr}}}

Usage

{{Dialogue|speaker1|speaker1 dialogue|speaker2|speaker2 dialogue|..(more speakers and dialogue)..|src=}}

  • |linex= if this line is translated or you need the italics and the default quotation marks removed, enter |linex=trans or |linex=no, depending on what you want. x is the line number.
  • |src= enter source here; if the source is a website, enter the url here and add yes to the |url= parameter.

The template currently supports up to ten speakers.

Examples

Code: {{Dialogue|User 1|Hello.|User 2|Hey.|attr=Two guys|src=Coppermind:Welcome}}

Result:

User 1: "Hello."
User 2: "Hey."
―Two guys[src]

Code: {{Dialogue|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|attr=Three guys|src=Coppermind:Welcome}}

Result:

User 1: "Hello."
User 2: "Hey."
User 3: "Hey guys."
―Three guys[src]


Code: {{Dialogue|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=Coppermind:Welcome}}

Result:

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."
―Four guys with a total of five dialogues[src]

Using url as source

The code is basically the same, but you add a parameter, |url=yes, before the src parameter.

Code: {{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=http://coppermind.net/wiki/Talk:Kaladin}}

Result:

User 1: "Hello."
User 2: "Hey."
User 3: "Hey guys."
User 4: "Wanna hear a joke?"
―Four guys with a total of four dialogues[src]

Using linex

Code: {{Dialogue|Alethi 1|Hello.|Veden 1|line2=trans|Hey!|Alethi 2|line3=no|[waves] "''Hey guys.''"|Veden 2|line4=no|«''Hey!''» [pounds chest]|attr=Conversation|src=Coppermind:Welcome}}

Result:

Alethi 1: "Hello."
Veden 1: «Hey!»
Alethi 2: [waves] "Hey guys."
Veden 2: «Hey!» [pounds chest]
―Conversation[src]

This page was taken from Wookiepedia