Template:Blockquote/doc: Difference between revisions

now template styles
m (→‎Line breaks: changed {{tlf}}s to {{tlp}}s)
(now template styles)
Line 1:
{{Documentation subpage}}
{{Uses TemplateStyles|Template:Quote/styles.css}}
 
{{For|linking a subject to a collection of quotes on [[Wikiquote]]|Template:Wikiquote}}
 
Line 86:
 
Please do not place the citation in a {{para|author}} or {{para|source}} parameter by itself, as it will produce a nonsensical attribution line that looks like:<br />{{in5}}—&#8239;{{fake ref}}<br />Please also do not put it just outside the {{tl|Quote}} template, as this will cause a:<br />{{in5}}{{fake ref}}<br />on a line by itself.
 
== Style ==
Styling is applied through CSS rules in [[MediaWiki:Common.css]]:
<syntaxhighlight lang="css">
/* Styling for Template:Quote */
blockquote.templatequote {
margin-top: 0;
}
blockquote.templatequote div.templatequotecite {
line-height: 1.5em;
/* @noflip */
text-align: left;
/* @noflip */
padding-left: 1.6em;
margin-top: 0;
}
</syntaxhighlight>
HTML:
<syntaxhighlight lang="html">
<blockquote class="templatequote">
<p>Quote text.</p>
<div class="templatequotecite"><cite>—Author, Source</cite></div>
</blockquote>
</syntaxhighlight>
 
== Examples ==
Anonymous user