Difference between revisions of "Template:Quote"

From The Battle for Wesnoth Wiki
(Reverted)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|width="80%" align="center" cellspacing="4" cellpadding="4" style="border: 4px solid #aaa; font-size: 90%; padding: 4px; margin: 1em; background-color: #f9f9f9;"
+
{|width="80%" width="{{{width}}}" align="center" align="{{{align}}}" cellspacing="0" cellpadding="8" style="border: 2px solid #B48648; font-size: 90%; padding:5px; background-color: #f9f9f9;"
 
|-
 
|-
 
|align="left"|''{{{quote}}}''
 
|align="left"|''{{{quote}}}''
Line 14: Line 14:
  
 
<pre>
 
<pre>
{{Quote_box|
+
{{Quote|
quote=
+
width=80%
 +
|align=center
 +
|quote=
 
|source=
 
|source=
 
|}}
 
|}}
Line 23: Line 25:
  
 
<pre>
 
<pre>
{{Quote_box|
+
{{Quote|
 
  width=45%
 
  width=45%
 
|align=right
 
|align=right
Line 34: Line 36:
 
Produces this:
 
Produces this:
  
{{Quote_box|
+
{{Quote|
 
width=45%
 
width=45%
 
|align=right
 
|align=right
 
|quote=Cry "Havoc," and let slip the dogs of war.
 
|quote=Cry "Havoc," and let slip the dogs of war.
|source=[[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
+
|source=William Shakespeare, ''Julius Caesar'', Act III, Scene I.
 
|}}
 
|}}
  
[[Category:Quotation templates|{{PAGENAME}}]]
+
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 06:57, 25 March 2019

{{{quote}}}
—{{{source}}}

Instructions

The quote box template allows you to easily put a quote (and its source) inside a box. 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.

As a stylistic device, the quoted text is italicized in the box by default, so you don't need to put quote marks (" ") around the quoted text; the italics do the work of quote marks in this context. (Should you want to defeat any part of the default italics in the quote, put two apostrophes on each side of the quoted text you do not want italicized, ''like this''.)

You can pick how wide you want the box (as px or a percentage), and how to align it (center, right, left). The parameters are:

{{Quote|
width=80%
|align=center
|quote=
|source=
|}}

For example, entering the following:

{{Quote|
 width=45%
|align=right
|quote=Cry "Havoc," and let slip the dogs of war.
|source=[[William Shakespeare]], ''[[Julius Caesar (play)|Julius Caesar]]'', Act III, Scene I.
|}}


Produces this:

Cry "Havoc," and let slip the dogs of war.
—William Shakespeare, Julius Caesar, Act III, Scene I.
This page was last edited on 25 March 2019, at 06:57.