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
(reorganizing)
(→‎Synopsis: rewriting to reflect actual usage needs)
Line 11: Line 11:


=== Synopsis ===
=== Synopsis ===
'''Unnamed (positional) parameters'''
<code><nowiki>{{quote|phrase|person|source}}</nowiki></code>
This markup will fail if any parameter contains an equals sign (<code>=</code>).


;Basic use:
'''Numbered (positional) parameters'''
<code><nowiki>{{quote|1=phrase|2=person|3=source}}</nowiki></code>


<code><nowiki>{{Quote|text=Quoted material. |author=Attribution}}</nowiki></code>
'''Named parameters'''

<code><nowiki>{{quote|text=phrase|author=person|source=source}}</nowiki></code>
;Typical uses:

#<code><nowiki>According to Pat Doe, in "A New Model of Underwater Basketweaving" (2015): {{quote |text=Quoted material.<ref>...</ref>}}</nowiki></code>
#<code><nowiki>According to Pat Doe, in "A New Model of Underwater Basketweaving" (2015):<ref>...</ref> {{quote |text=Quoted material.}}</nowiki></code>
#<code><nowiki>One expert noted: {{quote |text=Quoted material. |author=Pat Doe, "A New Model of Underwater Basketweaving" (2015)<ref>...</ref>}}</nowiki></code>

=== Parameters ===

{{para|text}} a.k.a. {{para|1}} The material being quoted, without quotation marks around it. It is always safest to name this parameter (rather than use an unnamed positional parameter), because any inclusion of the {{=}} character (e.g. in a URL in a source citation) will otherwise break the template.

{{para|author}} a.k.a. {{para|2}} Attribution information that will appear below the quotation.

{{para|source}} a.k.a. {{para|3}} Title of the major work the quote appears in. This parameter (which immediately follows the output of {{para|author}}) is rarely used, and auto-italicizes all content within it. It is used for the title (alone) of a book, periodical, filmic work, stage production or the like, not for minor works {{crossref|(see [[#Attribution]], below, for details)}}.


==Attribution==
==Attribution==

Revision as of 10:11, 5 August 2015

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 and source parameters.

Note: Block quotes do not normally contain quotation marks. See MOS:Blockquote.

Synopsis

Basic use

{{Quote|text=Quoted material. |author=Attribution}}

Typical uses
  1. According to Pat Doe, in "A New Model of Underwater Basketweaving" (2015): {{quote |text=Quoted material.<ref>...</ref>}}
  2. According to Pat Doe, in "A New Model of Underwater Basketweaving" (2015):<ref>...</ref> {{quote |text=Quoted material.}}
  3. One expert noted: {{quote |text=Quoted material. |author=Pat Doe, "A New Model of Underwater Basketweaving" (2015)<ref>...</ref>}}

Parameters

|text= a.k.a. |1= The material being quoted, without quotation marks around it. It is always safest to name this parameter (rather than use an unnamed positional parameter), because any inclusion of the = character (e.g. in a URL in a source citation) will otherwise break the template.

|author= a.k.a. |2= Attribution information that will appear below the quotation.

|source= a.k.a. |3= Title of the major work the quote appears in. This parameter (which immediately follows the output of |author=) is rarely used, and auto-italicizes all content within it. It is used for the title (alone) of a book, periodical, filmic work, stage production or the like, not for minor works