Template:Dialogue: Difference between revisions
More actions
No edit summary |
m Protected "Template:Dialogue" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
| (2 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 57: | Line 57: | ||
== Formatting Guidelines == | == Formatting Guidelines == | ||
* | * '''Speaker names ''': Use triple apostrophes for bold: <code>'''Name:'''</code> | ||
* | * '''Stage directions/actions ''': Use double apostrophes for italics: <code>''(action)''</code> | ||
* | * '''Line breaks ''': Use a blank line (double carriage return) between each line of dialogue | ||
* | * '''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><poem></code> tag internally, which preserves line breaks. Simply leave a blank line between each dialogue line. | '''Note:''' The template uses MediaWiki's <code><poem></code> tag internally, which preserves line breaks. Simply leave a blank line between each dialogue line. | ||
| Line 159: | Line 159: | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude><includeonly><div class="bsg-dialogue">{{#if:{{{context|}}}| | </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> | <templatedata> | ||
{ | { | ||
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)
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Context | context | Optional scene description, location, or title (e.g., 'On Galactica's Flight Deck' or 'When Adama visits Roslin:') | String | optional |
| Context Style | contextstyle | Display style for the context line
| String | suggested |
| Dialogue Lines | lines 1 | The dialogue content. Use '''bold''' for speaker names and ''italics'' for stage directions. Leave blank lines between each line of dialogue. | Content | required |
| Source | source 2 | Optional episode or source citation (e.g., '[[Miniseries]]' or '[[Act of Contrition]]') | Page name | optional |