Template:Quote
This template uses TemplateStyles: |
This template uses block elements, e.g. This template applies the class(es) See H:DIVSPAN for details. |
Usage
editThis template is for formatting a quotation. The second and third parameters are used for the cited author and work. They should not be used if the quotation has different formatting to the one provided.
The default style is an extra margin on the left and right sides, but this can be set on a per-work basis with Index CSS.
The split templates {{quote/s}} and {{quote/e}} are available for spanning page breaks. The citation parameters are not available in this case.
Parameters
edit- 1: the quoted text
- 2: a citation author, which comes after the quote (not available for the /s, /e split version)
- 3: a citation work, which comes after the author (not available for the /s, /e split version)
- class: extra CSS classes (
wst-quote
is always applied in addition). You can target these classes with Index CSS. - align: text alignment of the content (e.g.
center
). - style: extra CSS style to apply to the quoted text. Do not use quotes, the template supplies them.
Example
edit{{lorem ipsum}} {{quote|'''With citation''': {{lorem ipsum}}|Albert Einstein|Life and Works}} {{lorem ipsum}} {{quote|style=color:blue;|'''With CSS''': {{lorem ipsum}}}} {{lorem ipsum}}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
With citation: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
—Albert Einstein, Life and Works
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
With CSS: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
CSS
editTarget the wst-quote
class with CSS to apply styles to this template. You can also specify your own class name with the class parameter (e.g. if the work has multiple quote styles).
A common use case is to remove the default right margin inset:
.wst-quote {
margin-right: 0;
}
See also
edit- Template:Itquote
- Template:Cquote
- Template:Quotation
- {{qhtml}}, for semantically marked up quotations in running text
Insert a block of quoted text
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | The quoted content | Content | required |
class | class | Additional classes for targeting CSS
| Line | optional |
align | align | Text alignment
| String | optional |
style | style | Additional CSS styling | Line | optional |
2 | 2 | Citation author (rarely used in actual works) | Unknown | optional |
3 | 3 | The cited work (rarely used in actual works) | Unknown | optional |
width | width | no description | Unknown | optional |