Template:Quote box
| {{{quote}}} {{{source}}} |
Contents
Related templates[edit]
- Template:Cquote
- Template:Quotation
- Template:Quote box
- Template:Rquote
|
[edit] []
Usage[edit]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. Parameters[edit]Basic parameters
Main box styling
Title styling
Quote styling
Source styling
Full syntax[edit]
{{Quote box
|title =
|quote =
|source =
|align =
|width =
|border =
|fontsize =
|bgcolor =
|style =
|title_bg =
|title_fnt =
|tstyle =
|qalign =
|qstyle =
|quoted =
|salign =
|sstyle =
}}
Examples[edit]Various example codes and their results. For more intricate examples see Template:Quote_box/examples Floating and wrapping[edit]Minimal code, defaults to floating right and minimal width:
{{Quote box
|quote = #%*(^*$@*$%@&*#%^!
|source = [[Mabel]]
}}
Floating right:
{{Quote box
|quote = #%*(^*$@*$%@&*#%^!
|source = [[Mabel]]
|width = 50%
|align = right
}}
Floating left:
{{Quote box
|quote = #%*(^*$@*$%@&*#%^!
|source = [[Mabel]]
|width = 50%
|align = left
}}
Centered (but not floating any more):
{{Quote box
|quote = #%*(^*$@*$%@&*#%^!
|source = [[Mabel]]
|width = 50%
|align = center
}}
Fat-quotes[edit]Using fat-quotes:
{{Quote box
|quote = #%*(^*$@*$%@&*#%^!
|source = [[Mabel]]
|quoted = 1
}}
quote alignment[edit]
{{Quote box
|title = Centered quote
|quote = #%*(^*$@*$%@&*#%^!
|source = [[Mabel]]
|qalign = center
}}
{{Quote box
|title = Left title, right quote
|tstyle = text-align: left;
|quote = #%*(^*$@*$%@&*#%^!
|source = [[Mabel]]
|qalign = right
}}
See also[edit]
|