Template:Quote: Difference between revisions

From <3 wiki
add optional date parameter
Tag: 2017 source edit
m remove extra newlines added with the template
Tag: 2017 source edit
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><blockquote>
<blockquote>
{{{text}}}
{{{text}}}


<cite>— {{{author}}}{{#if:{{{date|}}}|, {{{date}}}}}</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|date=2024-01-01}}
{{Quote|text=text displayed|author=Author name|source=source|date=2024-01-01}}
<templatedata>
<templatedata>
{
{
Line 23: Line 21:
},
},
"date": {
"date": {
"description": "When was it said?",
"description": "When was it said? (prefer Japanese YYYY-MM-DD format)",
"type": "date"
"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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
texttext

Text of the quote itself

Stringrequired
authorauthor

Who tf said that!?

Linerequired
datedate

When was it said? (prefer Japanese YYYY-MM-DD format)

Dateoptional
sourcesource

Book name or any other thing

Lineoptional