Template:Blockquote/doc: Difference between revisions

Notably : typography, accessibility.
(dox overhaul)
(Notably : typography, accessibility.)
Line 1:
{{Documentation subpage}}
 
{{For|linking a subject to a collection of quotations on [[Wikiquote]]|Template:Wikiquote}}
 
==Usage==
 
{{tlx|Quote}} adds a [[block quotation]] to an article page.
 
This is easier to type and more wiki-like than the equivalent HTML {{tag|blockquote}} tags, and has additional pre-formatted attribution and source parameters. <!-- THIS WORKAROUND FAILED; see talk page and its archives. New workaround provided belowhereafter. It also 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 [[MOS:QUOTE]].
Line 24 ⟶ 26:
 
;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 ===
Line 35 ⟶ 37:
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.
Line 47 ⟶ 49:
 
<includeonly>
 
<!-- ADD CATEGORIES BELOWAFTER THIS LINE -->
[[Category:Quotation templates|{{PAGENAME}}]]
 
<!-- ADD INTERWIKIS BELOWAFTER THIS LINE -->
[[as:Template:Quote]]
[[ca:Plantilla:Citació]]
Line 66 ⟶ 69:
[[zh-yue:Template:Quote]]
[[zh:Template:Quote]]
 
</includeonly>
Anonymous user