Template:Cquote/doc: Difference between revisions

update - the width parameter was not documented; adding examples showing float wrapping, width constraints, source with no author
(→‎Parameters: update)
(update - the width parameter was not documented; adding examples showing float wrapping, width constraints, source with no author)
Line 25:
; source: Source of the quote (publication title, speech, etc.). Can include wiki syntax. Can be used without {{para|author}} (e.g. for a scripture, law, or other source without an author ''per se'')
; bgcolor: The color of the background.
; float: Defaults to center, but can also be right or left. Usually used with {{para|width|30%}} or so (otherwise for quotes longer than one line on the rendered page, the float will have no useful effect).
; width: Defaults to "auto" (i.e. full width of quote, or full width of page if quote is longer than one line on the page); a common value is <code>30%</code> when used with {{para|float|left}} or {{para|float|right}}.
; wide: When set to "yes", the quote expands to the entire width of the page, even if short. Useful for long quotes, but may clash with other floating objects, such as infoboxes.
; qcolor : color of quotemarks (only for use in [[WP:Signpost]], and personal pages; do not use in articles, guidelines, etc.)
 
Line 50 ⟶ 51:
(the ''1='' is necessary as quote text contains an equal sign)
{{pull quote|1=F=ma|author=[[Isaac Newton]]}}
 
 
<pre>{{pull quote|1=Thus:
Line 56 ⟶ 58:
{{pull quote|1=Thus:
{{in5}}<math>E=mc^2</math>|author=[[Albert Einstein]]}}
 
 
<pre>{{pull quote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States |float=right |width=30%}}</pre>
(source with no author; floated right and width-constrained)
{{pull quote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States |float=right |width=30%}}
Not that it will wrap around article text like this. {{lorem}}{{clear|both}}
 
 
<pre>{{pull quote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States |width=50%}}</pre>
(same quote, no float, width constraint)
{{pull quote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States |width=50%}}
 
 
<pre>{{pull quote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States}}</pre>
(same quote, no float, no width setting – for short quote, would use as much of line as necessary, and for longer quotes, full width of page, wrapping for multiple lines.)
{{pull quote|Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.|source=First Amendment to the Constitution of the United States}}
 
 
Anonymous user