|
|
| (21 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|}}}
| | <templatestyles src="Template:Opening_Quote/styles.css" /> |
| | source = {{{source|}}}
| | <blockquote class="pull-quote opening-quote"> |
| | image = {{{image|}}}
| |
| | imagecaption = {{{imagecaption|}}}
| |
| }}<blockquote class="pull-quote opening-quote">
| |
| {{#if:{{{image|}}}|<div class="pull-quote__image">[[File:{{{image|}}}|left|thumb{{#if:{{{imagecaption|}}}||{{{imagecaption|}}}}}]]</div>}} | | {{#if:{{{image|}}}|<div class="pull-quote__image">[[File:{{{image|}}}|left|thumb{{#if:{{{imagecaption|}}}||{{{imagecaption|}}}}}]]</div>}} |
| <div class="pull-quote__text">{{{text|Text...}}}</div> | | <div class="pull-quote__text">{{{text|Text...}}}</div> |
| <p style="text-align: right"><cite>—{{{1|{{{speaker|Speaker}}}}}}{{#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 |
| The declaration for this template's Cargo table should be placed on [[Template:Opening_Quote/cargo-declaration]]:
| | |speaker=String |
| <pre>
| |
| {{#cargo_declare: _table=OpeningQuotes | |
| | text = Text
| |
| | speaker = String | |
| | attribution = String
| |
| | location = String
| |
| | source = String
| |
| | image = String
| |
| | imagecaption = String
| |
| }}
| |
| </pre>
| |
| | |
| ==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==
| | {{Documentation}} |
| <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> |
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.
|
Template parameters[Edit template data]
This template prefers block formatting of parameters.
| Parameter | Description | Type | Status |
|---|
| Quote text | text | The quoted text.
| Content | required |
|---|
| Speaker(s) | speaker | Comma-separated list of speakers (wikitext links accepted). E.g. [[Fry]], [[Bender]]
| Content | required |
|---|
| Attribution | attribution | Additional attribution context (wikitext links, comma-separated).
| Content | suggested |
|---|
| Location | location | Specific location within the source, e.g. season and episode number.
| Content | suggested |
|---|
| Image | image | Filename of an image to display to the left of the quote (e.g. Repugnant.jpg).
| File | suggested |
|---|
| Image caption | imagecaption | Caption displayed beneath the image.
| String | suggested |
|---|
| Source | source | The work the quote is from (wikitext link).
| Content | suggested |
|---|