మూస:Quote/e
This template uses TemplateStyles: |
This template uses block elements, e.g. This template applies the class(es) See H:DIVSPAN for details. |
Usage
[మార్చు]This 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
[మార్చు]- 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
[మార్చు]{{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 adipiscing 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 adipiscing 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 adipiscing 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 adipiscing 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 adipiscing 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
[మార్చు]Target 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
[మార్చు]- Template:Itquote
- Template:Cquote
- Template:Quotation
- {{qhtml}}, for semantically marked up quotations in running text
Insert a block of quoted text
పరామితి | వివరణ | రకం | స్థితి | |
---|---|---|---|---|
1 | 1 | The quoted content | కంటెంటు | తప్పనిసరి |
class | class | Additional classes for targeting CSS
| లైను | ఐచ్చికం |
align | align | Text alignment
| స్ట్రింగు | ఐచ్చికం |
style | style | Additional CSS styling | లైను | ఐచ్చికం |
2 | 2 | Citation author (rarely used in actual works) | తెలియనిది | ఐచ్చికం |
3 | 3 | The cited work (rarely used in actual works) | తెలియనిది | ఐచ్చికం |