User talk:Salix alba/Citoid
I have not yet used this but while it's still early days you might want to consider date formats in parameters like |date=
and |accessdate=
. In the example image, |date=2014-08-31T09:28EDT
and |accessdate=Sun Aug 31 2014
will cause CS1 errors. CS1 supports year initial dates but not ISO 8601. Similarly, month initial dates require a comma between the day and the year portion and day-of-week is not supported. See Help:Citation Style 1#CS1 compliance with Wikipedia's Manual of Style.
- Beaumont, Peter (2014-08-31T09:28EDT). "Israel estimates cost of Gaza conflict at £1.5bn". The Guardian. ISSN 0261-3077. Retrieved Sun Aug 31 2014.
{{cite news}}
: Check date values in:|accessdate=
and|date=
(help)
You might also consider using the css specified at Help:CS1 errors#Controlling error message display so that you can see a CS1 citation displays an error message; as the example above does.
If you've got any questions about CS1, there are several knowledgable editors at Help talk:Citation Style 1 who are delighted to help.
—Trappist the monk (talk) 19:17, 31 August 2014 (UTC)
- Good points. Version 0.01 just uses the vanilla output from citoid. I've now changed it to use the 31 August 2014 format. Is there are preferred format?--Salix alba (talk): 20:12, 31 August 2014 (UTC)
- No preferred format. Any format that is acceptable in the eyes of WP:DATESNO is acceptable in CS1 citations. You would probably get more push-back if you were to choose year initial numeric format over either mdy or dmy. When Module:Citation/CS1 assembles a date from
|day=
,|month=
, (both now deprecated) and|year=
, it uses dmy format so you're choice is in keeping with whomever made the decision that{{citation/core}}
and now Module:Citation/CS1 would use dmy format.
- No preferred format. Any format that is acceptable in the eyes of WP:DATESNO is acceptable in CS1 citations. You would probably get more push-back if you were to choose year initial numeric format over either mdy or dmy. When Module:Citation/CS1 assembles a date from
- Presumably, since this tool is somewhat interactive, users might, in a future version, choose the format that they prefer? Very often, the format for
|date=
may be either dmy or mdy but for|accessdate=
, editors will use year initial numeric. Can this tool read the article page and discover{{use dmy dates}}
or{{use mdy dates}}
templates and then act accordingly? I don't know what 'accordingly' is but it could be that the presence of one of these templates in an article would override user preference for date format.
- Presumably, since this tool is somewhat interactive, users might, in a future version, choose the format that they prefer? Very often, the format for
- Yeah, I'm blathering, I'll shut up now.
- —Trappist the monk (talk) 21:05, 31 August 2014 (UTC)
- Pinging @Mvolz: as this also effects the VE plugin User:Mvolz/veCiteFromURL. I've use function --Salix alba (talk): 22:20, 1 September 2014 (UTC)
- Thanks, and awesome that you're using it! Just an FYI, API is likely to change a lot soon. I'll let you know when though, you're on my radar! Mvolz (talk) 16:12, 4 September 2014 (UTC)
- I've now added a radio button to select the date format.--Salix alba (talk): 22:20, 1 September 2014 (UTC)
- —Trappist the monk (talk) 21:05, 31 August 2014 (UTC)
Citoid script improvements
[edit]- copied from my main talk page
Heya, I really like your script, however I noticed a few minor annoyances that were easily fixable. Warning: I don't know javascript (or any other programming language for that matter) at all.
1) The citationParams PMID ('pmid': 'PMID',) and PMCID ('pmc': 'PMCID',) for Cite journal definitely are a must-have (currently missing), random example study output enhances from "doi=10.1186/s13011-016-0072-3" to "pmid=27528233|pmc=4986270|doi=10.1186/s13011-016-0072-3" - two less values to enter manually!
2) Another small thing is the res var, not sure if it's intentional and I'm missing something here, but < ref > tags around the brackets sound like a good idea to me.
3) If PMCID is provided, Template:Cite journal creates the clickable URL automatically, so we don't need to duplicate it. Ugly hack: "if (citation.PMCID) {citation.url = null;}".
Also accessdate and via are generally not used in journal citations (debatable I guess, disabled it in my copy at least). Thanks! Aethyta (talk) 11:16, 19 August 2016 (UTC)
- OK I'll try and fix it in the main version. I'm having problems editing at the moment, so it might take some time. --Salix alba (talk): 16:29, 19 August 2016 (UTC)
- Now updated.--Salix alba (talk): 07:11, 24 August 2016 (UTC)
It hasn't worked for me for months
[edit]If ever. I have it at User:Piotrus/vector.js, I do see a Citoid link on the left toolbar, I get a pop up window to appear, I paste in the URL, click the generate button, and nothing ever happens. I have tried Firefox and Chrome. What could be the problem? PS. To be clear, the script does not work in edit/read modes. In Visual Editor, the cite autoformatting works perfectly, both if accessed through the cite button at the top, or through the citoid button on the left (in other words, the script seems only to execute in the Visual Editor mode for me). --Piotr Konieczny aka Prokonsul Piotrus| reply here 05:27, 12 September 2016 (UTC)
Date format
[edit]I have noticed for a while that when choosing the date format from the pop up, the mdy format is always ignored. The ISO 6801 and dym formats work but selecting the mdy format will return the ISO 6801 format. – The Grid (talk) 18:17, 17 December 2021 (UTC)
Script errors.
[edit]Hi. Script works great! However, I get errors, and it won't generate anything if I use a 404 URL or maybe the problem is with non-English URLs that need to be translated. I've had a couple non-English 404s give me "status" errors so I figure it must be the 404 thing. This kinda sucks because I need expand a bare reference before I can archive it with the archive tool or else it gets archived from a bare reference format. Huggums537 (talk) 19:15, 11 June 2023 (UTC)