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

Content deleted Content added
imported>SMcCandlish
Documenting the CSS the Template:Quote/to right of image variant uses; adding: →‎Attribution: New section.
imported>SMcCandlish
reorganizing
लाइन 9:
 
'''Note:''' Block quotes do {{em|not}} normally contain quotation marks. See [[MOS:Blockquote]].
 
'''Next to left-floated images''': The variant template {{tlx|Quote/to right of image}} will work around a CSS bug, in which the block quotation does not indent if it is next to a left-floated image. {{As of|2015|08|04}}, this problem and the fix for it has been reported to [[Mediawiki talk:Common.css#Fix for very long-standing problem of blockquote not working with images]]. It is not known when this will be fixed. After it is fixed, this variant template can be replaced with the stock {{tlx|Quote}}.
 
=== Synopsis ===
Line 22 ⟶ 20:
'''Named parameters'''
<code><nowiki>{{quote|text=phrase|author=person|source=source}}</nowiki></code>
 
==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:
 
*<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>
 
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 49 ⟶ 62:
The {{Cite|Quote/to right of image}} variant of the template adds <code>margin-left: 0; margin-right: 0; padding-left: 2.8em; padding-right: 2.8em;</code> to <code>blockquote.templatequote { }</code>.
 
==Attribution Examples ==
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:
 
*<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>
 
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.
 
 
=== Examples ===
 
{{markupv
Line 73 ⟶ 70:
}}
 
=== Restrictions ===
If you do not provide text, the template generates a parser error message, which will appear in red text in the rendered page.
 
Line 82 ⟶ 79:
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.
 
As noted above, the {{para|source}} parameter will forcibly italicize all content in it; this is often undesirable, in which case include the material in the {{para|author}} parameter.
==== Vanishing quotes ====
 
=== Next to left-floated images ===
'''Next to left-floated images''': The variant template {{tlx|Quote/to right of image}} will work around a CSS bug, in which the block quotation does not indent if it is next to a left-floated image. {{As of|2015|08|04}}, this problem and the fix for it has been reported to [[Mediawiki talk:Common.css#Fix for very long-standing problem of blockquote not working with images]]. It is not known when this will be fixed. After it is fixed, this variant template can be replaced with the stock {{tlx|Quote}}.
 
==== 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|overflow:inherit;}} to such an instance of the template.
 
==== Line breaks ====
{{Blockquote paragraphs}}