Template:Smq
Brief quote
{{Smq}} adds a block quote in a smaller font size to an article page. Based on {{Quote}}, it is useful for inserting quotes in tables, where full-size text would be problematic.
Note: Block quotes do not normally contain quotation marks. See Formatting block quotations.
Contents
Synopsis
- Unnamed (positional) parameters
{{smq|phrase|person|source}}
- Named parameters
{{smq|text=phrase|sign=person|source=source}}
Example
- Wikitext
{{smq|text=Cry “Havoc,” and let slip the dogs of war.|sign=[[William Shakespeare]]|source=[[Julius Caesar (play)|''Julius Caesar'']], Act III, Scene I}}
- Result
Cry “Havoc,” and let slip the dogs of war.
Note that wikilinks are not automatically provided by the template.
Restrictions
If you do not provide quoted text, the template generates a parser error message, which will appear in red text in the rendered page.
If any parameter's actual value contains an equals sign (=), you must use named parameters. (The equals sign gets interpreted as a named parameter otherwise.)
If any parameter's actual value contains characters used for wiki markup syntax (such as pipe, brackets, single quotation marks, etc.), you may need to escape it. See Template:! and friends.
Be wary of URLs which contain restricted characters. The equals sign is especially common.
See also
- Template:Bq—quote without border, page-wide; like (and compatible with parameters of) the older {{Quote}} but with more features; conversion from all others listed here is trivially easy (retaining key data, losing decoration, etc.)
- Template:Centered pull quote—pull quote between large quotation marks, page-wide; should rarely be used in articles and is not for block quotations, only pull quotes
- Template:Quote—quote without border, page-wide, smaller-sized attribution
- Template:Quotation—quote with border, page-wide
- Template:Quote box—quote with border, in a reduced floating box
- Template:Rquote—pull quote between large quotation marks, in a reduced floating area; also rarely appropriate in articles
- Template:Talkquote—for quoting other editors (or guidelines, etc.) on talk pages (in a block)
- Template:Tq—for quoting on talk pages, inline
- Category:Quotation templates
The above documentation is transcluded from Template:Smq/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |