Predefinição:Quote
Essa predefinição utiliza TemplateStylesEN: |
Esta predefinição usa elementos de bloco (e.g. <div> or <p> ).Não deve ser aninhado dentro de um elemento em linha (e.g. |
Usage
editarThis 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
editar- 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
editar{{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
editarTarget 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
editar- Template:Itquote
- Template:Cquote
- Template:Quotation
- {{qhtml}}, for semantically marked up quotations in running text
A documentação acima é transcluída de Predefinição:Quote/doc. (editar | histórico) Editores podem experimentar nas páginas de teste (criar | espelhar) e de exemplos para testes (criar) desta predefinição. Por favor adicione categorias à subpágina /doc. Subpáginas desta predefinição. |