Template:Quote/doc
This is a documentation subpage for Template:Quote. It contains usage information, categories, and other content that is not part of the original template page. |
This template uses TemplateStyles: |
Usage
[edit]{{Quote}}
adds a block quotation to an article page.
This is easier to type and more wiki-like than the equivalent HTML blockquote
tags, and has additional pre-formatted attribution and source parameters.
Note: Block quotes do not normally contain quotation marks in English, so do not insert them to the text given in parameter. See w:en:MOS:QUOTE.
Synopsis
[edit]- Unnamed (positional) parameters
{{quote|phrase|person|source}}
- or
{{quote|phrase|person|source title|publication}}
This markup will fail if any parameter contains an equals sign (=).
- Numbered (positional) parameters
{{quote|1=phrase|2=person|3=source title|4=publication}}
- Named parameters
{{quote|text=phrase|sign=person|source=source title|publication=publication}}
- or
{{quote|quote=phrase|author=person|title=source title|publication=publication}}
As optional, may be set custom width of quotation box, in percentages.
Example 1
[edit]- Wikitext
{{Quote|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.
— William Shakespeare, Julius Caesar, Act III, Scene I
Example 2
[edit]- Wikitext
{{Quote|width=90%|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.
— William Shakespeare, Julius Caesar, Act III, Scene I
Restrictions
[edit]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.
Multiple paragraphs
[edit]Please use "br" tag for dividing to multiple paragraphs.
TemplateData
[edit]TemplateData for Quote
This template adds a block quotation to an article page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
quote | 1 text content quotetext quote | The quote text itself | Content | required |
quotee | 2 sign author cite by personquoted | The author of the quotation | Line | optional |
source title | 3 title publication ts quotesource | no description | Line | optional |
source | 4 source | no description | Line | optional |
character | char character | The character who says (or otherwise expresses) the quoted text in the quoted work | Line | optional |
style | style | no description | Unknown | optional |
multiline | multiline | no description | Unknown | optional |