Template:Quote: Difference between revisions
add Quote template Tag: 2017 source edit |
m remove extra newlines added with the template Tag: 2017 source edit |
||
(6 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> | ||
{Quote|text=text displayed|author=Author name} | Example: | ||
{{Quote|text=text displayed|author=Author name|source=source|date=2024-01-01}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 14: | Line 12: | ||
"text": { | "text": { | ||
"description": "Text of the quote itself", | "description": "Text of the quote itself", | ||
"type": "string" | "type": "string", | ||
"required": true | |||
}, | }, | ||
"author": { | "author": { | ||
"description": "Who tf said that!?", | "description": "Who tf said that!?", | ||
"type": "line", | |||
"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" | "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 |