Template:Quote/Documentation: Difference between revisions

Template page
w:c:strategywiki>Notmyhandle
(examples)
m (12 revisions imported: Imported from https://strategywiki.org/)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Example==
{{t|quote}} adds a blockquote to an article page, with the addition of an attribute and source.
<nowiki>{{quote|Quoted text here.}}</nowiki>
 
{{quote|Quoted text here.}}
==Usage==
This template accepts three parameters in the following order:
# The text of the quote.
# Originator of the quote (optional).
# Source information (optional). This is normally explanatory text about the orginator of the quote.
 
<code><nowiki>{{Quote|Phrase}}</nowiki></code> produces:


<nowiki>{{quote|Quoted text here.|quoteheight=25px}}</nowiki>
{{Quote|Phrase}}
{{quote|Quoted text here.|quoteheight=25px}}


==Parameters==
<code><nowiki>{{Quote|Phrase|Somebody}}</nowiki></code> produces:
*Parameter 1: text of the quote; use <nowiki><br /></nowiki> between paragraphs.


;Required
{{Quote|Phrase|Somebody}}
If the quote text contains one or more "=" (equal signs), then the template must be called as <nowiki>{{quote|1=quote text}}</nowiki>. 


The next two parameters can be used to scale the graphical quotation marks up and down to suit larger or smaller quotes.
<code><nowiki>{{Quote|Phrase|Somebody|''Source''}}</nowiki></code> produces:


*Parameter 2: "quotewidth" - desired width of the quote image; defaults to 20px. (anything larger than 48px is not recommended.)
{{Quote|Phrase|Somebody|''Source''}}
*Parameter 3: "quoteheight" - desired height of the quote image; defaults to 20px.


The last two parameters can be used to provide attribution for the quote:
==Example==
{| {{prettytable}}
! Code
! Result
|-
| valign="top" | <code>{&#123;{{BASEPAGENAME}}&#124;Play with fire and you get burned.|Magus|'&#39;<nowiki>[[Chrono Trigger]]</nowiki>&#39;'&#125;}</code>
| {{msg:{{BASEPAGENAME}}|Play with fire and you get burned.|Magus|''[[Chrono Trigger]]''}}
|}


*Parameter 4: Name of the person that wrote or spoke the text being quoted. Can include links.
<noinclude>[[Category:Template documentation|Q]]</noinclude>
*Parameter 5: Source of the quote (publication title, speech, etc.). Can include links.

Latest revision as of 18:27, 28 October 2023

{{quote}} adds a blockquote to an article page, with the addition of an attribute and source.

Usage[edit source]

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

Example[edit source]

Code Result
{{Quote|Play with fire and you get burned.|Magus|''[[Chrono Trigger]]''}}

Play with fire and you get burned.

Magus, Chrono Trigger