Template talk:Cite Q

(Redirected from Module talk:Cite Q)
Latest comment: 3 days ago by Boud in topic Reminder for title-trans

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

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

Please make setting of display-authors and display-editors optional to avoid "Category:CS1 maint: overridden setting" edit

Please make setting of display-authors and display-editors optional to avoid "Category:CS1 maint: overridden setting", as there is currently no way to set it. Please make it via an argument and by looking go the "cs1 config" template, if specified in the article, on whether it contains display-authors or display-editors already set for the whole article, in this case, the Cite Q should not generate these attributes.

As seeing in some pages that use "Cite Q", such as Civilization, the "display-authors" are set in the "cs1 config" header, there is no need to overwrite the display-authors in particular templates, for consistency. Maxim Masiutin (talk) 21:38, 29 March 2024 (UTC)Reply

Ummm, what? In Civilization we have:
{{CS1 config|mode=cs1}}
and:
{{cite Q|Q106369892|mode=cs1}}
This is where the overridden setting comes from; nothing to do with |display-authors=. To fix Civilization delete |mode=cs1 from the {{cite q}} template.
Trappist the monk (talk) 21:58, 29 March 2024 (UTC)Reply
Thank you for your explanation. I removed "|mode=cs1" from "cite Q" and it worked. Maxim Masiutin (talk) 00:22, 30 March 2024 (UTC)Reply

Reminder for title-trans edit

Just a reminder that as int21h asked on 30 Jan 2022 and I asked on 23 July 2023, it would be nice to be able to use something like d:Property:P2441 so that an article such as d:Q24293504 or d:Q125941907 automatically shows up with the |trans-title= parameter in the en.Wikipedia including the English translation of the title if that is available with P2441, or the equivalent template in ja.Wikipedia shows the Japanese translation in addition to the English original if P2441 is used there (currently Q24293504 using the preferred ranking vs the normal ranking). A temporary workaround is to add |trans-title=Whatever the Translation is as an override in {{cite Q}}. Boud (talk) 22:23, 15 May 2024 (UTC)Reply