No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:


== Usage ==
== Usage ==
This template creates a beautifully formatted quote box. It is designed to be used in articles, user pages, or project pages to highlight a specific quote with proper attribution. This template can be used as either <nowiki>{{QT}}</nowiki> or <nowiki>{{qt}}</nowiki>.
This template creates a beautifully formatted quote box. It is designed to be used in articles, user pages, or project pages to highlight a specific quote with proper attribution.


=== Syntax ===
=== Syntax ===
Line 11: Line 11:
| speaker = Person who said it (or author).
| speaker = Person who said it (or author).
| date = Date the quote was given.
| date = Date the quote was given.
| source = Link to the source.
| source = Link or reference to the source.
}}
}}
</pre>
</pre>
Line 19: Line 19:
! Parameter !! Description   
! Parameter !! Description   
|-
|-
| <code>quote</code> || The text of the quote. Do not include quotation marks; the template adds them automatically.
| <code>quote</code> || The text of the quote. Do not include quotation marks; the template adds them automatically.  
|-
|-
| <code>speaker</code> || The name of the person, author, or entity who made the quote. (You can also use <code>author</code> or <code>by</code> if you prefer).
| <code>speaker</code> || The name of the person, author, or entity who made the quote.
|-
|-
| <code>date</code> || The date or year the quote was made (e.g., "January 2020" or "2023").
| <code>date</code> || The date or year the quote was made (e.g., "January 2020" or "2023").  
|-
|-
| <code>source</code> || The full URL to the source (e.g., a news article, video, or book).   
| <code>source</code> || The source of the quote. You can use a <code>&lt;ref&gt;</code> tag, an external link, or plain text.   
|}
|}
== Examples ==
== Examples ==


=== Full usage ===
=== Using &lt;ref&gt; tags (Recommended) ===
<pre>
<pre>
{{QT
{{QT
| quote = The Sun rises in the east.
| quote = We will destroy everything.
| speaker = Dr Doom
| speaker = Dr Doom
| date = January 2020
| date = January 2020
| source = https://example.com/drdom
| source = <ref>{{Cite web |url=https://example.com |title=Sharjeel Imam Speech |access-date=2026-10-04}}</ref>
}}
}}
</pre>
</pre>
Line 43: Line 42:


{{QT
{{QT
| quote = The Sun rises in the east.
| quote = We will destroy everything.
| speaker = Dr Doom
| speaker = Dr Doom
| date = January 2020
| date = January 2020
| source = https://example.com/drdom
| source = <ref>{{Cite web |url=https://example.com |title=Sharjeel Imam Speech |access-date=2026-10-04}}</ref>
}}
 
=== Using External Links ===
<pre>
{{QT
| quote = Knowledge is power.
| speaker = Francis Bacon
| source = [https://example.com Full speech]
}}
</pre>
 
'''Renders as:'''
 
{{QT
| quote = Knowledge is power.
| speaker = Francis Bacon
| source = [https://example.com Full speech]
}}
}}


=== Minimal usage (only quote) ===
=== Using Plain Text ===
<pre>
<pre>
{{QT
{{QT
| quote = Knowledge is power.
| quote = Knowledge is power.
| speaker = Francis Bacon
| source = The Hindu, 2024
}}
}}
</pre>
</pre>
Line 60: Line 78:
{{QT
{{QT
| quote = Knowledge is power.
| quote = Knowledge is power.
| speaker = Francis Bacon
| source = The Hindu, 2024
}}
}}


Line 86: Line 106:
         },
         },
         "source": {
         "source": {
             "label": "Source URL",
             "label": "Source",
             "description": "The full URL to the source of the quote.",
             "description": "The source of the quote (use <ref> tags, an external link, or plain text).",
             "type": "url",
             "type": "string",
             "required": false
             "required": false
         }
         }

Latest revision as of 22:35, 4 October 2026

Usage

This template creates a beautifully formatted quote box. It is designed to be used in articles, user pages, or project pages to highlight a specific quote with proper attribution.

Syntax

{{QT
| quote = The exact text of the quote.
| speaker = Person who said it (or author).
| date = Date the quote was given.
| source = Link or reference to the source.
}}

Parameters

Parameter Description
quote The text of the quote. Do not include quotation marks; the template adds them automatically.
speaker The name of the person, author, or entity who made the quote.
date The date or year the quote was made (e.g., "January 2020" or "2023").
source The source of the quote. You can use a <ref> tag, an external link, or plain text.

Examples

Using <ref> tags (Recommended)

{{QT
| quote = We will destroy everything.
| speaker = Dr Doom
| date = January 2020
| source = <ref>{{Cite web |url=https://example.com |title=Sharjeel Imam Speech |access-date=2026-10-04}}</ref>
}}

Renders as:

“We will destroy everything.”

— Dr Doom, January 2020[1]

Using External Links

{{QT
| quote = Knowledge is power.
| speaker = Francis Bacon
| source = [https://example.com Full speech]
}}

Renders as:

“Knowledge is power.”

— Francis BaconFull speech

Using Plain Text

{{QT
| quote = Knowledge is power.
| speaker = Francis Bacon
| source = The Hindu, 2024
}}

Renders as:

“Knowledge is power.”

— Francis BaconThe Hindu, 2024

TemplateData

Creates a styled quote box with attribution.

Template parameters

ParameterDescriptionTypeStatus
Quotequote

The text of the quote. Do not include quotation marks.

Stringrequired
Speaker / Authorspeaker

The person or entity who said or wrote the quote.

Stringoptional
Datedate

The date or year the quote was given.

Stringoptional
Sourcesource

The source of the quote (use <ref> tags, an external link, or plain text).

Stringoptional
  1. ↑ "Sharjeel Imam Speech". Retrieved 2026-10-04.