Difference between revisions of "Template:Quote/doc"

From Summertime Saga Wiki
Jump to: navigation, search
m (Limitations)
m
Line 19: Line 19:
  
 
{|class=wikitable style="width:100%;"
 
{|class=wikitable style="width:100%;"
|+ Without source displayed
 
 
! style="width:50%;" | Markup
 
! style="width:50%;" | Markup
 
! Renders as
 
! Renders as
Line 25: Line 24:
 
| {{tlc|quote|Quoted material.}}
 
| {{tlc|quote|Quoted material.}}
 
| {{quote|Quoted material.}}
 
| {{quote|Quoted material.}}
|}
 
 
{|class=wikitable style="width:100%;"
 
|+ With source displayed
 
! style="width:50%;" | Markup
 
! Renders as
 
 
|-
 
|-
 
| {{tlc|quote|Quoted material.|Source material}}
 
| {{tlc|quote|Quoted material.|Source material}}
 
| {{quote|Quoted material.|Source material}}
 
| {{quote|Quoted material.|Source material}}
|}
 
 
{|class=wikitable style="width:100%;"
 
|+ With source displayed and named parameters
 
! style="width:50%;" | Markup
 
! Renders as
 
 
|-
 
|-
 
| {{tlc|quote|text{{=}}Quoted material.|source{{=}}Source material}}
 
| {{tlc|quote|text{{=}}Quoted material.|source{{=}}Source material}}

Revision as of 19:13, 20 July 2020

The Template:Tl formats block quotations and provides a wrapper with decorative marks for the HTML <blockquote> element.

This template should not be used for block quotations in article text. Quotes work best when used with short sentences, and at the start or end of a section, as a hint of or to help emphasize the section’s content.

Usage

Template:Tlc adds a block quotation to an article page. This is easier to type and is more wiki‐like than the equivalent HTML <blockquote>…</blockquote> tags, and has additional pre‐formatted attribution parameters for author and source.

Block quotes do not normally contain quotation marks.

Parameters

|1= or |quote= 
The material being quoted, without quotation marks around it.
|2= or |source= 
Optional speaker or source information to display that will appear below the quotation, and preceded with an attribution dash.

Examples

Markup Renders as
Template:Tlc

Quoted material.

Template:Tlc

Quoted material.

— Source material

Template:Tlc

Quoted material.

— Source material

Limitations

If you do not provide text, the template generates a parser error message, which will appear in red text in the rendered page.

If any parameter’s actual value contains an equals sign “=”, you must use a named parameter (e.g. |text=“E=MC2 is a formula everyone knows but few understand, not a blank‐name positional parameter. The text before the equals sign gets misinterpreted as a named parameter otherwise. Be wary of URLs, which frequently contain this character. Named parameters are always safer, in this and other templates.