Template:StructuredQuote: Difference between revisions

From Katawa Shoujo Wiki

imported>FANDOMbot
Imported default template
 
imported>FANDOMbot
Updated default StructuredQuote template. See https://community.fandom.com/wiki/Help:Structured_Quotes for more details.
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="border-radius: 10px; margin: 0 auto;" class="cquote"
<blockquote class="pull-quote">
| width="15" valign="top" style="color: var(--theme-link-color); font-size: 36px; font-family: 'Times New Roman', serif; font-weight: bold; text-align: left; padding: 10px;" | “
<div class="pull-quote__text">{{{text|Text...}}}</div>
| style="padding: 4px 2px; font-style: italic;" | {{{text|Text...}}}
<p style="text-align: right"><cite>—{{{speaker|speaker}}}{{#if:{{{receiver|}}}|, to {{{receiver|}}}}}{{#if:{{{attribution|}}}|, {{{attribution|}}}}}{{#if:{{{source|}}}|, {{{source|}}}}}</cite></p>
| width="15" valign="bottom" style="color: var(--theme-link-color); font-size: 36px; font-family: 'Times New Roman', serif; font-weight: bold; text-align: right; padding: 10px;" | ”
</blockquote>
|-
<noinclude>
{{#if: {{{speaker|}}}{{{receiver|}}}{{{attribution|}}}{{{source|}}}| {{!}} colspan="4" style="padding-top: 0.1em" {{!}} {{#if:{{{speaker|}}}|<p style="text-align: right"><cite>—{{{speaker}}}{{#if:{{{receiver|}}}|, to {{{receiver|}}}}}{{#if:{{{attribution|}}}|, {{{attribution|}}}}}{{#if:{{{source|}}}|, {{{source|}}}}}</cite></p>}}
==Description==
A template used for displaying Structured Quotes ( ''<nowiki>{{#SQuote:}}</nowiki>'' ). If you want to unlock the full potential of Structured Quotes, please avoid using this template directly, and consider ''<nowiki>{{#SQuote:}}</nowiki>'' markup instead.
See https://community.fandom.com/wiki/Help:Structured_Quotes for extra information about Structured Quotes.
 
==Syntax==
<pre>
{{StructuredQuote
| text  =
| speaker =
| receiver =
| attribution =
| source  =
}}
}}
|}
</pre>
<noinclude>{{Documentation}}</noinclude>
 
==Samples==
{{StructuredQuote
|text=Size matters not. Look at me. Judge me by my size, do you? Hmm? Hmm. And well you should not. (...)
|speaker=[[w:c:en.starwars:Yoda|Yoda]]
|receiver=[[w:c:en.starwars:Luke_Skywalker|Luke Skywalker]]
|source=[[w:c:en.starwars:Star_Wars:_Episode_V_The_Empire_Strikes_Back|Star Wars: Episode V The Empire Strikes Back]]
}}
<pre>
{{StructuredQuote
|text=Size matters not. Look at me. Judge me by my size, do you? Hmm? Hmm. And well you should not. (...)
|speaker=[[Yoda]]
|receiver=[[Luke Skywalker]]
|source=[[Star Wars: Episode V The Empire Strikes Back]]
}}
</pre>
 
== TemplateData ==
 
<templatedata>
{
"params": {
"text": {
"label": "Quote text",
"description": "quote text",
"type": "content",
"required": true
},
"speaker": {
"label": "Person(s) quoted",
"description": "individual(s) who uttered or wrote the quoted words (wikitext links, comma-separated)",
"type": "content",
"required": true
},
"receiver": {
"label": "Person(s) to whom the quote was spoken",
"description": "person the quote was spoken to (wikitext links, comma-separated)",
"type": "content",
"suggested": true
},
"attribution": {
"label": "Attribution(s)",
"description": "attribution (wikitext links, comma-separated)",
"type": "content",
"suggested": true
},
"source": {
"label": "Quote source",
"description": "place where it was spoken (wikitext link)",
"type": "content",
"suggested": true
}
},
"format": "block"
}
</templatedata>
</noinclude>

Latest revision as of 19:37, 14 November 2024

Text...

—speaker

Description[edit source]

A template used for displaying Structured Quotes ( {{#SQuote:}} ). If you want to unlock the full potential of Structured Quotes, please avoid using this template directly, and consider {{#SQuote:}} markup instead. See https://community.fandom.com/wiki/Help:Structured_Quotes for extra information about Structured Quotes.

Syntax[edit source]

{{StructuredQuote
| text   =
| speaker =
| receiver =
| attribution =
| source  =
}}

Samples[edit source]

Size matters not. Look at me. Judge me by my size, do you? Hmm? Hmm. And well you should not. (...)

Yoda, to Luke Skywalker, Star Wars: Episode V The Empire Strikes Back

{{StructuredQuote
|text=Size matters not. Look at me. Judge me by my size, do you? Hmm? Hmm. And well you should not. (...)
|speaker=[[Yoda]]
|receiver=[[Luke Skywalker]]
|source=[[Star Wars: Episode V The Empire Strikes Back]]
}}

TemplateData[edit source]

No description.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Quote texttext

quote text

Contentrequired
Person(s) quotedspeaker

individual(s) who uttered or wrote the quoted words (wikitext links, comma-separated)

Contentrequired
Person(s) to whom the quote was spokenreceiver

person the quote was spoken to (wikitext links, comma-separated)

Contentsuggested
Attribution(s)attribution

attribution (wikitext links, comma-separated)

Contentsuggested
Quote sourcesource

place where it was spoken (wikitext link)

Contentsuggested