Template:Blockquote/doc: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(significant cleanup and standardization of the documentation markup; added {{code}}s and <syntaxhighlight lang="[language]" inline>s where {{code}} was inappropriate or inferior; added <syntaxhighlight>s in some places, including to replace the deprecated <source>s it replaced; ensured consistent use of {{em}}, {{strong}}, {{tl}}, {{para}}, and so on; consolidated text; cleanup of "Reference citations" postponed until next edit to preserve diff integrity and clarity)
(→‎Reference citations: other part of cleanup, following stated changed in previous diff edit summary; also included {{stronggood}}, {{tick}}, {{cross}}, and {{A note}} for visual clarity and consistency)
Line 77: Line 77:
==Reference citations==
==Reference citations==
{{anchor|Attribution|reason=Old section name}}
{{anchor|Attribution|reason=Old section name}}
A [[WP:Citing sources|reference citation]] can be placed before the quote, after the quote, or in the <code>source</code> parameter:
A [[WP:Citing sources|reference citation]] can be placed before the quote, after the quote, or in the {{para|source}} parameter:
<ul>
<ul>
<li>'''Typical use''': In the regular-prose introduction to the quotation, when a quotation is given without the displayed <code>author</code>, <code>title</code>, or <code>source</code> parameters:<source lang="xml" inline>According to Pat Doe, in "Underwater Basketweaving Tips" (2015):<ref>...</ref> {{quote |text=Quoted material.}}</source></li>
<li>{{tick}} {{stronggood|Typical use:}} In the regular-prose introduction to the quotation, when a quotation is given without the displayed {{para|author}}, {{para|title}}, or {{para|source}} parameters: <syntaxhighlight lang="html" inline>According to Pat Doe, in "Underwater Basketweaving Tips" (2015):<ref>...</ref> {{quote |text=Quoted material.}}</syntaxhighlight></li>
<li>At the end of the quotation, when a quotation is given without the displayed <code>author</code>, <code>title</code>, or <code>source</code> parameters, and placement before the quote isn't appropriate (e.g. because the material immediately before the quote isn't cited to the same source or introduces multiple quotes from different sources:<source lang="xml" inline>Pat Doe and Chris Foo took opposing positions: {{quote |text=Doe's Quoted material.<ref>...</ref>}} {{quote |text=Foo's Quoted material.<ref>...</ref>}}</source></li>
<li>At the end of the quotation, when a quotation is given without the displayed {{para|author}}, {{para|title}}, or {{para|source}} parameters, and placement before the quote isn't appropriate (e.g. because the material immediately before the quote isn't cited to the same source or introduces multiple quotes from different sources: <syntaxhighlight lang="html" inline>Pat Doe and Chris Foo took opposing positions: {{quote |text=Doe's Quoted material.<ref>...</ref>}} {{quote |text=Foo's Quoted material.<ref>...</ref>}}</syntaxhighlight></li>
<li>After the <code>source</code> value (if a value is given for the <code>source</code> parameter other than the {{tag|ref}} itself):<source lang="xml" inline>One expert noted in 2015: {{quote |text=Quoted material. |author=Pat Doe |source="Underwater Basketweaving Tips" (2015)<ref>...</ref>}}</source></li>
<li>After the {{para|source}} value (if a value is given for the {{para|source}} parameter other than the <syntaxhighlight lang="html" inline><ref>...</ref></syntaxhighlight> itself):<syntaxhighlight lang="html" inline>One expert noted in 2015: {{quote |text=Quoted material. |author=Pat Doe |source="Underwater Basketweaving Tips" (2015)<ref>...</ref>}}</syntaxhighlight></li>
<li>{{strongbad|Deprecated}}: <s>After the quoted person's name in <code>author</code>, or after the work's title in <code>title</code>, when a <code>source</code> parameter is not being added:<source lang="xml" inline>As noted in "Underwater Basketweaving Tips" (2015): {{quote |text=Quoted material. |author=Pat Doe<ref>...</ref>}}</source></s><br />Please avoid that format, as it will pollute the author or title metadata with non-author or non-title information.</li>
<li>{{cross}} {{strongbad|Deprecated:}} <s>After the quoted person's name in {{para|author}}, or after the work's title in {{para|title}}, when a {{para|source}} parameter is not being added: <syntaxhighlight lang="html" inline>As noted in "Underwater Basketweaving Tips" (2015): {{quote |text=Quoted material. |author=Pat Doe<ref>...</ref>}}</syntaxhighlight></s><br />{{A note}} Please avoid this format, as it will pollute the author or title metadata with non-author or non-title information.</li>
</ul>
</ul>



Revision as of 00:16, 10 June 2018

Usage

{{Quote}} adds a block quotation to an article page.

This is easier to type and is more wiki-like than the equivalent HTML <blockquote>...</blockquote> tags, and has additional pre-formatted attribution parameters for author and source (though these are not usually used in articles;