Anonymous user
Template:Blockquote/doc: Difference between revisions
significant cleanup and standardization of the documentation markup; added {{code}}s and <syntaxhighlight lang="[language]" inline>s where {{code}} was inappropriate or inferior; added <syntaxhighlight>s in some places, including to replace the deprecated <source>s it replaced; ensured consistent use of {{em}}, {{strong}}, {{tl}}, {{para}}, and so on; consolidated text; cleanup of "Reference citations" postponed until next edit to preserve diff integrity and clarity
m (ce: +space, "and") |
(significant cleanup and standardization of the documentation markup; added {{code}}s and <syntaxhighlight lang="[language]" inline>s where {{code}} was inappropriate or inferior; added <syntaxhighlight>s in some places, including to replace the deprecated <source>s it replaced; ensured consistent use of {{em}}, {{strong}}, {{tl}}, {{para}}, and so on; consolidated text; cleanup of "Reference citations" postponed until next edit to preserve diff integrity and clarity) |
||
Line 6:
{{tlx|Quote}} adds a [[block quotation]] to an article page.
This is easier to type and is more wiki-like than the equivalent [[HTML]] {{
'''Note:''' Block quotes do {{em|not}} normally contain quotation marks {{crossref|(see [[MOS:BLOCKQUOTE]])}}.
Line 26:
;With more attribution{{colon}}:
<syntaxhighlight lang="moin">
|text=Quoted material.
|author=First M. Last |title="Article Title"
}}
</syntaxhighlight>
== Parameters ==
Line 36 ⟶ 38:
=== Displayed attribution ===
These parameters for for {{em|displaying}} attribution information below the quote; this should not be confused with a citing a source {{crossref|(see {{section link||Reference citations}}, below)}}. These parameters are entirely optional, and are usually used with famous quotations, not routine block quotations, which are usually sourced at the end of the introductory line immediately before the quotation, with a normal
{{para|author}} a.k.a. {{para|2}}
{{para|title}} a.k.a. {{para|3}}
{{para|source}} a.k.a. {{para|4}}
{{para|character}} a.k.a. {{para|char}}
Technically, all citation information can be given in a single parameter, as in: {{code|lang=moin|code={{!}}source=Anonymous interview subject, in Jane G. Arthur, "The Aerodynamics of Shaved Weasels", ''Perspectives on Mammal Barbering'' (2016), Bram Xander Yojimbo (ed.)}} But this is a bit messy, and will impede later efforts to generate metadata from quotation attribution the way we are already doing with source citations. This is much more usable:
<syntaxhighlight lang="moin">
:{{para|source|Anonymous interview subject, in Jane G. Arthur, "The Aerodynamics of Shaved Weasels", ''Perspectives on Mammal Barbering'' (2016), Bram Xander Yojimbo (ed.)}}▼
▲:{{para|character|Anonymous interview subject}}
▲:{{para|author|Jane G. Arthur}}
▲
▲:{{para|title|"The Aerodynamics of Shaved Weasels"}}
</syntaxhighlight>
Later development can assign a CSS <code>class</code> and so forth to these separate parameters, upon which scripts would be able to operate (e.g. to look up things in WikiQuote).
===Rarely used technical parameters===
{{para|multiline}}
{{para|style}}
===Parameter list===
Line 83 ⟶ 85:
</ul>
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 {{
== Style ==
Styling is applied through CSS rules in [[MediaWiki:Common.css]].
<syntaxhighlight lang="css">
/* Styling for Template:Quote */
blockquote.templatequote {
Line 101 ⟶ 103:
}
</syntaxhighlight>
In HTML:
<syntaxhighlight lang="html">
<blockquote class="templatequote">
<p>Quote text.</p>
Line 110 ⟶ 112:
== Examples ==
{{markupv
|markup=<
|renders={{Quote|text=Cry "Havoc" and let slip the dogs of war.|character=Mark Antony|author=[[William Shakespeare]]|title=''[[Julius Caesar (play)|Julius Caesar]]''|source=act III, scene I}}▼
▲{{Quote|text=Cry "Havoc" and let slip the dogs of war.|character=Mark Antony|author=[[William Shakespeare]]|title=''[[Julius Caesar (play)|Julius Caesar]]''|source=act III, scene I}}
}}
Line 121:
If you do not provide text, the template generates a parser error message, which will appear in red text in the rendered page.
If any parameter's actual value contains an [[equals sign]] (<code>=</code>), you
If any parameter's actual value contains characters used for wiki markup syntax (such as [[vertical bar|pipe]], [[brackets]], single quotation marks, etc.), you may need to escape it. See
=== Next to right-floated boxes ===
{{As of|2015|09|post=,}}
# removing the sizing on the upper item and letting it use its default size (e.g. removing <code>{{var|###}}x{{var|###}}px</code> sizing or {{para|upright}} from a right-floated image above a wider right-floated object that is being overflowed by quotation text; or
# using {{para|style|{{code|lang=css|code=overflow:inherit;}}}} in the quotation template.
There may be other solutions, and future browser upgrades may eliminate the issue. It arises at all because of the <
=== Vanishing quotes ===
In rare layout cases, e.g. when quotes are sandwiched between userboxes, a quotation may appear blanked out, in some browsers. The workaround for this problem is to add {{para|style|{{code|lang=css|code=overflow:inherit;}}}} to such an instance of the template.
=== Line breaks ===
{{Blockquote paragraphs}}
This template sets a text style which might ignore one blank line, and so the template must be ended with a break (newline) or the next blank line might be ignored. Otherwise, beware inline, as:<br />{{in5}}text here {{tlf|Quote|this is quoted}} More text here<br />spans a blank line, unless a {{tlf|Quote|...}} is ended with a line break, then the next blank line might be ignored and two paragraphs joined.
=== Nested quotations ===
The {{
=== Technical issues with block templates ===
|