Module talk:Footnotes
From Wikipedia the free encyclopedia
This is the talk page for discussing improvements to the Footnotes module. |
|
Archives: 1, 2, 3Auto-archiving period: 6 months ![]() |
![]() | Module:Footnotes is permanently protected from editing because it is a heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. |
Push to clear the last few ones.
[edit]See Wikipedia:Bot requests#Help clear Category:Harv and Sfn no-target errors.
Headbomb {t · c · p · b} 22:05, 25 January 2025 (UTC)
"n.d.a" vs. "n.d. a"
[edit]At Capri-Sun, I have two references that I'd written as {{harvnb|Capri Sun Group|n.d. a}}
and {{harvnb|Capri Sun Group|n.d. b}}
. I could've sworn they worked as intended when they were added, but maybe I just overlooked this before, because I don't spot anything relevant in the history. Either way, as it stands, these render as "Capri Sun Group & n.d. a" and ""Capri Sun Group & n.d. b", which appears to be because L131 is expecting no space before the disambiguating letter. But I don't think most people would write "n.d.a", which looks like the a is part of an acronym. "n.d. a" is much clearer. I would suggest that both should be allowed, as should "nd a" in contrast to "nda". I believe all we'd have to do is add a ?
before the %l
on lines 65, 66, 131, and 132. -- Tamzin[cetacean needed] (they|xe|🤷) 03:06, 7 April 2025 (UTC)
- Those references appear to be working as expected and I'm seeing them displayed with a space between n.d. and the disambiguation. What error message are you seeing? It may have to do with the script you're using -- LCU ActivelyDisinterested «@» °∆t° 11:12, 7 April 2025 (UTC)
- @ActivelyDisinterested: The issue isn't the space falling to render; it's the ampersand showing up because the module reads "n.d. a" as a name rather than a date -- Tamzin[cetacean needed] (they|xe|🤷) 14:27, 7 April 2025 (UTC)
- Capri Sun Group n.d.a
- Capri Sun Group n.d.b
- Capri Sun Group 1997a
- Without spaces ↑
- Capri Sun Group & n.d. a
- Capri Sun Group & n.d. b
- Capri Sun Group & 1997 a
- With spaces ↑ Rjjiii (talk) 14:31, 7 April 2025 (UTC)
- Yes, a space makes the module read it as a name rather than a date, and this put an ampersand before it. What I'm saying is that, while that's reasonable for years like 1997a, for n.d. in particular a space should be understood as part of the date. -- Tamzin[cetacean needed] (they|xe|🤷) 15:01, 7 April 2025 (UTC)
- Sorry misconstrued the issue. -- LCU ActivelyDisinterested «@» °∆t° 15:10, 7 April 2025 (UTC)
- I think the pre-module version of the harv/sfn templates always treated the final parameter as the year, Rjjiii (talk) 20:54, 7 April 2025 (UTC)
- @Tamzin & ActivelyDisinterested:
- APA uses n.d.-x. It seems like Chicago and Harvard referencing do as well. I've added the pattern for that to the sandbox module:
- Live
- Capri Sun Group & n.d.-a
- Sandbox
- Capri Sun Group n.d.-a
- But you'd also need to add support in Module:Citation/CS1. Right now it gives an error if you suffix anything to n.d. separated by a hyphen or space (only Capri Sun Group n.d.a works):
- Capri Sun Group (n.d.). "Frequently Asked Questions". Capri-Sun.com.
- Capri Sun Group (n.d.a). "Frequently Asked Questions". Capri-Sun.com.
- Capri Sun Group (n.d. a). "Frequently Asked Questions". Capri-Sun.com.
{{citation}}
: Check date values in:|date=
(help) - Capri Sun Group (n.d.-a). "Frequently Asked Questions". Capri-Sun.com.
{{citation}}
: Check date values in:|date=
(help)
- Also some stats while thinking about changes:
- 5,041,630 pages with cite web
- 15,112 pages with cite web using n.d.
- 45 pages with cite web and n.d.a (without spaces)
- 55% of cite web invocations have no date parameter (not an issue without author-date short citations)
- I'd support adding support to both modules for "n.d.-" if that's the norm in published citation styles. Rjjiii (talk) 11:01, 8 April 2025 (UTC)
- Continued at: Help_talk:Citation_Style_1#"n.d.a",_"n.d._a",_or_"n.d.-a" Rjjiii (talk) 03:31, 12 April 2025 (UTC)
- So far, no response at all over there. Idk if it's a good idea to add support for a type of date in only one of the modules. Rjjiii (talk) 04:36, 21 April 2025 (UTC)
- Continued at: Help_talk:Citation_Style_1#"n.d.a",_"n.d._a",_or_"n.d.-a" Rjjiii (talk) 03:31, 12 April 2025 (UTC)
- Sorry misconstrued the issue. -- LCU ActivelyDisinterested «@» °∆t° 15:10, 7 April 2025 (UTC)
- Yes, a space makes the module read it as a name rather than a date, and this put an ampersand before it. What I'm saying is that, while that's reasonable for years like 1997a, for n.d. in particular a space should be understood as part of the date. -- Tamzin[cetacean needed] (they|xe|🤷) 15:01, 7 April 2025 (UTC)
- @ActivelyDisinterested: The issue isn't the space falling to render; it's the ampersand showing up because the module reads "n.d. a" as a name rather than a date -- Tamzin[cetacean needed] (they|xe|🤷) 14:27, 7 April 2025 (UTC)
I've been trying to whack down the amount of articles in this Category and have come across a List that I can't find any Harv errors or Harv warnings in, and yet here is List of fictional diseases listed amongst the error'fied articles. Can anyone tell me why? Thanks - Shearonink (talk) 03:33, 9 July 2025 (UTC)
- It's a false positive, because {{Cite MW}} is a template that wraps {{cite web}}, and this module didn't know about it yet. I'll fix. Please feel free to report any such mysterious false positives here. Thanks for cleaning all of this up! — hike395 (talk) 07:19, 9 July 2025 (UTC)
- The Trappist script doesn’t flag false positives but the css modification (as described on the error page) does.
- Andy02124 (talk) 12:08, 9 July 2025 (UTC)
- Thanks you guys for looking into it. Btw the Category has now inched up to 85.1% fixed/empty. Seems like it had been at a straight 85% for forever... - Shearonink (talk) 15:14, 9 July 2025 (UTC)
Two additions
[edit]I use these templates pretty often and have had several issues that have led me here. Can the following be added to the whitelist: Template:Lagomorphs2018, Template:HMW2016 Volume 6 ['CITEREFSmithJohnstonAlvesHackländer2018'] = {'Lagomorphs2018'}
['CITEREFWilsonLacherMittermeier2016'] = {'HMW2016 Volume 6'} -- Reconrabbit 17:24, 10 July 2025 (UTC)