Template:Quote/Documentation: Difference between revisions

Template page
w:c:strategywiki>Notmyhandle
(copied parameters section from WP)
 
m (12 revisions imported: Imported from https://strategywiki.org/)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Parameters==
{{t|quote}} adds a blockquote to an article page, with the addition of an attribute and source.
*Parameter 1: text of the quote; use <nowiki><br /></nowiki> between paragraphs.  


;Required
==Usage==
If the quote text contains one or more "=" (equal signs), then the template must be called as <nowiki>{{quote|1=quote text}}</nowiki>.
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.


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}}</nowiki></code> produces:


*Parameter 2: "quotewidth" - desired width of the quote image; defaults to 20px. (anything larger than 48px is not recommended.)
{{Quote|Phrase}}
*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:
<code><nowiki>{{Quote|Phrase|Somebody}}</nowiki></code> produces:


*Parameter 4: Name of the person that wrote or spoke the text being quoted. Can include links.  
{{Quote|Phrase|Somebody}}
*Parameter 5: Source of the quote (publication title, speech, etc.). Can include links.
 
<code><nowiki>{{Quote|Phrase|Somebody|''Source''}}</nowiki></code> produces:
 
{{Quote|Phrase|Somebody|''Source''}}
 
==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]]''}}
|}
 
<noinclude>[[Category:Template documentation|Q]]</noinclude>

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