Template:Quote: Difference between revisions

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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
texttext

Text of the quote itself

Stringrequired
authorauthor

Who tf said that!?

Linerequired
datedate

When was it said?

Dateoptional