Template:Quote

From OpenStreetMap Wiki
Jump to: navigation, search

“Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.”

“Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus.”

Cicero, Source : Wikipedia
[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation

Usage

  • {{Quote|Some inline text.}} gives:
Some inline text.
  • {{Quote|Some inline text.|sign=Author}} gives:
Some inline text.
— Author
  • {{Quote|Some inline text.|sign=Author|source=Title}} gives:
Some inline text.
— Author, Title
  • {{Quote|Some inline text.|source=Title}} gives:
Some inline text.
Title

You may need to name the parameter 1 explicitly if the inline text contains some equal sign (e.g. for style markup):

  • {{Quote|1=“''Some <b style="color:green">inline</b> text.''”|sign=[[w:Cicero|Cicero]]|source=Source: Wikipedia}} gives:
Some inline text.
Cicero, Source: Wikipedia

This syntax using parameter 1 works only with single line text (without any line break in parameter value) and allows insertion in indented paragraphs (or even in the middle of a paragraph).

  • ''Example:''
    : ''Some text: {{Quote|Inline quotation in the middle of a paragraph.}} with other text.'' gives:

Example:

Some text:
Inline quotation in the middle of a paragraph.
with other text.
  • ''Example:''
    : ''Some text: {{Quote|Inline quotation in the middle of a paragraph.|sign=Author|source=Title}} with other text.'' gives:

Example:

Some text:
Inline quotation in the middle of a paragraph.
— Author, Title
with other text.

Note that the MediaWiki syntax (using two or three single quotes) for styling text in italic (or bold) will not propagate inside the inline quotation if the text content in parameter 1 does not contains any other italic (or bold) wiki style; otherwise these wiki styles will unexpectedly propagate inside the quotation where they will be reversed from the original quotation, unless you terminate them before the quotation and reinstate them after it:

  • ''Some text: {{Quote|Inline quotation in the ''middle'' of a paragraph.}} with other text.'' gives:
Some text:
Inline quotation in the middle of a paragraph.
with other text.
  • ''Some text:'' {{Quote|Inline quotation in the ''middle'' of a paragraph.}} ''with other text.'' gives:
Some text:
Inline quotation in the middle of a paragraph.
with other text.

Caveat

This template is not (and has never been) indentable using simple colons if the text given in parameter 1 contains multiple lines (as shown in the {{Lorem ipsum}} test sample shown at top of this documentation which contains two paragraphs).

Use the "text=" parameter instead of parameter 1: that text will become a real blockquote, separated from other inline content before or after it (Note: the MediaWiki syntax using two or three single quotes for italic or bold styles will not propagate inside the quotation or after it, so these quotes should be closed and reopened as appropriate for separate paragraphs):

  • ''Paragraph before: {{Quote|text=Quoted paragraph with ''middle'' italics.}} Paragraph after.'' gives:
Paragraph before:

Quoted paragraph with middle italics.

Paragraph after.
  • ''Paragraph before:'' {{Quote|text=Quoted paragraph with ''middle'' italics.}} ''Paragraph after.'' gives:
Paragraph before:

Quoted paragraph with middle italics.

Paragraph after.
  • ''Text before: {{Quote|text=Paragraph 1.
    Paragraph 1 continued.

    Paragraph 2.|sign=Someone|source=Source}} Text after.''
    gives:

Paragraph 1. Paragraph 1 continued.

Paragraph 2.

— Someone, Source
  • {{Quote|text=
    * ''line 1''
    * ''line 2''
    |sign=Someone|source=Source}}
    gives:
  • line 1
  • line 2
— Someone, Source

To indent it, pass parameter "indent=1" whose numeric value matches the number of indentation levels expected (by default, the indentation level is 1 if it's not specified, for use between paragraphs of normal unindented text). You may want to increment the indentation level of quotations in threaded talks, or even set it to 0 (to align the quotation with the unindented text). Also do not place any text after the quotation but indent it on a separate line:

: Indented text.
: {{Quote|First quotation (single line).}}
{{Quote|indent=2|text=Second quotation (multiline)
continued.

Another paragraph.
}}
: Indented text.
:: Double indentation
:: {{Quote|Third quotation (single line).}}
{{Quote|indent=3|text=Fourth quotation (multiline)
continued.

Another paragraph.
}}
:: Double indentation.
: Indented text.

{{Quote|indent=1|text=Last quotation (multiline)
continued.

Another paragraph.
}}
{{Quote|indent=0|First unindented quotation (single line).}}
{{Quote|indent=0|text=
Second unindented quotation (multiline):

Another line.
}}

gives:

Indented text.
First quotation (single line).

Second quotation (multiline) continued.

Another paragraph.

Indented text.
Double indentation
Third quotation (single line).

Fourth quotation (multiline) continued.

Another paragraph.

Double indentation.
Indented text.

Last quotation (multiline) continued.

Another paragraph.

First unindented quotation (single line).

Second unindented quotation (multiline):

Another line.

See also