https://www.boywiki.org/en/index.php?title=Template:Quote/doc&feed=atom&action=historyTemplate:Quote/doc - Revision history2024-03-29T00:14:02ZRevision history for this page on the wikiMediaWiki 1.41.0https://www.boywiki.org/en/index.php?title=Template:Quote/doc&diff=17471&oldid=prevLysander: Created page with "{{Documentation subpage}} {{For|linking a subject to a collection of quotes on Wikiquote|Template:Wikiquote}} == Usage == {{tlx|Quote}} adds a block quotation to an ..."2015-03-06T03:03:48Z<p>Created page with "{{Documentation subpage}} {{For|linking a subject to a collection of quotes on <a href="/en/index.php?title=Wikiquote&action=edit&redlink=1" class="new" title="Wikiquote (page does not exist)">Wikiquote</a>|Template:Wikiquote}} == Usage == {{tlx|Quote}} adds a <a href="/en/index.php?title=Block_quotation&action=edit&redlink=1" class="new" title="Block quotation (page does not exist)">block quotation</a> to an ..."</p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<br />
{{For|linking a subject to a collection of quotes on [[Wikiquote]]|Template:Wikiquote}}<br />
<br />
== Usage ==<br />
{{tlx|Quote}} adds a [[block quotation]] to an article page.<br />
<br />
This is easier to type and more wiki-like than the equivalent [[HTML]] {{tag|blockquote}} tags and has additional pre-formatted attribution and source parameters. <!-- THIS WORKAROUND FAILED; see talk page and its archives. New workaround provided hereafter. It also contains a workaround for [[Bugzilla:6200]], which means you don't need to type {{tag|p}} tags manually. --><br />
<br />
'''Note:''' Block quotes do not normally contain quotation marks. See [[MOS:Blockquote]].<br />
<br />
=== Synopsis ===<br />
'''Unnamed (positional) parameters'''<br />
<code><nowiki>{{quote|phrase|person|source}}</nowiki></code><br />
This markup will fail if any parameter contains an equals sign (=).<br />
<br />
'''Numbered (positional) parameters'''<br />
<code><nowiki>{{quote|1=phrase|2=person|3=source}}</nowiki></code><br />
<br />
'''Named parameters'''<br />
<code><nowiki>{{quote|text=phrase|sign=person|source=source}}</nowiki></code><br />
<br />
== Style ==<br />
Styling is applied through CSS rules in [[MediaWiki:Common.css]].<br />
<syntaxhighlight lang=css><br />
/* Styling for Template:Quote */<br />
blockquote.templatequote {<br />
margin-top: 0;<br />
}<br />
blockquote.templatequote div.templatequotecite {<br />
line-height: 1.5em;<br />
/* @noflip */<br />
text-align: left;<br />
/* @noflip */<br />
padding-left: 1.6em;<br />
margin-top: 0;<br />
}<br />
</syntaxhighlight><br />
<br />
The source title is enclosed in {{tag|cite}}, thus it shows italicized.<br />
<br />
=== Examples ===<br />
<br />
{{markupv<br />
|markup=<nowiki>{{Quote|text=Cry "Havoc" and let slip the dogs of war.|sign=[[William Shakespeare]]|source=''[[Julius Caesar (play)|Julius Caesar]]'', act III, scene I}}</nowiki><br />
|renders=<br />
{{Quote|text=Cry "Havoc" and let slip the dogs of war.|sign=[[William Shakespeare]]|source=''[[Julius Caesar (play)|Julius Caesar]]'', act III, scene I}}<br />
}}<br />
<br />
=== Restrictions ===<br />
If you do not provide quoted text, the template generates a parser error message, which will appear in red text in the rendered page.<br />
<br />
If any parameter's actual value contains an [[equals sign]] (=), you '''''must''''' use named parameters or a blank-name parameter, as: <nowiki>{{{|text}}}</nowiki>. (The equals sign gets interpreted as a named parameter otherwise.)<br />
<br />
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 [[Template:!]] and friends.<br />
<br />
Be wary of URLs which contain restricted characters. The equals sign is especially common. Put a break (newline) after the template, or the next blank line might be ignored.<br />
<br />
=== Line breaks ===<br />
{{Blockquote paragraphs}}<br />
<br />
== TemplateData ==<br />
{{TemplateDataHeader}}<br />
<templatedata>{<br />
"description": "Adds a block quotation.",<br />
"params": {<br />
"text": {<br />
"label": "text",<br />
"description": "The text to quote",<br />
"type": "string",<br />
"required": false,<br />
"aliases": [ "1", "quote" ]<br />
},<br />
"sign": {<br />
"label": "sign",<br />
"description": "The person being quoted",<br />
"type": "string",<br />
"required": false,<br />
"aliases": [ "2", "cite" ]<br />
},<br />
"source": {<br />
"label": "source",<br />
"description": "A source for the quote",<br />
"type": "string",<br />
"required": false,<br />
"aliases": [ "3" ]<br />
}<br />
}<br />
}</templatedata><br />
<br />
== Known problems ==<br />
This template sets a text style which might ignore one blank line, and so the template must be ended with a break (newline). Otherwise, beware inline, as:<br />
::* text here <nowiki>{{quote|this is quoted}}</nowiki> More text here spans a blank line<br />
Unless a <nowiki>{{quote|xx}}</nowiki> is ended with a line break, then the next blank line might be ignored and two paragraphs joined.<br />
<br />
== See also ==<br />
{{Quotation templates}}<br />
<br />
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |<br />
| <!-- ADD CATEGORIES AFTER THIS LINE, PLEASE: --><br />
[[Category:Quotation templates]]<br />
<br />
[[la:Formula:Locus]]<br />
[[ro:Format:Cquote]]<br />
}}</includeonly></div>Lysander