Template talk:Harvc
|
|
This page has archives. Sections older than 365 days may be automatically archived by Lowercase sigmabot III when more than 9 sections are present. |
DOI parameter
[edit]Could we get a parameter for a DOI for the chapter? Chapter-level DOI identifiers are getting somewhat common and it would something useful to add. Ifly6 (talk) 17:39, 12 August 2022 (UTC)
- Simple workaround:[1]
- Smith (2001). A larger work.
- Doe, Jane. "17. A chapter with a DOI". In Smith (2001). doi:10.1000/xyz123
References
Allow options without author
[edit]I propose, for special circumstances, to allow using this template without author, using the title (and volume, in case) instead. I made an example at User:Est. 2021/sandbox/citation. Thanks, Est. 2021 (talk · contribs) 20:45, 24 June 2023 (UTC)
How to add additional year-disambiguator when the main work is already year-disambig'd?
[edit]I have a multi-volume encyclopedia, where many of the volumes are released in the same year. So they are disambiguated with LC letters 'a', 'b', ... etc. Each of the volumes has contributions from several different authors, but they are not all unique within a single volume. Example:
I'd like to be able to cite {{sfn|Reynolds|1967ma}}
or {{sfn|Reynolds|1967mb}}
, but it results in Reynolds & 1967ma, p. 2309 and Reynolds & 1967mb, p. 2331 (with the extra "&" after the name). But the reference links work, and hovering over the {{harvnb}}
references cause the {{harvc}}
entries to highlight blue.
And of course, where the {{harvc}}
cites are listed, I get harvc: invalid |anchor-year. I'm pretty sure the year disambiguation system only assumes a single lowercase character to create a disambiguator. But how can I disambiguate multiple contributions within a work that itself already has a disambiguated year?
Markup | Renders as |
---|---|
{{harvnb|Reynolds|1967ma|p=2309}}; {{harvnb|Reynolds|1967mb|p=2331}}. <!-- ==References== --> {{fake heading|sub=3|References}} * {{cite book |editor-last= Morgan |editor-first= Willard D. |date= 1967b |volume= 2 |title= The Encyclopedia of Photography – The Complete Photographer: The Comprehensive Guide and Reference for All Photographers |orig-year= First published 1963 |publisher= Greystone Press |location= New York |url= https://archive.org/details/encyclopediaofph02morg/ |url-access= registration |access-date= 2022-04-11 |editor-link= Willard D. Morgan }} * {{cite book |editor-last= Morgan |editor-first= Willard D. |date= 1967m |volume= 13 |title= The Encyclopedia of Photography – The Complete Photographer: The Comprehensive Guide and Reference for All Photographers |orig-year= First published 1963 |publisher= Greystone Press |location= New York |url= https://archive.org/details/encyclopediaofph13morg/ |url-access= registration |access-date= 2022-04-11 }} ** {{harvc |last= Reynolds |first= Charles R., Jr. |year= 1967m |anchor-year= 1967ma |in= Morgan |contribution= Wayne Miller/biography |pp= 2308–2311 |nb= yes |url= https://archive.org/details/encyclopediaofph13morg/page/2308/mode/2up |url-access= registration |ignore-err=yes}} ** {{harvc |last= Reynolds |first= Charles R., Jr. |year= 1967m |anchor-year= 1967mb |in= Morgan |contribution= Lisette Model/biography |pp= 2330–2332 |nb= yes |url= https://archive.org/details/encyclopediaofph13morg/page/2330/mode/2up |url-access= registration |ignore-err=yes}} |
Reynolds & 1967ma, p. 2309 ; Reynolds & 1967mb, p. 2331 . References
|
— sbb (talk) 22:02, 20 September 2023 (UTC)
- I guess I don't really understand why you need to keep the "m" to disambiguate Morgan 1967b from Morgan1967m in order to disambiguate two articles by Reynolds in the same volume? I don't think it would be that strange to have Reynolds (1967a) in Morgan (1967b) and Reyngolds (1967b) in Morgan (1967m) and even less strange to have both Reynolds (1967a) and (1967b) within the same volume of Morgan (1967m)? Umimmak (talk) 22:21, 20 September 2023 (UTC)
- Perhaps I misunderstand how to use the
|anchor-year=
parameter, because I believe this is exactly what it's used for. You're right though, in that there's no specific need to keep the "m" for the Reynolds references. I just tested that in my sandbox, and now I understand it clearer, and it works. - But the problem doesn't necessarily go away, when Reynolds has up to half-dozen entries per volume in a 20-volume work. It would be clearer to keep the first letter attached to the volume letter, and serialize his entries with a 2nd letter per-volume. Because when the volumes are all in the same year, the assignment of Reynolds's disambiguation letters is not necessarily in alphabetic order of the volumes; rather, it tends to be temporal as the article is written. — sbb (talk) 23:00, 20 September 2023 (UTC)
- Yeah if Reynolds has more than 26 entries published in a single year I'm not sure how to do this then. Umimmak (talk) Umimmak (talk) 23:06, 20 September 2023 (UTC)
- Another case, that isn't hypothetical, is when the volume editor (Morgan, in this case) also authors multiple individual entries in their works. I have been just citing them directly with
{{harvnb|Morgan|1967m|p=1500|loc=[https://example.com "Contribution"]}}
-> Morgan 1967m, p. 1500, "Contribution". But that doesn't help to list the contribution in the list of references like the other{{harvc}}
entries. Ideally I should be able to refer to multiple Morgan entries within "Morgan 1967a"–"Morgan 1967m" volumes. — sbb (talk) 23:33, 20 September 2023 (UTC)
- Perhaps I misunderstand how to use the
Refer to a contribution or chapter in a larger work without multiple authors
[edit]Hello. Excuse me if this is strikingly simple. I'm trying to correct the contributor list on a previously written citation which looks like this:
- Holmes, Krys (2009). Montana: Stories of the Land. Helena, MT: Montana Historical Society Press. ISBN 978-0-9759196-3-7.
- . ""Chapter 5"". In Holmes (2009). harvc: no authors in contributor list. (help)
- . ""Chapter 7"". In Holmes (2009). harvc: no authors in contributor list. (help)
- . ""Chapter 13"". In Holmes (2009). harvc: no authors in contributor list. (help)
I see that I could rewrite it using harv but I was hoping to keep the use of harvc with the chapters broken out below. I know that I could simply add |last= for each chapter, but that would lead to repeating the author's name on each line, which I'm hoping to avoid.
Is there a way to refer to chapters in a larger work without multiple authors using harvc without repeating the author's name on each line? MountainBarley (talk) 13:07, 17 January 2024 (UTC)
- Short citations must have author/year and usually a page/location. The standard method, as I understand it, for your situation is simply {{sfn}}:
- BTW, please change "Helena, MT" to "Helena, Montana". -- Michael Bednarek (talk) 13:19, 17 January 2024 (UTC)
References
- ^ Holmes 2009, ch. 5.
- ^ Holmes 2009, ch. 7.
- Thanks for the quick reply.
- The source I gave above is in the Bibliography of the page. It is cited twelve times using sfn each time with pages and locations. Each of those references don't link to the website but to the bibliography. I am guessing the previous editor did it this way as the source has the book separated into chapters on their website (no master document).
- Does it make sense to get rid of the source in the bibliography and move the links up into the references using sfn as you have it in your comment above? 2605:59C8:21B6:5010:94CB:934:2655:8D16 (talk) 13:43, 17 January 2024 (UTC)
- Sorry, I accidentally logged out while replying. That's me above. MountainBarley (talk) 13:45, 17 January 2024 (UTC)
- The current arrangement of Holmes (2009) citations in the article Montana is clearly unsatisfactory. I suggest indeed that the extra three chapter entries in the "Bibliography" section be removed and, if you wish, incorporate the URL for the chapters into the
{{sfn}}
construct, as above. -- Michael Bednarek (talk) 14:14, 17 January 2024 (UTC)- Thank you for taking the time to help! MountainBarley (talk) 14:36, 17 January 2024 (UTC)
- The current arrangement of Holmes (2009) citations in the article Montana is clearly unsatisfactory. I suggest indeed that the extra three chapter entries in the "Bibliography" section be removed and, if you wish, incorporate the URL for the chapters into the
Discussion at Module talk:Footnotes § loc, at
[edit] You are invited to join the discussion at Module talk:Footnotes § loc, at. Rjjiii (talk) 02:47, 4 May 2024 (UTC)
Chapter doi
[edit]Trappist the monk, can we add a |chapter-doi parameter, separate from |chapter-url? Or is the workaround here Template_talk:Harvc#DOI_parameter sufficient? Bogazicili (talk) 20:59, 6 October 2024 (UTC)
Adding whitelist/wrapper template handling to this template
[edit]Currently, Module:Harvc generates a "harvid" reference id and checks to see whether it exists on the page, showing an error if it does not. This currently does not work for "wrapper templates" (e.g., {{Cite Cambridge History of China}}) which generate non-unique citations depending on parameters. Currently, editors have to set |ignore-err=yes
to suppress errors in this case.
In the Module:Harvc/sandbox, I have altered the target checking function (target_check()) to call the version in Module:Footnotes that does handle wrapper templates and whitelisting. I've updated the test cases to test both the "no target" case and the case where a wrapper template is whitelisted (e.g., no errors are generated).
Folly Mox and Trappist the monk believe that this used to work. I don't have an easy way to check that, but it doesn't work currently and the sandbox version makes it work.
Any comments or thoughts on this? Any objections to me copying Module:Harvc/sandbox and Module:Footnotes/sandbox to their corresponding live templates? — hike395 (talk) 21:30, 25 January 2025 (UTC)
- I think that I already said that if you have a workable solution, apply it.
- —Trappist the monk (talk) 23:02, 25 January 2025 (UTC)
Implemented Please let me know if you see anything odd. — hike395 (talk) 16:14, 26 January 2025 (UTC)
Adding translated titles
[edit]Currently there isn't a param for translated chapter titles, like |trans-title=
in {{citation}} and its variants; think similar could be added here. Maybe |ct=
? seefooddiet (talk) 22:38, 6 February 2025 (UTC)
Anchors without a publication year?
[edit]Is it possible to use {{harvc}} to anchor to something like Plutarch, Parallel Lives without a publication year? Ifly6 (talk) 08:58, 9 February 2025 (UTC)
- No, but when you quote Plutarch, you quote from a specific edition, not from his 2nd-century text, right? OTOH, "Plutarch's remarks on Pericles suggest …[1]" -- Michael Bednarek (talk) 10:07, 9 February 2025 (UTC)
- The second century text doesn't exist. Not to get too in the weeds there are only later manuscripts (scribal copies) which are emended to produce a composite version which is what scholars think Plutarch would have written. The versions after that are specific translations usually. Regardless, it is not customary in the field to cite a specific passage by the critical text edition or translation. Ifly6 (talk) 16:15, 10 February 2025 (UTC)
- So what is customary in the field? I find it hard to believe that a citation supporting a particular assertion doesn't require a specific citation. Does the shown example answer you question? -- Michael Bednarek (talk) 01:36, 11 February 2025 (UTC)
- What would be customary in the field would be something like (to use Oxford Classical Dictionary abbreviations)
Plut. Mar. 5
. My question is how to construct the anchor. If I had entries as follows, it tells me I need to provide a year: - Passing
|year=nd
also doesn't seem to work either: none. "Marius". In Plutarch, Parallel Lives (nd). Nor can I suppress the apparent demand for an author. - If I could just put down a wish list, I'd like it to display with no quotes in italics, to not require a year (or to specify the {{harvc}} → {{cite book}} link by {{harvid}}), and then to specify anchor (for {{harvnb}} → {{harvc}}) also by {{harvid}}. Right now I would have to list each Plutarch Life separately by repeatedly invoking {{cite book}}, which I think this template(?) can help avoid. Ifly6 (talk) 03:02, 11 February 2025 (UTC)
- What would be customary in the field would be something like (to use Oxford Classical Dictionary abbreviations)
- So what is customary in the field? I find it hard to believe that a citation supporting a particular assertion doesn't require a specific citation. Does the shown example answer you question? -- Michael Bednarek (talk) 01:36, 11 February 2025 (UTC)
- The second century text doesn't exist. Not to get too in the weeds there are only later manuscripts (scribal copies) which are emended to produce a composite version which is what scholars think Plutarch would have written. The versions after that are specific translations usually. Regardless, it is not customary in the field to cite a specific passage by the critical text edition or translation. Ifly6 (talk) 16:15, 10 February 2025 (UTC)
References
- ^ Plutarch, Parallel Lives, Pericles.