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

Template:Opening Quote: Difference between revisions

Template page
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#cargo_store: _table=OpeningQuotes
<includeonly>
| text        = {{{text|}}}
{{#cargo_store:_table=OpeningQuotes
| speaker     = {{{speaker|}}}
|speaker={{{speaker|{{{1|}}}}}}
| attribution  = {{{attribution|}}}
| location    = {{{location|}}}
| source      = {{{source|}}}
| image        = {{{image|}}}
| imagecaption = {{{imagecaption|}}}
| title        = {{PAGENAME}}
}}
}}
<templatestyles src="Template:Opening_Quote/styles.css" />
<templatestyles src="Template:Opening_Quote/styles.css" />
Line 14: Line 8:
<div class="pull-quote__text">{{{text|Text...}}}</div>
<div class="pull-quote__text">{{{text|Text...}}}</div>
<p style="text-align: right"><cite>{{#if:{{{speaker|{{{1|}}}}}}|— {{{speaker|{{{1}}}}}}}}{{#if:{{{attribution|}}}|, {{{attribution|}}}}}<br/>{{#if:{{{location|}}}|{{{location|}}}<br/>}}{{#if:{{{source|}}}|{{{source|}}}}}</cite></p>
<p style="text-align: right"><cite>{{#if:{{{speaker|{{{1|}}}}}}|— {{{speaker|{{{1}}}}}}}}{{#if:{{{attribution|}}}|, {{{attribution|}}}}}<br/>{{#if:{{{location|}}}|{{{location|}}}<br/>}}{{#if:{{{source|}}}|{{{source|}}}}}</cite></p>
<div style="clear: both;"></div>
</blockquote>
</blockquote>
</includeonly>
<noinclude>
<noinclude>
==Cargo==
{{#cargo_declare:_table=OpeningQuotes
 
|speaker=String
<pre>
{{#cargo_declare: _table=OpeningQuotes
| text        = Text
| speaker     = String
| attribution  = String
| location    = String
| source      = String
| image        = String
| imagecaption = String
| title        = String
}}
}}
</pre>
{{Documentation}}
 
==Description==
A template for displaying an opening pull quote at the top of an episode or chapter article. Built on the same parameters as ''<nowiki>{{StructuredQuote}}</nowiki>''.
 
If you want the full feature set (Cargo storage, image support, dialogue formatting), use ''<nowiki>{{StructuredQuote}}</nowiki>'' or ''<nowiki>{{#SQuote:}}</nowiki>'' directly instead.
 
See https://community.fandom.com/wiki/Help:Structured_Quotes for more information about Structured Quotes.
 
==Syntax==
<pre>
{{Opening_Quote
| text        =
| speaker    = Speaker 1, Speaker 2, ...
| attribution =
| source      =
}}
</pre>
 
==Sample==
{{Opening_Quote
| text        = Fry: How can I live my life if I can't tell good from evil? <br>
Bender: Ah, they're both fine choices whatever floats your boat.
| image = Repugnant.png
| speaker    = [[Fry]], [[Bender]]
| location    = Season 1, Episode 9
| source      = [[Futurama]]
}}
==TemplateData==
<templatedata>
{
"description": "Displays an opening pull quote for an episode or chapter article. For dialogue or advanced features, use {{StructuredQuote}} instead.",
"params": {
"text": {
"label": "Quote text",
"description": "The quoted text.",
"type": "content",
"required": true
},
"speaker": {
"label": "Speaker(s)",
"description": "Comma-separated list of speakers (wikitext links accepted). E.g. [[Fry]], [[Bender]]",
"type": "content",
"required": true
},
"attribution": {
"label": "Attribution",
"description": "Additional attribution context (wikitext links, comma-separated).",
"type": "content",
"suggested": true
},
"location": {
"label": "Location",
"description": "Specific location within the source, e.g. season and episode number.",
"type": "content",
"suggested": true
},
"image": {
"label": "Image",
"description": "Filename of an image to display to the left of the quote (e.g. Repugnant.jpg).",
"type": "wiki-file-name",
"suggested": true
},
"imagecaption": {
"label": "Image caption",
"description": "Caption displayed beneath the image.",
"type": "string",
"suggested": true
},
"source": {
"label": "Source",
"description": "The work the quote is from (wikitext link).",
"type": "content",
"suggested": true
}
},
"format": "block"
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 02:24, 22 March 2026


This template defines the table "OpeningQuotes". This table has not been created yet.

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.

Displays an opening pull quote for an episode or chapter article. For dialogue or advanced features, use {{StructuredQuote}} instead.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Quote texttext

The quoted text.

Contentrequired
Speaker(s)speaker

Comma-separated list of speakers (wikitext links accepted). E.g. [[Fry]], [[Bender]]

Contentrequired
Attributionattribution

Additional attribution context (wikitext links, comma-separated).

Contentsuggested
Locationlocation

Specific location within the source, e.g. season and episode number.

Contentsuggested
Imageimage

Filename of an image to display to the left of the quote (e.g. Repugnant.jpg).

Filesuggested
Image captionimagecaption

Caption displayed beneath the image.

Stringsuggested
Sourcesource

The work the quote is from (wikitext link).

Contentsuggested