No edit summary |
No edit summary |
||
| Line 19: | Line 19: | ||
! Parameter !! Description !! Required? | ! Parameter !! Description !! Required? | ||
|- | |- | ||
| <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. | | <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 source of the quote. You can use a <code><ref></code> tag, an external link, or plain text. | | <code>source</code> || The source of the quote. You can use a <code><ref></code> tag, an external link, or plain text. | ||
== Examples == | == Examples == | ||
Revision as of 22:34, 4 October 2026
| This is a documentation subpage for Template:QT. It contains usage information, categories and other content that is not part of the original template page. |
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 | Required? | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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.
ExamplesUsing <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:
Using External Links{{QT
| quote = Knowledge is power.
| speaker = Francis Bacon
| source = [https://example.com Full speech]
}}
Renders as:
Using Plain Text{{QT
| quote = Knowledge is power.
| speaker = Francis Bacon
| source = The Hindu, 2024
}}
Renders as:
TemplateDataCreates a styled quote box with attribution.
|
|||||||||||||||||||||||||
- ↑ "Sharjeel Imam Speech". Retrieved 2026-10-04.