Template talk:Cite Q

Latest comment: 17 days ago by Headbomb in topic Cite Q mixes JFM and ZBL

WikiProject iconWikidata
WikiProject iconThis template is within the scope of WikiProject Wikidata, a collaborative effort to improve Wikipedia's integration with Wikidata.
If you would like to participate, please visit the project page.
WikiProject iconReference works NA‑class (inactive)
WikiProject iconThis article is within the scope of WikiProject Reference works, a project which is currently considered to be inactive.
NAThis article has been rated as NA-class on Wikipedia's content assessment scale.

How do I add doi access? edit

I've decided to start working on Category:CS1 maint: unflagged free DOI errors, and this template keeps popping up. Short of replacing it with a normal cite journal, what's the best practice? Never mind, it seems like it accepts |doi-access=free correctly, disregard ~ฅ(ↀωↀ=)neko-channyan 17:35, 30 November 2023 (UTC)Reply

The editor who wrote Wikipedia:Wikipedia_Signpost/2023-12-04/In_focus wonders if there is some way to fix this at Wikidata. If there is not, that would be helpful to know. – Jonesey95 (talk) 16:03, 4 December 2023 (UTC)Reply
You can add |doi-access=free to a {{cite q}} template:
without:
{{Cite Q|Q99410785}}
Chun-Kai (Karl) Huang; Cameron Neylon; Richard Hosking; Lucy Montgomery; Katie S Wilson; Alkim Ozaygen; Chloe Brookes-Kenworthy (14 September 2020). "Meta-Research: Evaluating the impact of open access policies on research institutions". eLife. 9. doi:10.7554/ELIFE.57067. ISSN 2050-084X. PMC 7536542. PMID 32924933. Wikidata Q99410785.{{cite journal}}: CS1 maint: unflagged free DOI (link)
with:
{{Cite Q|Q99410785|doi-access=free}}
Chun-Kai (Karl) Huang; Cameron Neylon; Richard Hosking; Lucy Montgomery; Katie S Wilson; Alkim Ozaygen; Chloe Brookes-Kenworthy (14 September 2020). "Meta-Research: Evaluating the impact of open access policies on research institutions". eLife. 9. doi:10.7554/ELIFE.57067. ISSN 2050-084X. PMC 7536542. PMID 32924933. Wikidata Q99410785.
Trappist the monk (talk) 16:26, 4 December 2023 (UTC)Reply
Agreed, as the OP stated above. I was wondering if there is a way to fix it at the Wikidata item. Some templates that re-use Cite Q, like {{Academic peer reviewed}} (see this talk page section), do not appear to accept |doi-access=, so resolving the problem at the Wikidata end would be cleaner. – Jonesey95 (talk) 16:32, 4 December 2023 (UTC)Reply

No progress on this? This is really annoying. I would have thought @Pigsonthewing: or others Wikidatans would have had an idea here. Headbomb {t · c · p · b} 21:27, 13 January 2024 (UTC)Reply

Maybe @Mike Peel: has an idea? Headbomb {t · c · p · b} 03:20, 30 January 2024 (UTC)Reply
Or perhaps @Daniel Mietchen:? Headbomb {t · c · p · b} 03:24, 30 January 2024 (UTC)Reply
See See {{Cite Q|Q21999077}} for an example of how to use p953="full work available at URL" and P6954="online access status" to indicate open access status.
P. C. Orban; D. Chui; J. D. Marth (1 August 1992). "Tissue- and site-specific DNA recombination in transgenic mice". Proceedings of the National Academy of Sciences of the United States of America. 89 (15): 6861–6865. Bibcode:1992PNAS...89.6861O. doi:10.1073/PNAS.89.15.6861. ISSN 0027-8424. PMC 49604. PMID 1495975. Wikidata Q21999077.
That wikidata entry has specified the PMC link as the "full work available" link, but you can specify the doi link instead. StarryGrandma (talk) 21:41, 2 February 2024 (UTC)Reply
Ping @Headbomb as this is an old question. StarryGrandma (talk) 21:46, 2 February 2024 (UTC)Reply
Could you edit Q21999077 in the way it should be to have the DOI flagged as free? Headbomb {t · c · p · b} 22:46, 2 February 2024 (UTC)Reply
Good question. Why does the first example above link to the PMC without any such specification? Is it a default? In the example I gave do the properties I listed actually do anything? Will experiment. StarryGrandma (talk) 00:12, 3 February 2024 (UTC)Reply
In {{cite journal}} and {{citation}} (when it has |journal=), |pmc= with a valid value links |title= to the PMC. This choice was imposed upon cs1|2 by WP:MED long ago. I attempted to undo that choice but that brought out the angry hordes with their torches and pitchforks.
To override the automatic linking you can specify a value for |url=, you can set |title-link=none or, if |doi= is available and the template has |doi-access=free, you can set |title-link=doi.
Trappist the monk (talk) 00:33, 3 February 2024 (UTC)Reply
I was over-optimistic. The template code currently does not read those properties:
-- url = {id = "P953", maxvals = 1}, -- deal with this along with archive-url
There is a lot of "to be done" in the code. I can't see in the code how it generates the url field in the citation. I suspect it is generated from the PMC; if a paper has a PMC it is published open source. So the PMC link will always be marked open source. To mark another identifier as open source will have to be done on the Wikipedia side. StarryGrandma (talk) 01:07, 3 February 2024 (UTC)Reply
The question here is how do we get WikiData to have a property that marks not-always-free identifiers as free. |bibcode=free, |doi-access=free, |jstor=free, etc. Unlike the always free arxiv, pmcid, etc... and never free pmid, mr, etc... Headbomb {t · c · p · b} 20:56, 3 February 2024 (UTC)Reply
For this astronomy paper, using {{Cite Q|Q29392710}} displays
J. M. Lattimer; D. N. Schramm (December 1976). "The tidal disruption of neutron stars by black holes in close binaries". The Astrophysical Journal. 210: 549–567. Bibcode:1976ApJ...210..549L. doi:10.1086/154860. ISSN 0004-637X. Wikidata Q29392710.
Cite Q passes everything to the template {{citation}}. That template automatically links the doi url to the title because it somehow determines that the paper is open access, but it does not mark the identifier as open access. I think the solution is to mark the identifiers as open access in Wikidata. In that Wikidata entry I've added "online access status" (p6954) and value "open access" (q232932) as a property of the DOI statement. Since the open access indicator we want is a property of the identifier, not the resulting url, Cite Q could query for that property and value and mark the identifier as open access without having to implement any complications of dealing with url fields. StarryGrandma (talk) 19:53, 5 February 2024 (UTC)Reply
Umm, nope. In this case, {{cite q}} is using {{cite journal}} and feeding |url= from full work available at URL (P953) (http://articles.adsabs.harvard.edu/pdf/1976ApJ...210..549L) which more-or-less is duplicating the value assigned to ADS bibcode (P819) (1976ApJ...210..549L). Here is the expansion, before {{cite journal}} gets hold of it:
{{Cite journal |author-link1=James Lattimer |author-link2=David Schramm (astrophysicist) |author1=J. M. Lattimer |author2=D. N. Schramm |bibcode=1976ApJ...210..549L |doi=10.1086/154860 |id=Wikidata Q29392710 |issn=0004-637X |journal=The Astrophysical Journal |language=en |pages=549–567 |publication-date=December 1976 |title=The tidal disruption of neutron stars by black holes in close binaries |url=http://articles.adsabs.harvard.edu/pdf/1976ApJ...210..549L |volume=210}}
{{cite journal}} (or {{citation}} were that the named template) doesn't automatically [link anything] to the title except the value assigned to |url= or, when that is omitted or empty, |pmc=.
Trappist the monk (talk) 20:21, 5 February 2024 (UTC)Reply
"I think the solution is to mark the identifiers as open access in Wikidata"
Yes, this is what we've been asking since December. Headbomb {t · c · p · b} 22:52, 5 February 2024 (UTC)Reply

Looking for script or other way to convert Cite Q to CS1 template edit

I'm looking for some easy way to convert a Cite Q template instance to a CS1 template like {{Cite journal}} to fix CITEVAR problems. As an example, a helpful editor naively added a Cite Q template to Common pochard, where all of the citations are written in "Last, First" author format and a bot can easily fix missing |doi-access= information in CS1 templates. I would like to convert that Cite Q template to {{cite journal}} so that it is easier to fix the author information. Is anyone here familiar with a tool, script, template, or other method of resolving this common CITEVAR problem? Thanks in advance. – Jonesey95 (talk) 16:18, 4 December 2023 (UTC)Reply

Not a script but an 'other way'. {{cite q}} supports |expand=yes so:
{{Cite Q|Q99410785|doi-access=free|expand=yes}}
{{Cite journal |author-link2=Cameron Neylon |author1=Chun-Kai (Karl) Huang |author2=Cameron Neylon |author3=Richard Hosking |author4=Lucy Montgomery |author5=Katie S Wilson |author6=Alkim Ozaygen |author7=Chloe Brookes-Kenworthy |doi=10.7554/ELIFE.57067 |doi-access=free |id=Wikidata Q99410785 |issn=2050-084X |journal=eLife |language=en |pmc=7536542 |pmid=32924933 |publication-date=14 September 2020 |title=Meta-Research: Evaluating the impact of open access policies on research institutions |volume=9}}
Copy that output, paste over the original {{cite q}}, edit as you see fit, and publish.
Trappist the monk (talk) 16:36, 4 December 2023 (UTC)Reply
Oof, RTFM. I had searched for "convert" in the doc, but not "expand". – Jonesey95 (talk) 16:44, 4 December 2023 (UTC)Reply


Output causing template error edit

On the article Elachista ochroleuca, {{Cite Q}} is invoked to cite d:Q124030180, a journal article.

However, the output is throwing a template error ignoring the |journal= parameter, as if it were wrapping {{cite book}} instead of {{citation}} per the template documentation. Not sure what's going on here but I'm uncertain how to fix it. Folly Mox (talk) 05:27, 13 January 2024 (UTC)Reply

According to Google books and WorldCat the source is a book. It has an ISBN number rather than a doi. It is issue 19 of a series of publications, not a journal issue. StarryGrandma (talk) 08:16, 13 January 2024 (UTC)Reply
The problem is with the wikidata entry. Otago Conservancy Miscellaneous Report Series is treated as if it is a journal, using the wrong property designation ("published in" = P1433), when it is just a series of publications. Such reports are often in series of publications treated as books. The correct property is "series" = part of the series (P179). StarryGrandma (talk) 08:39, 13 January 2024 (UTC)Reply
SG is right. Either fix the Wikidata entry or use {{cite book}}. – Jonesey95 (talk) 14:49, 13 January 2024 (UTC)Reply
I have fixed it on wikidata:
Brian H. Patrick (1994). Valley floor Lepidoptera of Central Otago. Otago Conservancy Miscellaneous Report Series. Vol. 19. pp. 1–54. ISBN 0-478-01584-4. Wikidata Q124030180.
- StarryGrandma (talk) 15:51, 13 January 2024 (UTC)Reply
Thanks for the fixes. Is it incorrect then that {{Cite Q}} wraps {{Citation}}, and now chooses a template dynamically based on source type? I get how that would fix chapters, since {{Citation}} doesn't support them, but the documentation doesn't seem to reflect that. Folly Mox (talk) 01:50, 14 January 2024 (UTC)Reply
I get how that would fix chapters, since {{Citation}} doesn't support them Bullshit. See this example:
{{citation |chapter=Chapter |title=Title}}
"Chapter", Title
{{cite q}} internally selects {{cite book}}, {{cite journal}}, {{cite web}} or, when it can't decide, falls back on {{citation}}.
Trappist the monk (talk) 02:11, 14 January 2024 (UTC)Reply
Geez sometimes I wonder whether my device accesses a different mediawiki version but I accept it's probably just faulty memory. I might have been thinking of |trans-chapter= or |script-chapter=?? I feel like one of the set wasn't supported last summer. Is there like a table somewhere with one axis CS1|2 templates and one axis parameters, with little tick marks where they work together? I feel like I get this wrong all the time. Folly Mox (talk) 10:05, 14 January 2024 (UTC)Reply
{{citation |chapter=Chapter |script-chapter=ru:ScriptChapter |trans-chapter=TransChapter |title=Title}}
"Chapter" ScriptChapter [TransChapter], Title
Neither of those parameters are 'new'.
I made one of those grids once: 20-something columns by 120+ rows was pretty damn unwieldy so it got deleted.
Trappist the monk (talk) 14:15, 14 January 2024 (UTC)Reply
All right, maybe I'll try to build one in my userspace as a memory aid. Apologies for my confusion. Folly Mox (talk) 15:10, 14 January 2024 (UTC)Reply

Cite Q mixes JFM and ZBL edit

See P. A. M. Dirac (April 1934). "Discussion of the infinite distribution of electrons in the theory of the positron". Mathematical Proceedings of the Cambridge Philosophical Society. 30 (02): 150. doi:10.1017/S030500410001656X. ISSN 0305-0041. Wikidata Q60895121. Headbomb {t · c · p · b} 01:56, 11 March 2024 (UTC)Reply