Template:Blockquote/doc: Difference between revisions

Documenting the CSS the Template:Quote/to right of image variant uses; adding: →‎Attribution: New section.
(Documenting workaround for the left-floated images problem; grammar tweak)
(Documenting the CSS the Template:Quote/to right of image variant uses; adding: →‎Attribution: New section.)
Line 47:
</syntaxhighlight>
 
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>.
The source title is enclosed in {{tag|cite}}, thus it shows italicized.
 
==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.
 
 
=== Examples ===
Anonymous user