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

Template:Quote: Difference between revisions

Template page
Joe Beaudoin Jr. (talk | contribs)
No edit summary
Joe Beaudoin Jr. (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template creates a formatted block quotation with optional attribution and source citation. This really works only with single-person quotations, so for excerpts that feature multiple speakers, please use {{tl|dialogue}}.
<noinclude>This template creates a formatted block quotation with optional attribution and source citation. This really works only with single-person quotations, so for excerpts that feature multiple speakers, please use {{tl|dialogue}}.


'''Note:''' This template requires the CSS classes defined in [[MediaWiki:Citizen.css]]. Make sure the quote styling CSS has been added before using this template.
'''Note:''' This template requires the CSS classes defined in [[MediaWiki:Citizen.css]]. Make sure the quote styling CSS has been added before using this template.
Line 52: Line 52:


[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude><includeonly><div class="bsg-quote">{{#if:{{{text|{{{1|}}} }}}|<div class="bsg-quote-text">{{{text|{{{1|}}} }}}</div>|<span class="bsg-quote-error">Error: No quote text provided</span>}}{{#if:{{{sign|{{{2|}}}}}}|<div class="bsg-quote-attribution">—{{{sign|{{{2|}}}}}}{{#if:{{{source|{{{3|}}}}}}|, <span class="bsg-quote-source">{{{source|{{{3|}}} }}}</span>|}}</div>|}}</div></includeonly>
</noinclude><includeonly><div class="bsg-quote">{{#if:{{{context|}}}|{{#ifeq:{{{contextstyle|}}}|h1|<h1>{{{context}}}</h1>|{{#ifeq:{{{contextstyle|}}}|h2|<h2>{{{context}}}</h2>|<div class="bsg-dialogue-context">{{{context}}}</div>}}}}|}}{{#if:{{{text|{{{1|}}} }}}|<div class="bsg-quote-text">{{{text|{{{1|}}} }}}</div>|<span class="bsg-quote-error">Error: No quote text provided</span>}}{{#if:{{{sign|{{{2|}}} }}}|<div class="bsg-quote-attribution">—{{{sign|{{{2|}}}}}}{{#if:{{{source|{{{3|}}}}}}|, <span class="bsg-quote-source">{{{source|{{{3|}}} }}}</span>|}}</div>|}}</div></includeonly><noinclude>
<templatedata>
{
"params": {
"text": {
"label": "Quote Text",
"description": "The quoted material (required)",
"type": "content",
"required": true,
"aliases": [
"1"
]
},
"sign": {
"label": "Attribution",
"description": "The person being quoted (optional)",
"type": "string",
"required": false,
"aliases": [
"2"
]
},
"source": {
"label": "Source",
"description": "The source of the quotation (optional, e.g., 'Miniseries audio commentary' or '[[Act of Contrition]]')",
"type": "string",
"required": false,
"aliases": [
"3"
]
}
},
"description": "Creates a formatted block quotation with optional attribution and source citation using BSG Wiki styling",
"paramOrder": [
"text",
"sign",
"source"
],
"format": "block"
}
</templatedata>
</noinclude>

Latest revision as of 01:35, 24 December 2025

This template creates a formatted block quotation with optional attribution and source citation. This really works only with single-person quotations, so for excerpts that feature multiple speakers, please use {{dialogue}}.

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

Usage

Basic syntax:

{{quote|quoted text|author|source}}

Named parameters (recommended when text contains equals signs):

{{quote|text=quoted text|sign=author name|source=source title}}

Parameters

  • 1 or text: The quoted material (required)
  • 2 or sign: The person being quoted (optional)
  • 3 or source: The source of the quotation (optional)

Examples

Basic quote

{{quote|The Cylons were created by man. They rebelled. They evolved.}}
The Cylons were created by man. They rebelled. They evolved.

Quote with attribution

{{quote|So say we all!|William Adama}}
So say we all!
—William Adama

Full citation

{{quote|There are those who believe that life here began out there.|Commander Adama|Miniseries}}
There are those who believe that life here began out there.
—Commander Adama, Miniseries

Using named parameters

{{quote|text=Sometimes you have to roll the hard six.|sign=[[Kara Thrace]]|source="[[33]]"}}
Sometimes you have to roll the hard six.

Creates a formatted block quotation with optional attribution and source citation using BSG Wiki styling

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Quote Texttext 1

The quoted material (required)

Contentrequired
Attributionsign 2

The person being quoted (optional)

Stringoptional
Sourcesource 3

The source of the quotation (optional, e.g., 'Miniseries audio commentary' or '[[Act of Contrition]]')

Stringoptional