Content deleted Content added
Create;` |
Added threads from Module_talk:Citation/CS1/Feature_requests |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 268:
:If I understand correctly, parameters are parsed by the MediaWiki software before they are passed to the CS1 module. By the time it gets to the module, previous parameters are already ignored. There is no way for a template or mudule to do this detection. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 21:42, 14 March 2014 (UTC)
::Oof, that's disappointing. I don't feel like starting a giant discussion about this, but would there be a valid reason for having two identical parameters in the same template? It seems to my naive self that this would always be an error that should be flagged by the MW software so that editors could fix this inadvertent mistake. Maybe there are some situations in which this arrangement is not an error, and I am just not clever enough to think of any. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 23:11, 14 March 2014 (UTC)
== Translator ==
Add 'translator' parameters. Should show preceded by "Translated by". --''''' [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup> 19:51, 1 April 2013 (UTC)
:I would appreciate this feature. Could you code this in the same way as authors and editors (eg: "last1=|first1=" etc.), as some works have multiple translators. [[User:Mindmatrix|<span style="color: #8b4513;">Mind</span>]][[User_talk:Mindmatrix|<span style="color: #ee8811;">matrix</span>]] 03:20, 2 April 2013 (UTC)
::Just like 'last' and 'first', there would be an unlimited number. --''''' [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup> 09:38, 2 April 2013 (UTC)
{{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)
== Add "authorn=et al." to a maintenance category ==
{{resolved}}
An idea posted by {{U|Trappist the monk}} elsewhere, recorded here for posterity: "Add code to Module:Citation/CS1 that will put citations with |authorn=et al. into a separate specific category."
I imagine this as a maintenance category rather than a "CS1 error" / "incorrect syntax" category. Let's discuss at some point to see if there are editors interested in filling in the remaining authors, editors who object to people doing so, or other opinions/ideas. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:53, 14 May 2014 (UTC)
:Also when et al. is included in {{para|first''n''}}.
:I think its an error condition; et al. is not an authors name, it is simply an indicator that there are unlisted authors. I'm wondering if there shouldn't be some mechanism by which editors can inform the template that not all authors are listed so that [[Module:Citation/CS1]] will add a properly formatted et al. to the citation but that same et al. won't be included in the [[COinS]] metadata (as happens now with {{para|author''n''|et al.}}). This is much like {{para|display-authors}} except that all of the authors included in the citation template are displayed followed by et al. – perhaps, {{para|etal|yes}} or something similar.
== arXiv class would be nice ==
{{resolved}}
Currently, supplying a parameter of the form "|arxiv=1409.7951 [physics.atom-ph]" produces a messy error:
{{Cite journal |title=Test of Time Dilation Using Stored Li<sup>+</sup> Ions as Clocks at Relativistic Speed |arxiv=1409.7951 [physics.atom-ph] |doi=10.1103/PhysRevLett.113.120405 |journal=Physical Review Letters |volume=113 |number=120405 |pages=1–5 |date=September 2014 |first1=Benjamin |last1=Botermann |first2=Dennis |last2=Bing |first3=Christopher |last3=Geppert |first4=Gerald |last4=Gwinner |first5=Theodor W. |last5=Hänsch |first6=Gerhard |last6=Huber |first7=Sergei |last7=Karpuk |first8=Andreas |last8=Krieger |first9=Thomas |last9=Kühl |first10=Wilfried |last10=Nörtershäuser |first11=Christian |last11=Novotny |first12=Sascha |last12=Reinhardt |first13=Rodolfo |last13=Sánchez |first14=Dirk |last14=Schwalm |first15=Thomas |last15=Stöhlker |first16=Andreas |last16=Wolf |first17=Guido |last17=Saathoff}}
And trying &#91; doesn't improve it all that much:
{{Cite journal |title=Test of Time Dilation Using Stored Li<sup>+</sup> Ions as Clocks at Relativistic Speed |arxiv=1409.7951 [physics.atom-ph] |doi=10.1103/PhysRevLett.113.120405 |journal=Physical Review Letters |volume=113 |number=120405 |pages=1–5 |date=September 2014 |first1=Benjamin |last1=Botermann |first2=Dennis |last2=Bing |first3=Christopher |last3=Geppert |first4=Gerald |last4=Gwinner |first5=Theodor W. |last5=Hänsch |first6=Gerhard |last6=Huber |first7=Sergei |last7=Karpuk |first8=Andreas |last8=Krieger |first9=Thomas |last9=Kühl |first10=Wilfried |last10=Nörtershäuser |first11=Christian |last11=Novotny |first12=Sascha |last12=Reinhardt |first13=Rodolfo |last13=Sánchez |first14=Dirk |last14=Schwalm |first15=Thomas |last15=Stöhlker |first16=Andreas |last16=Wolf |first17=Guido |last17=Saathoff}}
It would be nice if there were some way to include the arXiv class in new-style identifiers. It's not critical, but it's normally included in arXiv citations in print, and if it's [[WP:MOS]] to omit it, a comment in the template docs would be nice.
In Lua, I imagine simply expanding the syntax of legal arxiv identifiers would be simplest, but an additional template parameter in the style of [[Template:Cite arxiv]] is also okay. The latter allows a class, but has the problem that it's not possible to list journal, volume, issue, page numbers, etc. for papers that are published peer-reviewed:
{{Cite arxiv |title=Test of Time Dilation Using Stored Li<sup>+</sup> Ions as Clocks at Relativistic Speed |arxiv=1409.7951 |class=physics.atom-ph |doi=10.1103/PhysRevLett.113.120405 |journal=Physical Review Letters |volume=113 |number=120405 |pages=1–5 |date=September 2014 |first1=Benjamin |last1=Botermann |first2=Dennis |last2=Bing |first3=Christopher |last3=Geppert |first4=Gerald |last4=Gwinner |first5=Theodor W. |last5=Hänsch |first6=Gerhard |last6=Huber |first7=Sergei |last7=Karpuk |first8=Andreas |last8=Krieger |first9=Thomas |last9=Kühl |first10=Wilfried |last10=Nörtershäuser |first11=Christian |last11=Novotny |first12=Sascha |last12=Reinhardt |first13=Rodolfo |last13=Sánchez |first14=Dirk |last14=Schwalm |first15=Thomas |last15=Stöhlker |first16=Andreas |last16=Wolf |first17=Guido |last17=Saathoff}}
Thank you! [[Special:Contributions/71.41.210.146|71.41.210.146]] ([[User talk:71.41.210.146|talk]]) 12:30, 1 October 2014 (UTC)
:What is an arXiv class? --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 14:23, 1 October 2014 (UTC)
::The arXiv classification is explained [http://arxiv.org/help/faq/references here] and [http://arxiv.org/help/arxiv_identifier here]. The folks at arXiv.org recommend including it in citations, but we do not render it well. It appears to me that it would best be included in CS1 templates as a separate parameter to make validation, presentation, and linking easier. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:44, 1 October 2014 (UTC)
::: The arXiv used to assign submission identifiers that started with a subject classification. This was annoyig if a paper was originally misclassified; reclassifying it required assigning a new identifier. In 2007, they changed to a system where permanent identifiers were purely numerical, with the classification appended as extra information. It's not essential, but customarily appended as additional information about a paper. [[Special:Contributions/71.41.210.146|71.41.210.146]] ([[User talk:71.41.210.146|talk]]) 21:33, 1 October 2014 (UTC)
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 18:07, 14 May 2014 (UTC)
==Improve accessdate checking==
{{resolved}}
May be we could improve the accessdate checking to rule out improbable dates of access. Probably the date when wiki was started should be an earliest possible accessdate. Have just seen article [[List of department stores of the United Kingdom]] with some accessdates of 1914! [[User:Keith D|Keith D]] ([[User talk:Keith D|talk]]) 19:20, 7 December 2014 (UTC)
:Since {{para|access-date}} requires URL (and maybe also requires that Wikipedia existed), we could set a minimum year. The [[World Wide Web]] article says that the oldest known web page dates from 1991.
:We could also test the access-date for future dates. I believe that we already test the year for dates greater than next year (since publications like magazines can have next year in their date). – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 19:26, 7 December 2014 (UTC)
::What should be the limit for future access dates? It would seem that the minimum must be current server date+1 because 12:00:00 UTC today is 00:00:00 tomorrow in New Zealand.
::*{{#time:Y-m-d"T"H:i:s}} – UTC time when this page last refreshed ([http://en.wikipedia.org/w/index.php?title=Module_talk:Citation/CS1/Feature_requests&action=purge Purge])
::*{{#time:Y-m-d"T"H:i:s| +12 hours }} – NZST (UTC+12)
::*{{#time:Y-m-d"T"H:i:s| +13 hours }} – NZDT (UTC+13)
::Accepting current UTC date+1 allows editors to enter their local 'today's' date without error. If they use their local 'tomorrow's' date, there will be an error message for at most 24 hours after which there is no error.
::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 20:38, 7 December 2014 (UTC)
:::Looks good to me. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 22:16, 7 December 2014 (UTC)
::::Same here. [[User:Keith D|Keith D]] ([[User talk:Keith D|talk]]) 22:36, 7 December 2014 (UTC)
:::::Today+1 is fine with me. I sometimes enter a date that is tomorrow (to me) when it is already tomorrow in the UTC time zone (I know, UTC isn't really a time zone, but you get the idea). – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 00:04, 8 December 2014 (UTC)
::::::The current method of checking errors only considers information stored in the template (and could presumably consider the system time). If someone enters a date 2 days in the future, and no one does anything about it, after a day passes the error message will go away. I think that really diminishes the usefulness of the message. [[User:Jc3s5h|Jc3s5h]] ([[User talk:Jc3s5h|talk]]) 18:24, 14 January 2015 (UTC)
::::::: Do you have a proposal that is better than the one above? – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 23:28, 14 January 2015 (UTC)
:::::::: I don't have a better proposal. In a much more restricted editing environment, where the editing software knew that a citation was being entered (as in Microsoft Word) I would block the edit from happening at all, but the Wikipedia editing environment is too flexible for that. [[User:Jc3s5h|Jc3s5h]] ([[User talk:Jc3s5h|talk]]) 21:32, 15 January 2015 (UTC)
:::::::::So what's the current status of this request? If it makes a difference, I'm fine leaving future alone if it will get it moved in faster...[[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 22:44, 15 January 2015 (UTC)
Making notes to myself for this topic. [[mw:Extension:Scribunto/Lua_reference_manual#mw.language:formatDate]] refers to [[mw:Help:Extension:ParserFunctions#.23time]].
[[Wikipedia]] started 15 January 2001. Using <code><nowiki>{{#time:}}</nowiki></code> we can get the number of seconds since 1970-01-01T00:00:00 UTC for the dates 2001-01-15, keyword 'today', and keyword 'tomorrow':
*2001-01-15 → {{#time: U "seconds" T|January 15, 2001}} → {{#time: Y-m-d:h:i:s T|@979516800}}
*today → {{#time: U "seconds" T|today}} → {{#time: Y-m-d:h:i:s T|@1427932800}}
*tomorrow → {{#time: U "seconds" T|tomorrow}} → {{#time: Y-m-d:h:i:s T|@1428019200}}
So then the value in {{para|accessdate}} must not convert to less than 979516800 seconds nor more than {{#time: U "seconds"|tomorrow}} (tomorrow).
—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 17:56, 2 April 2015 (UTC)
:Sounds good to me![[User:Naraht|Naraht]] ([[User talk:Naraht|talk]]) 17:34, 8 May 2015 (UTC)
== et al. ==
{{resolved}}
:''see also: [[Module talk:Citation/CS1/Feature requests#Add "authorn=et al." to a maintenance category]]''
Detect "et al." in an author field. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 02:03, 14 December 2014 (UTC)
:And having detected it, what then?
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 03:13, 14 December 2014 (UTC)
::Trigger an error. I have recently found it in author fields for some reason. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 23:31, 14 December 2014 (UTC)
:::Yeah, so have I. In fact, Monkbot, when it finds et al. in {{para|coauthors}}, is guilty of converting it to {{para|author''n''|et al.}} But I guess I was looking for some sort of idea about what should be done instead of simply adding an error message. What do we suggest that editors should do to get CS1/2 to display et al. outside of misusing {{para|author}}, {{para|last}}, and {{para|first}}? Do we tweak the definition of {{para|display-authors}} so that when {{para|display-authors|et al}} the rendered author list has et al. but the COinS data does not. This might also be applied to {{para|display-editors}}. We could invent {{para|et-al-author}} and {{para|et-al-editor}} or some such similar to do the same sort of thing. We'd need to worry about interaction with {{para|display-authors|''n''}} when the author list has more than ''n'' authors so that {{para|display-authors}} and {{para|et-al-author}} don't both add et al. to a rendered citation.
:::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 11:36, 15 December 2014 (UTC)
::::I usually see {{para|author}} or {{para|authors}} with multiple authors and et al. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 14:36, 15 December 2014 (UTC)
==Extra checking of URL & title==
Hi, I think that there should be some additional checking on the {{para|url}} and {{para|title}} fields and setting up tracking categories so that they can be looked at and fixed appropriately.
For the {{para|url}} check if there is text in the field other than the URL, easiest way to do this would be to check for mid-string white space. This would pick up things such as [https://en.wikipedia.org/w/index.php?title=2014_NYPD_officer_killings&diff=prev&oldid=667414396 this].
A converse would be to check for a URL in the {{para|title}} field as you should not get URLs in the title. This would pick up the inclusion of unnecessary details such as [https://en.wikipedia.org/w/index.php?title=Grigor_Dimitrov&diff=prev&oldid=667413052 this].
[[User:Keith D|Keith D]] ([[User talk:Keith D|talk]]) 22:44, 17 June 2015 (UTC)
:Part of this request was discussed in a [[Help_talk:Citation_Style_1/Archive_7#A_proposed_new_error_to_detect:_URL_in_.7Ctitle.3D|previous conversation]], although it does not appear that any action was taken based on that discussion. [[Help talk:Citation Style 1]] is usually a better forum for these conversations, in any event; it has more watchers. I recommend that you start two separate threads on that page, since this is really two different feature requests. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 04:34, 18 June 2015 (UTC)
::{{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)
==Suppress original URL==
Based on [https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:WikiProject_Spam&curid=2735348&diff=675426637&oldid=675311321 this IP edit], I made [https://en.wikipedia.org/w/index.php?title=Da_Hip_Hop_Witch&diff=675432042&oldid=666009787 this change] to [[Da Hip Hop Witch]]. The cite templates force the display of the original URL once an archived link is provided, and unfortunately in this case, provides a link to a Paypal request. I've seen other original links leading to linkfarms or other undesirable links.
Can we add a feature to suppress the display of the original URL in such cases? [[User:Mindmatrix|<span style="color: #8b4513;">Mind</span>]][[User_talk:Mindmatrix|<span style="color: #ee8811;">matrix</span>]] 15:23, 10 August 2015 (UTC)
:I presume that we could extend the functionality of {{para|dead-url}} to include some sort of meaningful code word that would serve the purpose of rendering the citation with just the archived message without the link. What should that code word be?
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 15:51, 10 August 2015 (UTC)
::Maybe {{para|dead-url|hide}}? – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 18:36, 10 August 2015 (UTC)
::Perhaps {{para|dead-url|nolink}}?
::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 12:55, 11 August 2015 (UTC)
:::I think I'd prefer something which is better represents the semantics of the problem, in this case that the original link is spam or at the least "undesirable". Not quite sure of a good keyword for that. "origspam" or "originalspam". --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 13:26, 11 August 2015 (UTC)
::::I had exactly that thought but my poor little brain isn't finding the right term. I did think of <code>spam</code> but that to me connotes [[spamming]] or [[spam (email)]], not a usurped or expired ___domain name. I also thought about <code>advert</code>, but this case isn't that; <code>phishing</code>, <code>fraud</code> also came to mind.
::::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 13:42, 11 August 2015 (UTC)
:::::I was thinking that the parameter value should describe the function, not the purpose. There could be multiple reasons for hiding the original URL. Hence "hide" or "nolink". – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:02, 11 August 2015 (UTC)
::::::The problem I have with function over purpose is that function enables behavior that may not be desirable. For example, I can't think of ''any'' reason other than a link being a "bad" link to be correct to hide. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 14:05, 11 August 2015 (UTC)
:::::::<code>unfit</code> meaning not approriate?
:::::::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 14:12, 11 August 2015 (UTC)
::::::::What about <code>usurped</code>? [[User:Mindmatrix|<span style="color: #8b4513;">Mind</span>]][[User_talk:Mindmatrix|<span style="color: #ee8811;">matrix</span>]] 15:00, 11 August 2015 (UTC)
{{mdt|Help talk:Citation Style 1/Archive 9#Suppress original URL}}
{{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>
}}
--'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''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 "{{cite_web|...}}" with the term "cite" as the markup used to display a citation. Then we introduce a cite-tag "<cite>" which forces the rare use of italic text, to all text, within <code><cite>...</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. --'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''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]]. --'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''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.}} --'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''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]]. --''''' [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup> 00:17, 12 April 2013 (UTC)
== Fix bug causing spurious "Check |url= value" warnings on single-letter subdomains of 4-or-more-letter gTLDs (e.g. "z.cash") ==
The is_domain_name function incorrectly considers <single letter>.<4-or-more-letter gTLD> not to be a valid ___domain.
See https://en.wikipedia.org/wiki/Zcash#References for an example; "z.cash" is incorrectly considered not to be a valid ___domain. (See https://www.iana.org/domains/root/db/cash.html for the delegation record of ".cash".) The fix is straightforward.
[[User:Daira Hopwood|Daira Hopwood ⚥]] ([[User talk:Daira Hopwood|talk]]) 02:36, 8 August 2017 (UTC)
:Fixed in the sandbox.
::<code><nowiki>{{Cite web/new|url=https://z.cash/about.html|title=Zcash - About}}</nowiki></code>
:::{{Cite web/new|url=https://z.cash/about.html|title=Zcash - About}}
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 11:00, 8 August 2017 (UTC)
:Thanks :-) [[User:Daira Hopwood|Daira Hopwood ⚥]] ([[User talk:Daira Hopwood|talk]]) 12:44, 8 August 2017 (UTC)
== Suppress spurious warning about zero-width joiner ==
<nowiki>{{cite web|title=തിരുവിതാംകൂര്|language=Malayalam}}</nowiki> on the [[Travancore]] article displays with a warning:
* {{cite web|title=തിരുവിതാംകൂര്|language=Malayalam}}
The zero-width joiner is at the very end and is needed for the title to render correctly.
* തിരുവിതാംകൂര്‍ - title with the zero-width joiner
* തിരുവിതാംകൂര് - title without the zero-width joiner
I see that the citation templates support {{para|ignore-isbn-error|true}} to suppress warnings about the ISBN. Can support for {{para|ignore-title-error|true}} be added to suppress warnings about the title field's content?
See [[Zero-width joiner#Examples]] for how the zero-width joiner and also [[Zero-width non-joiner#Use of ZWNJ to display alternate forms]] are used to control the rendering of Indic scripts. http://unicode.org/review/pr-37.pdf goes into technical details.
Another option, would be for you to check the language field and if it's set to one of the [[Brahmic scripts]], [[Indo-Aryan languages]], or [[Arabic script]]s to suppress the warnings about ZWJ and ZWNJ. --[[User:Marc Kupper|Marc Kupper]]|[[User talk:Marc Kupper|talk]] 00:47, 6 June 2016 (UTC)
: I thought of a work-around that does not involve changing the template. Instead, the title can be entered using [[HTML entities]]. Here's the {{tl|cite web}} used in the previous example but using the entities &#x0D24;...&#x200D; rather than UTF-8 as before.
:* {{cite web|title=തിരുവിതാംകൂര്‍|language=Malayalam}}
:Or, I can enter the title in UTF-8 except for the zero width joiner which I entered as an HTML entity.
:* {{cite web|title=തിരുവിതാംകൂര്‍|language=Malayalam}}
:There's no warning about the zero width joiner character though I did use one. The downsides are 1) people are used to copy/pasting UTF-8 strings and would need to convert them to HTML entities. 2) If the entire title is converted then it's no longer human readable when in edit-mode and is confusing to humans should just the zero-width joiners be entered as entities.
: Another way to code the template check which is to see if any characters in the string being examined are part language blocks that uses characters such as the zero-width joiner and to then suppress warnings about the zero-width joiners. All 13 characters in the example title prior to the zero-width joiner were in the [[Malayalam (Unicode block)]] which runs from U+0D00 to U+0D7F. --[[User:Marc Kupper|Marc Kupper]]|[[User talk:Marc Kupper|talk]] 01:22, 8 June 2016 (UTC)
::Please let us not go back to 2004 with HTML entities.
::These are valid Unicode characters, which are required in these languages, and which can be easily typed using keyboards for these languages.
::The right thing would be to check the language automatically and not show this error if it is one of the languages in which this character is valid, as you suggest initially. --[[User:Amire80|Amir E. Aharoni]] ([[User talk:Amire80|talk]]) 15:28, 20 July 2016 (UTC)
== Reporting apparent error in error indication ==
I was looking at [[Help:CS1#How the templates work]], and saw what looked like unintended error indications there as follows:
{{quote|CS1 templates present a citation generally as:
* With author:
:{{Cite journal |last=Author |date=Date |title=Title |work=Work |publisher=Publisher |id=Identifiers |template doc demo=true}}
* Without author:
:{{Cite journal |date=Date |title=Title |work=Work |publisher=Publisher |id=Identifiers |template doc demo=true}}
}}
:(note: wikitext for above copied from ''Help:CS1#How the templates work'')
I'm guessing that this comes from the handling of the <code><nowiki>|template doc demo=true</nowiki></code> parameter which is passed there to {{tl|Cite journal}}. I would be outside my comfort zone to pursue this further myself, so I am reporting it here. [[User:Wtmitchell|Wtmitchell]] [[User talk:Wtmitchell|(talk)]] <small>(earlier ''Boracay Bill'')</small> 22:24, 25 April 2017 (UTC)
:Not a feature request, how did you end up here?
:{{para|template doc demo|true}} does not prevent error messages; it only prevents this page from being included in {{cl|CS1 errors: dates}}. To get rid of the error message, those citations will require a valid date: {{para|date|Date}} is not a valid date; or, the citations should be handwritten without using the templates.
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 22:37, 25 April 2017 (UTC)
== prearchive for deadurl ==
Add {{para|prearchive|yes}} as an alias to {{para|deadurl|no}}. Negative logic like setting a parameter to false to enable a feature is foreign to the average editor. 'prearchive' better describes the feature for preemptively archiving the link. --''''' [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup> 16:30, 6 April 2013 (UTC)
:I am seeing a number of uses of {{para|deadurl|yes}} which is meaningless. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 12:37, 31 October 2014 (UTC)
== Check for wikilink to current page ==
If a citation includes a wikilink to the current page, it becomes bolded:
{{markup
|<nowiki>{{cite book |title=[[Module talk:Citation/CS1/Feature requests]]}}</nowiki>
|{{cite book |title=[[Module talk:Citation/CS1/Feature requests]]}}
}}
Propose: If the wikilink is to the current page, then remove the linking. --''''' [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup> 16:18, 12 April 2013 (UTC)
:If this is done, it should be done via CSS. Removing the irrelevant italics, the output is styled
::<nowiki><span class="citation book"><strong class="selflink">Module talk:Citation/CS1/Feature requests</strong></span></nowiki>
:Setting ".citation .selflink { font-weight:normal; }" will remove the bold. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 18:05, 12 April 2013 (UTC)
:If this is done, then it should apply to all links. I've seen lists of books in author pages where the list is constructed with CS1 templates that include {{para|authorlink}}. See [[Andrew_Hunt_(historian)#Bibliography|Andrew Hunt §Bibliography]].
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 14:43, 27 April 2013 (UTC)
::Yes, the suggested CSS would eliminate the bolding associated with such links regardless of where they occur in the citation. Adding that (or not) doesn't actually affect the Module, it would need to go in [[Mediawiki:Common.css]] (or similar). [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 16:36, 27 April 2013 (UTC)
:::Yep, it does. Tested in my common.css and citation wikilinks to the current page aren't '''{{tag|strong|s}}''' anymore. I gather that this change needs to be made to [[MediaWiki:Common.css]]. Shall I make an edit request there?
:::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 11:43, 28 April 2013 (UTC)
:It would make more sense to me to throw an error in these cases for correction, as these items of various types (author/title) probably just shouldn't have the links rather than being removed by the template. Where an error might get messy would be in things like cite doi, which are by their nature not necessarily on the page which is linked. Hmm. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 03:44, 28 April 2013 (UTC)
::I'm inclined to disagree. There is nothing ''wrong'' with wikilinks that point to the current page as long as the link is disabled in the citation. This allows editors to reuse whole citations; it allows {{xtag|section}} to transclude text from one article to another with self-linking citations intact. I don't see a need for error messages here.
::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 11:43, 28 April 2013 (UTC)
:::And citation templates. I agree with Trappist. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 13:06, 28 April 2013 (UTC)
::::Just exploring another option. I'm not particularly attached to it. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 13:20, 28 April 2013 (UTC)
:::::The CSS can deal easily with redirects and wikilinks that occur in places other than link parameters. Trying to accomplish the same breadth of error checking in Module logic would be performance prohibitive. One could check a few of the obvious parameters, e.g. authorlink, but I don't really see how that improves over the CSS suggestion. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 22:13, 20 May 2013 (UTC)
:I'd suggest that people make a request for this at [[MediaWiki talk:Common.css]]. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 22:13, 20 May 2013 (UTC)
== [[Template:Cite wikisource]] ==
Could anybody move it to Lua? --[[User:DixonD|DixonD]] ([[User talk:DixonD|talk]]) 09:26, 10 May 2013 (UTC)
:it has some novel parameters, including the unique facility of editor-specified page section links ({{para|anchor}}). in the doc, this parameter perhaps belongs under "In-source locations" rather than under "Title"? while useful, the parameter name '''anchor''' is confusing and should be more user-friendly.
:i also like that any or all wikisource-related icons can be hidden.
:the doc also misidentifies '''type''': this parameter does not provide "additional information about the media type of the source". the medium is fixed for all wikisource sources: it is a digital, online host, formatted as a wiki. as documented at the template page, '''type''' provides information about the {{em|work classification}} or {{em|work type}} of the source.
:[[Special:Contributions/70.19.122.39|70.19.122.39]] ([[User talk:70.19.122.39|talk]]) 17:45, 11 May 2013 (UTC)
:I've done a few more conversions this last weekend. I've been handling these roughly in order by number of transclusions. The 1100 uses of cite wikisource is roughly in the middle of the list of what is left. We'll probably get to it eventually, but it will likely be months before all of the 20+ minor templates are converted. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 22:38, 20 May 2013 (UTC)
== Chapter and section ==
Why is there a restriction on using "chapter" and "section" at the same time? It seems to me there are legitimate need for the two to be used at the same time.Here is a book which has volume, sections and chapters:
*Bowen, Dr. Henry Lee; 1953; "Chapter 9. Victory in China"; ''The Army Air Forces in World War II''; Volume V The Pacific: Matterhorn to Nagasaki June 1944 to August 1945; Section II, Aid to China: The Theater Air Forces in CBI; University of Chicago Press.
-- [[User:PBS|PBS]] ([[User talk:PBS|talk]]) 13:33, 14 June 2013 (UTC)
:'section' originates from {{tl|cite manual}}. When I merged it into {{tl|cite book}}, I made 'section' and 'chapter' aliases. See below for more. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 17:42, 14 June 2013 (UTC)
::I think that is not the best way to go. I have shown you above an example of where a book uses sections and chapters. -- [[User:PBS|PBS]] ([[User talk:PBS|talk]]) 09:27, 15 June 2013 (UTC)
== strip wikilinks from page, pages, at ==
This citation:
:{{citation |last=Cornelius Tacitus |first=Publius |author-link=Tacitus |title=[[s:la:De origine et situ Germanorum|De origine et situ Germanorum]] ''(On the Origin & Situation of the Germans)'' |at=[[s:la:De origine et situ Germanorum (Germania)#XL|Cap. XL]] |year=98 |ref={{harvid|Tacitus|98}} }}
uses
:{{para|at|<nowiki>[[s:la:De origine et situ Germanorum (Germania)#XL|Cap. XL]]</nowiki>}}
the module does not know how to strip the markup before adding it to the COinS.
—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 13:19, 4 June 2015 (UTC)
== Sfnref ==
Integrate {{tl|sfnref}} into the CS1 templates. This would take two parameters: {{para|sfnref}} and {{para|sfnyear}}. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 12:45, 31 March 2014 (UTC)
== postscript check ==
Check for 'postscript' with more than one character. I'm seeing some odd stuff inserted. --''''' [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup> 19:30, 6 April 2013 (UTC)
:My present reaction is that it may be too late for this. There appear to be too many people doing things like {{para|postcript|<nowiki><!-- None --></nowiki>}}, plus [[User:Citation bot]] has been putting a message about {{tl|inconsistent citations}} in the postscript. Insisting that it ought to be only one character seems a bit futile at this point. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 22:25, 20 May 2013 (UTC)
::Perhaps just a hidden tracking category to see what is out there. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 02:04, 21 May 2013 (UTC)
== Part ==
A part= parameter would be useful, see for example:
* [http://wiki.fibis.org/index.php?title=Military_periodicals_online#The_United_Service_Journal_and_Naval_and_Military_Magazine The United Service Journal and Naval and Military Magazine] where there are volumes divided into two parts for each year in the volume.
*{{Cite Notitia Parliamentaria |part=1}}
*{{Cite Notitia Parliamentaria |part=2}}
-- [[User:PBS|PBS]] ([[User talk:PBS|talk]]) 13:41, 14 June 2013 (UTC)
:Also useful would be column (col.), paragraph (para.); track; hours, minutes and seconds; act, scene, canto, book, part, folio, stanza, back cover, liner notes, indicia, colophon, dust jacket, verse and probably a lot more. But this is why we have the catchall 'at' field where you can add free text where 'chapter' and 'page' don't exactly fit. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 17:45, 14 June 2013 (UTC)
::By that argument volume may as well be removed! A difference is made between chapter and page. A similar difference needs to be made between volume and part. In parts page numbering often restarts. Most of the items you have listed in your first sentence are attributes of the same physical book (and are other ways of pinpointing information within a physical book). Part is different, it frequently describes a physical book with its own page numbering. -- [[User:PBS|PBS]] ([[User talk:PBS|talk]]) 09:26, 15 June 2013 (UTC)
== Partial links in title ==
{{mdt|Help talk:Citation Style 1#Partial links in title}}
—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 18:57, 30 July 2019 (UTC)
|