Template:Quote box/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE END OF THIS PAGE -->__NOTOC__ {{tsh|qb}} {{High-risk}} {{used in system|in MediaWiki:Abusefilter-..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 8:
{{Quote box{{\sandbox}} |width=30em |title=Title |quote={{Lorem ipsum}} |author=Author Name |source=source in "Quotes" or ''Italics'' as needed}}
 
This template can be used for [[Wikipedia:block quotation|block quotation]]s (long quotes set off from the main text). However, this use is not advised {{em|in articles}}. The [[Wikipedia:Manual of Style#Block quotations|Manual of Style guidelines for block quotations]] recommend formatting block quotations using the {{tlx|Quote}} template or the HTML &lt;[[blockquote]]&gt; element, for which that template provides a wrapper.
 
* Quotes work best when used with short sentences, and at the start or end of a section, as a hint of or to help emphasize the section's content.
* For typical quotes, especially those longer than the rest of the paragraph in which they are quoted, {{tlx|Cquote}} provides a borderless quote with decorative quotation marks, and {{tlx|Quote frame}} provided a bordered quote. Both span the article width. (However, do not use {{tlx|Cquote}} for block quotations in articles.)
* For very short quotes, {{tlx|Rquote}} (with decorative quotation marks) or {{tlx|Quote box}} (framed) can be used to set the quote off to either the right or left as in a magazine [[Wikipedia:Sidebar (publishing)|sidebar]]. This can be effective on [[Wikipedia:WP:ESSAY|essay]] pages and [[Wikipedia:WP:WIKIPROJECT|WikiProject]] homepages.
 
== Usage ==
For actual quotes, and poems, this template (a variant of {{tlx|Quote frame}}) can be used to present a title, quote, author, and source in a box such as that shown opposite, with options to customise its bordering, background, alignment and other aspects. The box itself is floating div, which, like images, can appear on the right or left or across the entire page. Article text will wrap around the div in the first two cases. This is useful in articles that are short on images and need some graphic-like element, or where an important or interesting quote wants to be presented in a way that sets it off from the surrounding text.
 
'''Caution:''' This is a div-based template, so it may malfunction if indented using wikitext syntax. This is a current limitation of the Wikipedia [[Wikipedia:HTML|HTML]] parsing software.
 
When used with a poem, it is convenient to wrap the poem's content in {{tag|poem}} tags; these preserve line breaks without having to manually insert {{tag|br|s}} markup.
Line 47:
* {{para|qalign}}: Alignment of the quote element—left / right / center. Defaults to left.
* {{para|qstyle}}: A generic CSS style parameter. Entries in this parameter supersede any duplicates in the preceding quote parameters.
* {{para|quoted}}: If this parameter evaluates to true (is not 0, false, or empty) the quote box will enclose the quote in ''fat-quotes''. Use judiciously; quote marks do not display in mainspace (articles) per [[Wikipedia:MOS:BLOCKQUOTE]].
 
'''Source styling'''
Line 91:
{{Quote box
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
}}
{{Lorem ipsum}}
Line 99:
{{Quote box
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
}}
{{Lorem ipsum}}
Line 110:
{{Quote box
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|width = 50%
|align = right
Line 120:
{{Quote box
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|width = 50%
|align = right
Line 133:
{{Quote box
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|width = 50%
|align = left
Line 143:
{{Quote box
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|width = 50%
|align = left
Line 156:
{{Quote box
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|width = 50%
|align = center
Line 166:
{{Quote box
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|width = 50%
|align = center
Line 179:
{{Quote box
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|quoted = 1
}}
Line 187:
{{Quote box
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|quoted = 1
}}
Line 200:
|title = Centered quote
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|qalign = center
}}
Line 209:
|title = Centered quote
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|qalign = center
}}
Line 221:
|tstyle = text-align: left;
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|qalign = right
}}
Line 231:
|tstyle = text-align: left;
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|qalign = right
}}
Line 254:
|title_bg = none
|border=none
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.<br /><br />
|qalign = right
}}
Line 267:
|border=none
|quote = Cry "Havoc", and let slip the dogs of war.
|author = [[Wikipedia:William Shakespeare|William Shakespeare]]
|source = ''[[Wikipedia:Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.<br /><br />
|qalign = right
}}