Template:Quote: Difference between revisions
mark text and author required Tag: 2017 source edit |
add optional date parameter Tag: 2017 source edit |
||
Line 3: | Line 3: | ||
{{{text}}} | {{{text}}} | ||
<cite>— {{{author}}}</cite> | <cite>— {{{author}}}{{#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|date=2024-01-01}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 21: | Line 21: | ||
"type": "line", | "type": "line", | ||
"required": true | "required": true | ||
}, | |||
"date": { | |||
"description": "When was it said?", | |||
"type": "date" | |||
} | } | ||
} | } | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 11:57, 22 December 2024
Example:
text displayed
— Author name, 2024-01-01
No description.
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? | Date | optional |