Template:Quote: Difference between revisions
Template page
More actions
Created page with "<noinclude>This template creates a formatted block quotation with optional attribution and source citation. == Usage == Basic syntax: <pre> {{quote|quoted text|author|source}} </pre> Named parameters (recommended when text contains equals signs): <pre> {{quote|text=quoted text|sign=author name|source=source title}} </pre> == Parameters == * '''1''' or '''text''': The quoted material (required) * '''2''' or '''sign''': The person being quoted (optional) * '''3''' or..." |
m css |
||
| Line 1: | Line 1: | ||
<noinclude>This template creates a formatted block quotation with optional attribution and source citation. | <noinclude>This template creates a formatted block quotation with optional attribution and source citation. | ||
'''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 == | == Usage == | ||
| Line 50: | Line 52: | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude><includeonly>< | </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> | ||
—{{{sign|{{{2}}}}}}{{#if:{{{source|{{{3|}}}}}}|, {{{source|{{{3}}}}}}|}}|}}</ | |||
Revision as of 15:29, 21 December 2025
This template creates a formatted block quotation with optional attribution and source citation.
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.}
—Kara Thrace, "33"}