Template:Quote/Documentation: Difference between revisions

Template page
w:c:strategywiki>Notmyhandle
(examples)
w:c:strategywiki>Notmyhandle
(copied/modified documentation from wikipedia)
Line 1: Line 1:
==Example==
<includeonly>{{template doc page transcluded}}</includeonly>
<nowiki>{{quote|Quoted text here.}}</nowiki>
<includeonly>{{esoteric}}</includeonly>
{{quote|Quoted text here.}}
 
<code>{&#123;[[Template:{{PAGENAME}}|{{lcfirst:{{PAGENAME}}}}]]&#125;}</code> adds a blockquote to an article page, with the addition of an attribute and source.
 
==Usage==
<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==
{| class="wikitable"
| '''Code'''
| '''Result'''
|-
| valign="top" | <code>{&#123;{{BASEPAGENAME}}&#124;Play with fire and you get burned.|Magus|'&#39;[[Chrono Trigger]]&#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.
<includeonly>
*Parameter 5: Source of the quote (publication title, speech, etc.). Can include links.
[[Category:Templates]]
</includeonly>

Revision as of 23:47, 22 April 2007


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

Usage

{{Quote|Phrase}} produces:

Phrase

{{Quote|Phrase|Somebody}} produces:

Phrase

Somebody

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

Phrase

Somebody, Source

Example

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

Play with fire and you get burned.

Magus, Chrono Trigger