Template:Quote: Difference between revisions

From <3 wiki
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

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