Template:Blockquote/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (→Line breaks: changed {{tlf}}s to {{tlp}}s) |
(now template styles) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{Uses TemplateStyles|Template:Quote/styles.css}} |
|||
{{For|linking a subject to a collection of quotes on [[Wikiquote]]|Template:Wikiquote}} |
{{For|linking a subject to a collection of quotes on [[Wikiquote]]|Template:Wikiquote}} |
||
Line 86: | 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}}— {{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. |
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}}— {{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 == |
== Examples == |
Revision as of 08:38, 10 August 2018
This is a documentation subpage for Template:Terminate sentence It contains usage information, categories and other content that is not part of the original template page. |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
Usage
{{Quote}}
adds a block quotation to an article page.
This is easier to type and is more wiki-like than the equivalent HTML <blockquote>...</blockquote>
tags, and has additional pre-formatted attribution parameters for author and source (though these are not usually used in articles;