Module talk:Citation/CS1/Feature requests/Completed: Difference between revisions

Content deleted Content added
archive some sections
not done--tag, link, sig, and archive
Line 398:
 
{{done}}. This change was implemented in the live CS1 module in September 2015. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 18:38, 21 October 2015 (UTC)
 
== Presentation and content ==
{{not done}} per [[MediaWiki_talk:Common.css/Archive_17#The_cite_element_needs_to_not_auto-italicize_any_longer]] --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 16:38, 16 March 2016 (UTC)
 
The CSS styling for {{tag|cite|o}} has been defaulted, so it now formats the contents as italics, while adding the semantic meaning of a title. Thus the current use of italics to format <ins>the main work</ins> title can be replaced by {{tag|cite}}.
 
{{markup
|<nowiki><cite>Title</cite></nowiki>
|<cite>Title</cite>
}}
--'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup> 01:04, 28 March 2013 (UTC)
* '''What a contorted way to confuse everyone everywhere:''' Everyone knows that most titles are to be placed in quotation marks, as article titles which far outnumber others. Historically, book titles were underlined, because in handwritten documents, the [[cursive]] script is somewhat italicized, and the underlined text was obviously a book/film title. In the search for distinctive vocabulary, we have been calling each "{&#123;cite_web|...}}" with the term "cite" as the markup used to display a citation. Then we introduce a cite-tag "&lt;cite>" which forces the rare use of italic text, to all text, within <code>&lt;cite>...&lt;/cite></code>. Naturally, most normal humans will begin to associate the term "cite text" with the styling as italic text. What a contorted way to confuse everyone, everywhere. I have a strong hunch the cite-tag will not be very much help in the long run. -[[User:Wikid77|Wikid77]] ([[User talk:Wikid77|talk]]) 04:12, 28 March 2013 (UTC)
:{{tag|cite|o}} would be used internally in the template, so I am confused as to how anyone would be confused. It has an HTML semantic value indicating the title of a work.[http://www.w3.org/TR/html-markup/cite.html] If we want to add the semantics for an included work title which is marked in quotes, then we can easily style the tag. And with almost half a million uses of cite book alone, I would not call the italic title rare. --'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup> 09:30, 28 March 2013 (UTC)
::Isn't this the problem the IP was discussing earlier, where we're really using the "title" paremeter for multiple semantic functions? [[User:Choess|Choess]] ([[User talk:Choess|talk]]) 18:11, 29 March 2013 (UTC)
:::I refactored the original proposal to indicate that by ''title'' I meant the main work title. Currently, we have no [[separation of presentation and content]]. That is, the format of the main work title is always italics, and the included work is always in quotes. This presentation should be moved to CSS. Wrapping the main work title in {{tag|cite}} will present the title in italics by default. We can add a class to present the included title in quotes.
:::Since this would be a new feature, I will be moving this to [[Module talk:Citation/CS1/Feature requests]]. --'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup> 18:53, 29 March 2013 (UTC)
::::To expand on [[separation of presentation and content]]: currently the templates include both content and presentation, that is the markup used to style the content as italics, in quotes or bold. Hard coding the presentation means that readers cannot style citations as they desire and it limits template portability. Presentation should be done in CSS. Currently the {{tag|cite|o}} tag has a default style of italics and has the semantic meaning of a title.
::::For an included work title that is presented in quotes, we can create a class with CSS styling. For example the class <code>includedtitle</code>:
{{syntaxhighlight|lang=css|
.includedtitle:before {font-style: normal; content: '\22';}
.includedtitle {font-style: normal;}
.includedtitle:after {font-style: normal; content: '\22';}
}}
::::Then you simply wrap the content in {{tag|cite|params=class="includedtitle"}} causing the font to show as normal and the content wrapped in quotes.
::::{{small|The HTML classes discussion does not include a class for the included work title, so I made up an illustrative class.}} --'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup> 14:58, 30 March 2013 (UTC)
:::::This allows the style to be customized per Wikipedia language version. In the CSS above, \22 is the hex code for the standard quote mark. This can be replaced with other marks: see [[Non-English usage of quotation marks]]. --''''' &nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup> 00:17, 12 April 2013 (UTC)