Fandom


(Examples)
23行: 23行:
   
 
==Examples==
 
==Examples==
Code: <code><nowiki>{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|attr=Two guys|src=Wookieepedia}}</nowiki></code>
+
Code: <code><nowiki>{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|attr=Two guys|src=w:c:starwars:Wookieepedia}}</nowiki></code>
   
 
Result:
 
Result:
{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|attr=Two guys|src=Wookieepedia}}
+
{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|attr=Two guys|src=w:c:starwars:Wookieepedia}}
   
 
Please note that as per [[w:c:starwars:Forum:CT Archive/Clarifying use of quote templates]], {{Tl|Quote}} should be used instead of {{Tl|Dialogue}} in quotes with two speakers.
 
Please note that as per [[w:c:starwars:Forum:CT Archive/Clarifying use of quote templates]], {{Tl|Quote}} should be used instead of {{Tl|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=Wookieepedia}}</nowiki></code>
+
Code: <code><nowiki>{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|attr=Three guys|src=w:c:starwars:Wookieepedia}}</nowiki></code>
   
 
Result:
 
Result:
{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|attr=Two guys|src=Wookieepedia}}
+
{{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|attr=Two guys|src=w:c:starwars:Wookieepedia}}
   
   
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=Wookieepedia}}</nowiki></code>
+
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=w:c:starwars:Wookieepedia}}</nowiki></code>
   
 
Result:
 
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=Wookieepedia}}
+
{{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=w:c:starwars:Wookieepedia}}
   
 
===Using url as source===
 
===Using url as source===
50行: 50行:
   
 
===Using audio===
 
===Using audio===
Code: <code><nowiki>{{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=[[Anakin Skywalker|Darth Vader]], revealing the truth to [[Luke Skywalker]]|audio=IAmYourFather.ogg|src=Star Wars Episode V: The Empire Strikes Back}}</nowiki></code>
+
Code: <code><nowiki>{{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=[[Anakin Skywalker|Darth Vader]], revealing the truth to [[Luke Skywalker]]|audio=IAmYourFather.ogg|src=w:c:starwars:Star Wars Episode V: The Empire Strikes Back}}</nowiki></code>
   
 
Result:
 
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=[[Anakin Skywalker|Darth Vader]], revealing the truth to [[Luke Skywalker]]|audio=IAmYourFather.ogg|src=Star Wars Episode V: The Empire Strikes Back}}
+
{{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|src=w:c:starwars:Star Wars Episode V: The Empire Strikes Back}}
   
 
===Using <tt>linex</tt>===
 
===Using <tt>linex</tt>===

2019年7月11日 (木) 22:27時点における版

{{{1}}}: 「{{{2}}}」
{{{3}}}: 「{{{4}}}」
―{{{attr}}}

Icona traduzione

この記事には翻訳されていないコンテンツがあります。どなたでも翻訳にご協力いただくことができます。

  • 原文へのリンクが指定されていません

Usage

{{Dialogue/wikitext|speaker1|speaker1 dialogue|speaker2|speaker2 dialogue|..(more speakers and dialogue)..|attr=|audio=|url=|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.
  • |attr= enter attribution here.
  • |audio= if the dialogue has an audio version, enter the filename here without the "File:" prefix.
  • |url= if the source is a website, enter yes here.
  • |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/wikitext|User 1|Hello.|User 2|Hey.|attr=Two guys|src=w:c:starwars:Wookieepedia}}

Result:

User 1: 「Hello.」
User 2: 「Hey.」
―Two guys[出典]

Please note that as per w:c:starwars:Forum:CT Archive/Clarifying use of quote templates, {{Quote}} should be used instead of {{Dialogue}} in quotes with two speakers.

Code: {{Dialogue/wikitext|User 1|Hello.|User 2|Hey.|User 3|Hey guys.|attr=Three guys|src=w:c:starwars:Wookieepedia}}

Result:

User 1: 「Hello.」
User 2: 「Hey.」
User 3: 「Hey guys.」
―Two guys[出典]


Code: {{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=w:c:starwars:Wookieepedia}}

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[出典]

Using url as source

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

Code: {{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=http://starwars.wikia.com/wiki/Talk:Anakin_Skywalker}}

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[出典]

Using audio

Code: {{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… no. That's not true. That's impossible!|attr=[[Anakin Skywalker|Darth Vader]], revealing the truth to [[Luke Skywalker]]|audio=IAmYourFather.ogg|src=w:c:starwars:Star Wars Episode V: The Empire Strikes Back}}

Result:

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… no. That's not true. That's impossible!」
Darth Vader, revealing the truth to Luke Skywalker — Gnome-speakernotesListen (file info)[出典]

Using linex

Code: {{Dialogue/wikitext|Human 1|Hello.|Wookiee 1|line2=trans|Hey!|Human 2|line3=no|[waves] "''Hey guys.''"|Wookiee 2|line4=no|«''Rawr!''» [pounds chest]|attr=Conversation|src=Wookieepedia}}

Result:

Human 1: 「Hello.」
Wookiee 1: «Hey!»
Human 2: [waves] "Hey guys."
Wookiee 2: «Rawr!» [pounds chest]
―Conversation[出典]

See also

特に記載のない限り、コミュニティのコンテンツはCC-BY-SA ライセンスの下で利用可能です。