Template:Quote: Difference between revisions
mark text and author required Tag: 2017 source edit |
m remove extra newlines added with the template Tag: 2017 source edit |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><blockquote> | ||
<blockquote> | |||
{{{text}}} | {{{text}}} | ||
<cite>— {{{author}}}</cite> | <cite>— {{{author}}}{{#if:{{{source|}}}|, {{{source}}}}}{{#if:{{{date|}}}|, {{{date}}}}}</cite> | ||
</blockquote> | </blockquote></includeonly> | ||
</includeonly> | |||
<noinclude> | <noinclude> | ||
Example: | Example: | ||
{{Quote|text=text displayed|author=Author name}} | {{Quote|text=text displayed|author=Author name|source=source|date=2024-01-01}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 21: | Line 19: | ||
"type": "line", | "type": "line", | ||
"required": true | "required": true | ||
}, | |||
"date": { | |||
"description": "When was it said? (prefer Japanese YYYY-MM-DD format)", | |||
"type": "date" | |||
}, | |||
"source": { | |||
"description": "Book name or any other thing", | |||
"type": "line" | |||
} | } | ||
} | }, | ||
"description": "Adds a quote to the page citing its author" | |||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Latest revision as of 12:23, 22 December 2024
Example:
text displayed
— Author name, source, 2024-01-01
Adds a quote to the page citing its author
Parameter | Description | Type | Status | |
---|---|---|---|---|
text | text | Text of the quote itself | String | required |
author | author | Who tf said that!? | Line | required |
date | date | When was it said? (prefer Japanese YYYY-MM-DD format) | Date | optional |
source | source | Book name or any other thing | Line | optional |