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
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Joe Beaudoin Jr. (talk | contribs)
m Protected "Template:Dialogue" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template creates a formatted dialogue/conversation box for scripts and multi-line exchanges.
<noinclude>This template creates a formatted dialogue/conversation box for scripts and multi-line exchanges. For excerpts that feature single-person speakers, please use {{tl|quote}}.


'''Note:''' This template requires the CSS classes defined in [[MediaWiki:Citizen.css]]. Make sure the dialogue styling CSS has been added before using this template.
'''Note:''' This template requires the CSS classes defined in [[MediaWiki:Citizen.css]]. Make sure the dialogue styling CSS has been added before using this template.
Line 7: Line 7:
<pre>
<pre>
{{dialogue
{{dialogue
|context=When Lee Adama and Kara Thrace are on Galactica's flight deck:
|context=On Galactica's Flight Deck
|contextstyle=h2
|lines=
|lines=
'''Lee Adama:''' Hey, did you see the note from the XO?<br>
'''Lee Adama:''' Hey, did you see the note from the XO?
'''Kara Thrace:''' I saw it. No way.<br>
 
'''Lee Adama:''' Kara, everyone else--<br>
'''Kara Thrace:''' I saw it. No way.
'''Kara Thrace:''' I don't fly with stims. They fudge with your reflexes, your reaction time.<br>
 
'''Lee Adama:''' Come on, Kara, give me a break. Just--<br>
'''Lee Adama:''' Kara, everyone else--
'''Kara Thrace:''' Why are we arguing about this?<br>
 
'''Lee Adama:''' I have no idea.<br>
'''Kara Thrace:''' I don't fly with stims. They fudge with your reflexes, your reaction time.
'''Kara Thrace:''' Neither do I. You're the CAG, act like one.<br>
|source="[[Act of Contrition]]"
'''Lee Adama:''' What does that mean?<br>
}}
'''Kara Thrace:''' It means that you're still acting like everyone's best friend. We're not friends. You're the CAG. "Be careful out there?" Our job isn't to be careful, it's to shoot frakking Cylons out of the sky. "Good Hunting" is what you say. And one of your idiot pilots is acting like a child and refusing to take her pills. So she either says "Yes, sir" and obeys a direct order, or you smack her in the mouth and drag her sorry ass to sickbay and you make her take those pills.<br>
</pre>
''(Lee and Kara both start laughing)''<br>
 
'''Lee Adama:''' Well, I'm glad I'm not working for you.<br>
Or with H1 style for major scene breaks:
'''Kara Thrace:''' ''(laughing)'' Damn right you're glad.<br>
 
'''Lee Adama:''' So do I have to smack you in the mouth, Lieutenant?<br>
<pre>
'''Kara Thrace:''' No sir, I'll take my pills. ''(takes pills from Lee)'' Perfect.<br>
{{dialogue
'''Lee Adama:''' Carry on.<br>
|context=Act III, Scene 2
'''Kara Thrace:''' ''(half-heartedly saluting)'' Yes, sir.
|contextstyle=h1
|lines=
'''Adama:''' So say we all.
 
'''Crew:''' So say we all!
|source="[[Miniseries]]"
}}
</pre>
 
Or with italic style (default) for descriptive text:
 
<pre>
{{dialogue
|context=When Lee and Kara discuss combat protocols:
|lines=
'''Lee Adama:''' Come on, Kara, give me a break.
 
'''Kara Thrace:''' Why are we arguing about this?
|source="[[Act of Contrition]]"
|source="[[Act of Contrition]]"
}}
}}
Line 32: Line 50:
== Parameters ==
== Parameters ==


* '''context''': Optional scene-setting description (e.g., "When Adama visits Roslin in sickbay:")
* '''context''': Optional scene description or header text (e.g., "On Galactica's Flight Deck" or "When Adama visits Roslin:")
* '''contextstyle''': Style of context - "h1" (larger header style), "h2" (smaller header style), or "italic" (descriptive text). Default: "italic"
* '''lines''': The dialogue content (required) - Use '''bold''' for speaker names, italics for stage directions
* '''lines''': The dialogue content (required) - Use '''bold''' for speaker names, italics for stage directions
* '''source''': Optional episode/source citation
* '''source''': Optional episode/source citation
Line 38: Line 57:
== Formatting Guidelines ==
== Formatting Guidelines ==


* **Speaker names**: Use triple apostrophes for bold: <code>'''Name:'''</code>
* '''Speaker names ''': Use triple apostrophes for bold: <code>'''Name:'''</code>
* **Stage directions/actions**: Use double apostrophes for italics: <code>''(action)''</code>
* '''Stage directions/actions ''': Use double apostrophes for italics: <code>''(action)''</code>
* **Line breaks**: Use <code><br></code> or <code><br /></code> between each line
* '''Line breaks ''': Use a blank line (double carriage return) between each line of dialogue
* **Context**: Describe the scene setting if it helps readers understand the exchange
* '''Context styles ''': Choose how to display the context line:
''' <code>|contextstyle=italic</code> (default) - Gray italic text for descriptive scene setting
''' <code>|contextstyle=h2</code> - Yellow header style for scene locations or minor breaks
''' <code>|contextstyle=h1</code> - Larger yellow header style for major scene breaks or act titles
 
'''Note:''' The template uses MediaWiki's <code>&lt;poem&gt;</code> tag internally, which preserves line breaks. Simply leave a blank line between each dialogue line.


== Examples ==
== Examples ==


=== Simple dialogue ===
=== Simple dialogue ===
<pre>
 
{{dialogue
{{dialogue
|lines=
|lines=
'''Adama:''' So say we all.<br>
'''Adama:''' So say we all.
 
'''Crew:''' So say we all!
'''Crew:''' So say we all!
|source="[[Miniseries]]"
|source="[[Miniseries]]"
}}
}}
</pre>


=== Dialogue with context ===
=== Dialogue with H2 context style ===
<pre>
 
{{dialogue
|context=On Galactica's Flight Deck
|contextstyle=h2
|lines=
'''Roslin:''' You have your pound of flesh.
 
'''Adama:''' This was never personal.
 
'''Roslin:''' It always was.
|source="[[Kobol's Last Gleaming, Part II]]"
}}
 
=== Dialogue with H1 context style ===
 
{{dialogue
|context=Act II - The Confrontation
|contextstyle=h1
|lines=
'''Roslin:''' You have your pound of flesh.
 
'''Adama:''' This was never personal.
 
'''Roslin:''' It always was.
|source="[[Kobol's Last Gleaming, Part II]]"
}}
 
=== Dialogue with italic context (default) ===
 
{{dialogue
{{dialogue
|context=In Colonial One, as Roslin confronts Adama:
|context=In Colonial One, as Roslin confronts Adama:
|lines=
|lines=
'''Roslin:''' You have your pound of flesh.<br>
'''Roslin:''' You have your pound of flesh.
'''Adama:''' This was never personal.<br>
 
'''Adama:''' This was never personal.
 
'''Roslin:''' It always was.
'''Roslin:''' It always was.
|source="[[Kobol's Last Gleaming, Part II]]"
|source="[[Kobol's Last Gleaming, Part II]]"
}}
}}
</pre>


=== Dialogue with stage directions ===
=== Dialogue with stage directions ===
<pre>
 
{{dialogue
{{dialogue
|lines=
|lines=
'''Starbuck:''' What do you hear?<br>
'''Starbuck:''' What do you hear?
'''Kat:''' Nothing but the rain.<br>
 
''(Starbuck smiles)''<br>
'''Kat:''' Nothing but the rain.
 
''(Starbuck smiles)''
 
'''Starbuck:''' Then grab your gun and bring in the cat.
'''Starbuck:''' Then grab your gun and bring in the cat.
|source="[[Miniseries]]"
|source="[[Miniseries]]"
}}
}}
</pre>
 
=== Extended conversation ===
 
{{dialogue
|context=Flight Deck Discussion
|contextstyle=h2
|lines=
'''Lee Adama:''' Hey, did you see the note from the XO?
 
'''Kara Thrace:''' I saw it. No way.
 
'''Lee Adama:''' Kara, everyone else--
 
'''Kara Thrace:''' I don't fly with stims. They fudge with your reflexes, your reaction time.
 
'''Lee Adama:''' Come on, Kara, give me a break. Just--
 
'''Kara Thrace:''' Why are we arguing about this?
 
'''Lee Adama:''' I have no idea.
 
'''Kara Thrace:''' Neither do I. You're the CAG, act like one.
|source="[[Act of Contrition]]"
}}


[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude><includeonly><div class="bsg-dialogue">{{#if:{{{context|}}}|<div class="bsg-dialogue-context">{{{context}}}</div>|}}{{#if:{{{lines|{{{1|}}} }}}|<div class="bsg-dialogue-lines">{{{lines|{{{1|}}} }}}</div>|<span class="bsg-quote-error">Error: No dialogue lines provided</span>}}{{#if:{{{source|{{{2|}}} }}}|<div class="bsg-dialogue-attribution">—<span class="bsg-dialogue-source">{{{source|{{{2|}}} }}}</span></div>|}}</div></includeonly>
</noinclude><includeonly><div class="bsg-dialogue">{{#if:{{{context|}}}|{{#ifeq:{{{contextstyle|}}}|h1|<h1>{{{context}}}</h1>|{{#ifeq:{{{contextstyle|}}}|h2|<h2>{{{context}}}</h2>|<div class="bsg-dialogue-context">{{{context}}}</div>}}}}|}}{{#if:{{{lines|{{{1|}}} }}}|<div class="bsg-dialogue-lines"><poem>{{{lines|{{{1|}}} }}}</poem></div>|<span class="bsg-quote-error">Error: No dialogue lines provided</span>}}{{#if:{{{source|{{{2|}}} }}}|<div class="bsg-dialogue-attribution">—<span class="bsg-dialogue-source">{{{source|{{{2|}}} }}}</span></div>|}}</div></includeonly><noinclude>
<templatedata>
{
"params": {
"context": {
"label": "Context",
"description": "Optional scene description, location, or title (e.g., 'On Galactica's Flight Deck' or 'When Adama visits Roslin:')",
"type": "string",
"required": false
},
"contextstyle": {
"label": "Context Style",
"description": "Display style for the context line",
"type": "string",
"default": "italic",
"suggested": true,
"suggestedvalues": [
"italic",
"h2",
"h1"
]
},
"lines": {
"label": "Dialogue Lines",
"description": "The dialogue content. Use '''bold''' for speaker names and ''italics'' for stage directions. Leave blank lines between each line of dialogue.",
"type": "content",
"required": true,
"aliases": [
"1"
]
},
"source": {
"label": "Source",
"description": "Optional episode or source citation (e.g., '[[Miniseries]]' or '[[Act of Contrition]]')",
"type": "wiki-page-name",
"required": false,
"aliases": [
"2"
]
}
},
"description": "Creates a formatted dialogue/conversation box for scripts and multi-line exchanges with BSG Wiki styling",
"paramOrder": [
"context",
"contextstyle",
"lines",
"source"
],
"format": "block"
}
</templatedata>
</noinclude>

Latest revision as of 17:11, 21 December 2025

This template creates a formatted dialogue/conversation box for scripts and multi-line exchanges. For excerpts that feature single-person speakers, please use {{quote}}.

Note: This template requires the CSS classes defined in MediaWiki:Citizen.css. Make sure the dialogue styling CSS has been added before using this template.

Usage

{{dialogue
|context=On Galactica's Flight Deck
|contextstyle=h2
|lines=
'''Lee Adama:''' Hey, did you see the note from the XO?

'''Kara Thrace:''' I saw it. No way.

'''Lee Adama:''' Kara, everyone else--

'''Kara Thrace:''' I don't fly with stims. They fudge with your reflexes, your reaction time.
|source="[[Act of Contrition]]"
}}

Or with H1 style for major scene breaks:

{{dialogue
|context=Act III, Scene 2
|contextstyle=h1
|lines=
'''Adama:''' So say we all.

'''Crew:''' So say we all!
|source="[[Miniseries]]"
}}

Or with italic style (default) for descriptive text:

{{dialogue
|context=When Lee and Kara discuss combat protocols:
|lines=
'''Lee Adama:''' Come on, Kara, give me a break.

'''Kara Thrace:''' Why are we arguing about this?
|source="[[Act of Contrition]]"
}}

Parameters

  • context: Optional scene description or header text (e.g., "On Galactica's Flight Deck" or "When Adama visits Roslin:")
  • contextstyle: Style of context - "h1" (larger header style), "h2" (smaller header style), or "italic" (descriptive text). Default: "italic"
  • lines: The dialogue content (required) - Use bold for speaker names, italics for stage directions
  • source: Optional episode/source citation

Formatting Guidelines

  • Speaker names : Use triple apostrophes for bold: Name:
  • Stage directions/actions : Use double apostrophes for italics: (action)
  • Line breaks : Use a blank line (double carriage return) between each line of dialogue
  • Context styles : Choose how to display the context line:
 |contextstyle=italic (default) - Gray italic text for descriptive scene setting
 |contextstyle=h2 - Yellow header style for scene locations or minor breaks
 |contextstyle=h1 - Larger yellow header style for major scene breaks or act titles

Note: The template uses MediaWiki's <poem> tag internally, which preserves line breaks. Simply leave a blank line between each dialogue line.

Examples

Simple dialogue

Adama: So say we all.

Crew: So say we all!

Dialogue with H2 context style

On Galactica's Flight Deck

Roslin: You have your pound of flesh.

Adama: This was never personal.

Roslin: It always was.

Dialogue with H1 context style

Act II - The Confrontation

Roslin: You have your pound of flesh.

Adama: This was never personal.

Roslin: It always was.

Dialogue with italic context (default)

In Colonial One, as Roslin confronts Adama:

Roslin: You have your pound of flesh.

Adama: This was never personal.

Roslin: It always was.

Dialogue with stage directions

Starbuck: What do you hear?

Kat: Nothing but the rain.

(Starbuck smiles)

Starbuck: Then grab your gun and bring in the cat.

Extended conversation

Flight Deck Discussion

Lee Adama: Hey, did you see the note from the XO?

Kara Thrace: I saw it. No way.

Lee Adama: Kara, everyone else--

Kara Thrace: I don't fly with stims. They fudge with your reflexes, your reaction time.

Lee Adama: Come on, Kara, give me a break. Just--

Kara Thrace: Why are we arguing about this?

Lee Adama: I have no idea.

Kara Thrace: Neither do I. You're the CAG, act like one.

Creates a formatted dialogue/conversation box for scripts and multi-line exchanges with BSG Wiki styling

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Contextcontext

Optional scene description, location, or title (e.g., 'On Galactica's Flight Deck' or 'When Adama visits Roslin:')

Stringoptional
Context Stylecontextstyle

Display style for the context line

Suggested values
italic h2 h1
Default
italic
Stringsuggested
Dialogue Lineslines 1

The dialogue content. Use '''bold''' for speaker names and ''italics'' for stage directions. Leave blank lines between each line of dialogue.

Contentrequired
Sourcesource 2

Optional episode or source citation (e.g., '[[Miniseries]]' or '[[Act of Contrition]]')

Page nameoptional