टेम्पलेट:Quote/doc: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
imported>SMcCandlish
→‎Limitations: link break
imported>SMcCandlish
updating for HTML5 changes to <cite> handling
लाइन 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]] {{tag|blockquote}} tags, and has additional pre-formatted attribution and source parameters. <!--for THIS WORKAROUND FAILED; see talk pageauthor and its archivessource. New workaround provided hereafter. It also contains a workaround for [[Bugzilla:6200]], which means you don't need to type {{tag|p}} tags manually. -->
 
'''Note:''' Block quotes do {{em|not}} normally contain quotation marks. See{{crossref|(see [[MOS:Blockquote]])}}.
 
=== Synopsis ===
 
;Basic use{{colon}}: <code><nowiki>{{Quote|text=Quoted material. |author=Attribution}}</nowiki></code>
;Basic use:
 
<code><nowiki>{{Quote|text=Quoted material. |author=Attribution}}</nowiki></code>
 
;Typical uses:
 
#<code><nowiki>According to Pat Doe, in "A New Model of Underwater Basketweaving" (2015): {{quote |text=Quoted material.<ref>...</ref>}}</nowiki></code>
#<code><nowiki>According to Pat Doe, in "A New Model of Underwater Basketweaving" (2015):<ref>...</ref> {{quote |text=Quoted material.}}</nowiki></code>
#<code><nowiki>One expert noted: {{quote |text=Quoted material. |author=Pat Doe, "A New Model of Underwater Basketweaving" (2015)<ref>...</ref>}}</nowiki></code>
 
=== Parameters ===
Line 28 ⟶ 20:
{{para|author}} a.k.a. {{para|2}} Attribution information that will appear below the quotation.
 
{{para|source}} a.k.a. {{para|3}} Title of the major work the quote appears in. This parameter (which immediately follows the output of {{para|author}}) is rarely used, (and an auto-italicizesgenerated allcomma); contentit withindoes itnot auto-italicize. ItMajor isworks used(books, forplays, thealbums, titlefeature (alonefilms, etc.) ofshould abe book,italicized; periodical,minor filmicworks work(articles, stagechapters, productionpoems, orsongs, theTV likeepisodes, notetc.) forgo minorin worksquotation marks {{crossref|(see [[#AttributionMOS:TITLES]], below, for details)}}.
 
==Attribution==
The source title in {{para|source}} is enclosed in {{tag|cite}}, thus it shows italicized, due to a default style being applied to the {{tag|cite|o}} element. Per [[MOS:TITLE]], italicization of titles should only be done for ''major works'' (books, journals, albums, movies and TV series, plays or operas, etc.), not for minor works, which are enclosed in quotation marks (chapters, articles, songs, episodes, scenes or acts, etc.). {{As of|2015|08|04}}, this unnecessary forced italicization has been reported to [[Mediawiki talk:Common.css#The cite element needs to not auto-italicize any longer]], for removal. It is unknown when it will be fixed. In the interim, the following approach to quotation attribution is recommended:
 
*<code><nowiki>{{quote |text=Lorem ipsum ... |author=Pat Doe, "Minor Work" (2015) |source=Major Work}}</nowiki></code>
 
If it is appropriate to include a full [[WP:CITE|source citation]] at this point, it can be done like so:
 
*<code><nowiki>{{quote |text=Lorem ipsum ...<ref>{{cite journal |first=Pat |last=Doe |title=Minor Work |work=Major Work |date=2015}}</ref>}}</nowiki></code>
 
If a full citation and an in-text attribution should appear:
 
==Reference citations==
*<code><nowiki>{{quote |text=Lorem ipsum ... |author=Pat Doe, "Minor Work", ''Major Work'' (2015)<ref>{{cite journal |first=Pat |last=Doe |title=Minor Work |work=Major Work |date=2015}}</ref>}}</nowiki></code>
{{anchor|Attribution|reason=Old section name}}
A [[WP:Citing sources|reference citation]] can be placed:
#* In the regular-prose introduction to the quotation: <code><nowiki>According to Pat Doe, in "A New Model of Underwater Basketweaving" (2015):<ref>...</ref> {{quote |text=Quoted material.<ref>...</ref>}}</nowiki></code>
* At the end of the quotation, when a quotation is given without {{para|author}} or {{para|source}} (e.g. because the material before the quote makes it clear who is being quoted): <code><nowiki>According to Pat Doe, in "A New Model of Underwater Basketweaving" (2015): {{quote |text=Quoted material.<ref>...</ref>}}</nowiki></code>
#* After the quoted person's name, in {{para|author}}, when a {{para|source}} is not being added: <code><nowiki>AccordingAs to Pat Doe,noted in "A New Model of Underwater Basketweaving" (2015):<ref>...</ref> {{quote |text=Quoted material. |author=Pat Doe<ref>...</ref>}}</nowiki></code>
#* After the source title, in {{para|source}} (the preferred location): <code><nowiki>One expert noted in 2015: {{quote |text=Quoted material. |author=Pat Doe, |source="A New Model of Underwater Basketweaving" (2015)<ref>...</ref>}}</nowiki></code>
 
Please do not place it 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 {{tnull|Quote}} template, as this will cause a:<br />{{in5}}{{fake ref}}<br />on a line by itself.
Until the problem with {{tag|cite|o}} is fixed, the {{para|source}} parameter has extremely limited application. After it is fixed, the entire {{para|author}}{{para|source}} block will likely be wrapped in {{tag|cite}}, and the parameters may be merged.
 
== Style ==
Line 65 ⟶ 52:
<blockquote class="templatequote">
<p>Quote text.</p>
<cite><div class="templatequotecite">—Author, <cite>Source</citediv></divcite>
</blockquote>
</syntaxhighlight>