Template_talk:Cite_Q

Template talk:Cite Q

Template talk:Cite Q


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?

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)

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)
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)
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)

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)

Maybe @Mike Peel: has an idea? Headbomb {t · c · p · b} 03:20, 30 January 2024 (UTC)
Or perhaps @Daniel Mietchen:? Headbomb {t · c · p · b} 03:24, 30 January 2024 (UTC)
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)
Ping @Headbomb as this is an old question. StarryGrandma (talk) 21:46, 2 February 2024 (UTC)
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)
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)
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)
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)
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)
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)
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)
"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)

Output causing template error

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)

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)
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)
SG is right. Either fix the Wikidata entry or use {{cite book}}. – Jonesey95 (talk) 14:49, 13 January 2024 (UTC)
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)
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)
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)
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)
{{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)
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)

Cite Q mixes JFM and ZBL

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)

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

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)

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)
Thank you for your explanation. I removed "|mode=cs1" from "cite Q" and it worked. Maxim Masiutin (talk) 00:22, 30 March 2024 (UTC)

Share this article:

This article uses material from the Wikipedia article Template_talk:Cite_Q, and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.