Template:Quote box/doc: Difference between revisions
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) 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-..." |
Caleb Cooper (talk | contribs) No edit summary |
||
Line 12:
* 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|]]
|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}}
| |||