Template:Quote/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

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