No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
=== Parameters === | === Parameters === | ||
{| class="wikitable" style="width:100%;" | {| class="wikitable" style="width:100%;" | ||
! 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. (You can also use <code>author</code> or <code>by</code> if you prefer). | ||
|- | |- | ||
| <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 full URL to the source (e.g., a news article, video, or book). | ||
|} | |} | ||
Revision as of 14:09, 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. This template can be used as either {{QT}} or {{qt}}.
Syntax
{{QT
| quote = The exact text of the quote.
| speaker = Person who said it (or author).
| date = Date the quote was given.
| source = Link 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. (You can also use author or by if you prefer).
|
date |
The date or year the quote was made (e.g., "January 2020" or "2023"). |
source |
The full URL to the source (e.g., a news article, video, or book). |
Examples
Full usage
{{QT
| quote = The Sun rises in the east.
| speaker = Dr Doom
| date = January 2020
| source = https://example.com/drdom
}}
Renders as:
“The Sun rises in the east.”
— Dr Doom, January 2020https://example.com/drdom
Minimal usage (only quote)
{{QT
| quote = Knowledge is power.
}}
Renders as:
“Knowledge is power.”
TemplateData
Creates a styled quote box with attribution.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Quote | quote | The text of the quote. Do not include quotation marks. | String | required |
| Speaker / Author | speaker | The person or entity who said or wrote the quote. | String | optional |
| Date | date | The date or year the quote was given. | String | optional |
| Source URL | source | The full URL to the source of the quote. | URL | optional |