Template:Quote

From Totem Arts Wiki
Jump to navigation Jump to search
Insert the text of the quote here, without quotation marks.
—{{{2}}}, {{{3}}}

This template adds a blockquote to an article page, with the addition of an attribute and source.

Usage

This template accepts three parameters in the following order:

  1. The text of the quote.
  2. Originator of the quote (optional).
  3. Source information (optional). This is normally explanatory text about the orginator of the quote.

{{Quote|Phrase}}

produces:

Phrase

=

{{Quote|Phrase|Somebody}}

produces:

Phrase
—Somebody

=

{{Quote|Phrase|Somebody|''Source''}}

produces:

Phrase
—Somebody, Source

Layout

Sometimes you may wish to choose the layout or place the quote in a non-standard place. In this case it's recommended to set both margins and sides to 0 as detailed below.

Margins

margins control the area around the quote and is responsible for centering it. Enter one to four values exactly as you would CSS margin property values. I.e. margins=10px 20px 30px 40px is the same as margins:10px 20px 30px 40px; in CSS.

{{Quote|Phrase|Somebody|margins=0}} 

produces:

Phrase
—Somebody

=

Notice that it is no longer centered. The default value is "0 auto".

Sides

sides control how much of a gap is left on each side of the quote. This is used instead of margins as margins are already used to center the quote and also margins do not work next to floating elements. Enter NO MORE THAN ONE value exactly as you would in a CSS width property value. I.e. sides=50px is the same as width:50px; in CSS.

{{Quote|Phrase|Somebody|margins=0|sides=0}}
{{Quote|Phrase|Somebody|margins=0|sides=40px}}

produces:

Phrase
—Somebody
Phrase
—Somebody

=

Notice the different indents. The default value is

  • "10%" if neither sides nor width nor float is defined
  • "0" if width or float is defined but not sides.

Width

width controls how wide the quote is. Keep in mind this includes the sides!

{{Quote|Phrase|Somebody|width=50%}}
{{Quote|Phrase|Somebody|width=400px}}
{{Quote|Phrase|Somebody|width=100%}}

produces:

Phrase
—Somebody
Phrase
—Somebody
Phrase
—Somebody

=

Note: specifying width will cause sides to default to "0" unless sides has also been specified.

Float

float sets the float of the quote. Not that the text from each line merges into a single paragraph.

{{Quote|Phrase|Somebody|float=left}} Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text.
{{Quote|Phrase|Somebody|float=right}} Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah.

Would yield something like

Phrase
—Somebody

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text.

Phrase
—Somebody

Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah.

= Template:H = Use {{-}} to clear the float and force the quote to appear at different vertical positions

{{Quote|Phrase|Somebody|float=left}} Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text.
{{-}} 
{{Quote|Phrase|Somebody|float=right}} Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah.

Would yield something like

Phrase
—Somebody

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text.

Template:-

Phrase
—Somebody

Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah.

= Template:H = Use {{=}} to clear the float and force the quote to appear at different vertical positions and also force a line in between them.

{{Quote|Phrase|Somebody|float=left}} Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text. 
{{=}}
{{Quote|Phrase|Somebody|float=right}} Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah.

Would yield something like

Phrase
—Somebody

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text.

=

Phrase
—Somebody

Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah.


Note: specifying float will cause sides to default to "0" unless sides has also been specified.

Example

Code Result
{{Quote|Phrase|Somebody|Source}
Phrase
—Somebody, Source