Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
The {{quote box}}
template allows you to easily put a quote (and its source) inside a box, with flexible control over bordering, background color, alignment, and other features. 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, and may break if indented using wikitext syntax. This is a current limitation of the wikipedia HTML parsing software.
Basic parameters
Main box styling
Title styling
Quote styling
Source styling
{{Quote box |title = |quote = |source = |align = |width = |border = |fontsize = |bgcolor = |style = |title_bg = |title_fnt = |tstyle = |qalign = |qstyle = |quoted = |salign = |sstyle = }}
Various example codes and their results. For more intricate examples see Template:Quote_box/examples
Minimal code, defaults to floating right and minimal width:
{{Quote box |quote = Cry "Havoc," and let slip the dogs of war. |source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I. }} {{Lorem ipsum}}
Cry "Havoc," and let slip the dogs of war.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Floating right:
{{Quote box |quote = Cry "Havoc," and let slip the dogs of war. |source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I. |width = 50% |align = right }} {{Lorem ipsum}}
Cry "Havoc," and let slip the dogs of war.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Floating left:
{{Quote box |quote = Cry "Havoc," and let slip the dogs of war. |source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I. |width = 50% |align = left }} {{Lorem ipsum}}
Cry "Havoc," and let slip the dogs of war.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Centered (but not floating any more):
{{Quote box |quote = Cry "Havoc," and let slip the dogs of war. |source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I. |width = 50% |align = center }} {{Lorem ipsum}}
Cry "Havoc," and let slip the dogs of war.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Using fat-quotes:
{{Quote box |quote = Cry "Havoc," and let slip the dogs of war. |source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I. |quoted = 1 }}
Cry "Havoc," and let slip the dogs of war.
{{Quote box |title = Centered quote |quote = Cry "Havoc," and let slip the dogs of war. |source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I. |qalign = center }}
Cry "Havoc," and let slip the dogs of war.
{{Quote box |title = Left title, right quote |tstyle = text-align: left; |quote = Cry "Havoc," and let slip the dogs of war. |source = [[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I. |qalign = right }}
Cry "Havoc," and let slip the dogs of war.
The above documentation is transcluded from সাঁচ:Quote box/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |