Template:Quote box/doc

From OrthodoxWiki
< Template:Quote box
Revision as of 17:55, March 25, 2020 by Dclark (talk | contribs) (From simple wikipedia.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{#invoke:Message box|mbox}}

Usage

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

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

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.

Template:Lorem ipsum Template:Clear

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

Template:Lorem ipsum Template:Clear

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

Template:Lorem ipsum Template:Clear

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

Template:Lorem ipsum Template:Clear

Related pages

Template:Quotation templates see also