Difference between revisions of "Template:Quote/doc"
test>Daemorris m |
test>MC10 m (Redirect bypass from Block quote#Formatting_block_quotations to Block quotation#Formatting_block_quotations using popups) |
||
| Line 5: | Line 5: | ||
This is easier to type and more wiki-like than the equivalent HTML {{tag|blockquote}} tags, has additional pre-formatted attribution and source parameters, and contains a workaround for [[Bugzilla:6200]], which means you don't need to type {{tag|p}} tags manually. | This is easier to type and more wiki-like than the equivalent HTML {{tag|blockquote}} tags, has additional pre-formatted attribution and source parameters, and contains a workaround for [[Bugzilla:6200]], which means you don't need to type {{tag|p}} tags manually. | ||
| − | Note: Block quotes do not normally contain quotation marks. See [[Block | + | Note: Block quotes do not normally contain quotation marks. See [[Block quotation#Formatting block quotations|Formatting block quotations]]. |
=== Synopsis === | === Synopsis === | ||
Revision as of 00:11, 7 April 2010
| 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. |
{{Quote}} adds a block quote to an article page.
This is easier to type and more wiki-like than the equivalent HTML <blockquote>...</blockquote> tags, has additional pre-formatted attribution and source parameters, and contains a workaround for Bugzilla:6200, which means you don't need to type <p>...</p> tags manually.
Note: Block quotes do not normally contain quotation marks. See Formatting block quotations.
Contents
Synopsis
- Unnamed (positional) parameters
{{quote|phrase|person|source}}
- Named parameters
{{quote|text=phrase|sign=person|source=source}}
Example
- 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.
— Script error: No such module "If empty"., Script error: No such module "If empty"., Script error: No such module "If empty".
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:Quotation templates see also