Anonymous user
Template:Blockquote/doc: Difference between revisions
update docs for recent change
(Note: This template does work correctly if there are URLs in the phrase; Workarounds?) |
(update docs for recent change) |
||
Line 3:
'''{{tl|Quote}}''' adds a [[block quote]] to an article page.
This is easier to type and more wiki-like than the equivalent HTML
Note: Block quotes do not normally contain quotation marks. See [[Block quote#Formatting block quotations|Formatting block quotations]].
;Unnamed (positional) parameters
▲=== Usage ===
; Named parameters
<code><nowiki>{{
▲<code><nowiki>{{Quote|Phrase|Somebody}}</nowiki></code> produces:
▲<code><nowiki>{{Quote|Phrase|Somebody|''Source''}}</nowiki></code> produces:
=== Example ===
; Wikitext:
<code><nowiki>{{quote|text=Cry “Havoc,” and let slip the dogs of war.|sign=[[William Shakespeare]]|source=[[Julius Caesar (play)|Julius Caesar]], Act III, Scene I}}</nowiki></code>
| '''Result'''▼
{{quote|text=Cry “Havoc,” and let slip the dogs of war.|sign=[[William Shakespeare]]|source=[[Julius Caesar (play)|Julius Caesar]], Act III, Scene I}}
=== 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 [[vertical bar|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 ===
{{Quotation templates see also}}
|