Template:Quote box/doc

From Simple English Wikipedia, the free encyclopedia

Usage[change source]

The quote box template allows you to easily put a quote (and its source) inside a box. The box is floating like an image and the article's text that follows will wrap around it. This is useful in articles where you are short on images and want to add some sort of graphic, or you just want to set off an important or interesting quote away from the main text.

{{Quote box
 | quote  =
 | source =
 | width  =
 | align  =
}}

Parameters[change source]

quote
Text to be quoted, without quotation marks around it. (Required)
source
Source of the quoted text. (Required)
width
Width of the box, preferably a relative percentage of the screen such as"33%", possibly an absolute width such as "200px". (Default: self-adjusts to the width of the text)
align
Position of the floating box, can be "right" or "left". "center" is possible but disables floating. (Default: "right")

Examples[change source]

Various codes and their results.

  • 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 adipiscing 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 adipiscing 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 adipiscing 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 adipiscing 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.

Related pages[change source]

Similar templates comparison