Content deleted Content added
m →Template:sfnp: clarified my earlier comment in the light of the later tweak |
→Template:Efloras and Template:BONAP: fixed the one error |
||
Line 1:
{{talk header}}
{{permanently protected}}
{{User:MiszaBot/config
| archive = Module talk:Footnotes/Archive %(counter)d
| algo = old(180d)
| counter = 3
| maxarchivesize = 200k
| minthreadsleft = 8
| minthreadstoarchive = 2
}}
== Push to clear the last few ones. ==
See [[Wikipedia:Bot requests#Help clear Category:Harv and Sfn no-target errors]].
 <span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 22:05, 25 January 2025 (UTC)
==
At [[Capri-Sun]], I have two references that I'd written as <code><nowiki>{{harvnb|Capri Sun Group|n.d. a}}</nowiki></code> and <code><nowiki>{{harvnb|Capri Sun Group|n.d. b}}</nowiki></code>. 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#CITEREFCapri Sun Groupn.d. a|Capri Sun Group & n.d. a]]" and ""[[Capri-Sun#CITEREFCapri Sun Groupn.d. b|Capri Sun Group & n.d. b]]", which appears to be because [[Module:Footnotes#L-131|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 <code> ?</code> before the <code>%l</code> on lines 65, 66, 131, and 132. <span style="font-family:courier"> -- [[User:Tamzin|<span style="color:#E6007A">Tamzin</span>]]</span><sup class="nowrap">[[[User talk:Tamzin|<i style="color:#E6007A">cetacean needed</i>]]]</sup> <small>([[User:Tamzin/🤷|they|xe|🤷]])</small> 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 -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 11:12, 7 April 2025 (UTC)
::@[[User:ActivelyDisinterested|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 <span style="font-family:courier"> -- [[User:Tamzin|<span style="color:#E6007A">Tamzin</span>]]</span><sup class="nowrap">[[[User talk:Tamzin|<i style="color:#E6007A">cetacean needed</i>]]]</sup> <small>([[User:Tamzin/🤷|they|xe|🤷]])</small> 14:27, 7 April 2025 (UTC)
:::{{harvnb|Capri Sun Group|n.d.a}}
:::{{harvnb|Capri Sun Group|n.d.b}}
:::{{harvnb|Capri Sun Group|1997a}}
:::Without spaces ↑
:::{{harvnb|Capri Sun Group|n.d. a}}
:::{{harvnb|Capri Sun Group|n.d. b}}
:::{{harvnb|Capri Sun Group|1997 a}}
:::With spaces ↑ [[User:Rjjiii|<span style="font-variant:small-caps;">Rjj<sup>iii</sup></span>]] ([[User talk: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. <span style="font-family:courier"> -- [[User:Tamzin|<span style="color:#E6007A">Tamzin</span>]]</span><sup class="nowrap">[[[User talk:Tamzin|<i style="color:#E6007A">cetacean needed</i>]]]</sup> <small>([[User:Tamzin/🤷|they|xe|🤷]])</small> 15:01, 7 April 2025 (UTC)
:::::Sorry misconstrued the issue. -- <small>LCU</small> '''[[User:ActivelyDisinterested|A<small>ctively</small>D<small>isinterested</small>]]''' <small>''«[[User talk:ActivelyDisinterested|@]]» °[[Special:Contributions/ActivelyDisinterested|∆t]]°''</small> 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, [[User:Rjjiii|<span style="font-variant:small-caps;">Rjj<sup>iii</sup></span>]] ([[User talk:Rjjiii|talk]]) 20:54, 7 April 2025 (UTC)
::::::@[[User:Tamzin|Tamzin]] & [[User:ActivelyDisinterested|ActivelyDisinterested]]:
::::::[https://blog.apastyle.org/apastyle/2011/10/reference-twins.html APA uses n.d.-x]. It seems like [https://files.taylorandfrancis.com/tf_chicagoad.pdf Chicago] and [https://libguides.jcu.edu.au/HarvardAGSM/dates Harvard] referencing do as well. I've added the pattern for that to the sandbox module:
::::::;Live
::::::{{harvnb|Capri Sun Group|n.d.-a}}
::::::;Sandbox
::::::{{Harvard citation no brackets/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 {{harvnb|Capri Sun Group|n.d.a}} works):
::::::* {{citation|author=Capri Sun Group |date=n.d. |title=Frequently Asked Questions |work=Capri-Sun.com |mode=cs1}}
::::::* {{citation|author=Capri Sun Group |date=n.d.a |title=Frequently Asked Questions |work=Capri-Sun.com |mode=cs1}}
::::::* {{citation|author=Capri Sun Group |date=n.d. a |title=Frequently Asked Questions |work=Capri-Sun.com |mode=cs1}}
::::::* {{citation|author=Capri Sun Group |date=n.d.-a |title=Frequently Asked Questions |work=Capri-Sun.com |mode=cs1 |ref={{sfnref|Capri Sun Group|n.d.-a}}}}
::::::Also some stats while thinking about changes:
::::::* 5,041,630 pages [https://en.wikipedia.org/wiki/Special:Search?go=Go&search=hastemplate%3Acite_web&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&ns118=1&ns119=1&ns126=1&ns127=1&ns710=1&ns711=1&ns828=1&ns829=1 with cite web]
::::::* 15,112 pages [https://en.wikipedia.org/wiki/Special:Search?go=Go&search=hastemplate%3Acite_web+insource%3A%22date%3Dn.d.%22&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&ns118=1&ns119=1&ns126=1&ns127=1&ns710=1&ns711=1&ns828=1&ns829=1 with cite web using n.d.]
::::::* 45 pages [https://en.wikipedia.org/wiki/Special:Search?go=Go&search=hastemplate%3Acite_web+insource%3A%22date%3Dn.d.a%22&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&ns118=1&ns119=1&ns126=1&ns127=1&ns710=1&ns711=1&ns828=1&ns829=1 with cite web and n.d.a] (without spaces)
::::::* 55% of cite web invocations [https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=Cite+web 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. [[User:Rjjiii|<span style="font-variant:small-caps;">Rjj<sup>iii</sup></span>]] ([[User talk: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"]] [[User:Rjjiii|<span style="font-variant:small-caps;">Rjj<sup>iii</sup></span>]] ([[User talk: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. [[User:Rjjiii|<span style="font-variant:small-caps;">Rjj<sup>iii</sup></span>]] ([[User talk:Rjjiii|talk]]) 04:36, 21 April 2025 (UTC)
== Re [[:Category:Harv and Sfn no-target errors]] ==
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 - [[User:Shearonink|Shearonink]] ([[User talk:Shearonink|talk]]) 03:33, 9 July 2025 (UTC)
:It's a false positive, because {{tl|Cite MW}} is a template that wraps {{tl|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! — [[User:Hike395|hike395]] ([[User talk: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.
:[[User:Andy02124|Andy02124]] ([[User talk: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... - [[User:Shearonink|Shearonink]] ([[User talk:Shearonink|talk]]) 15:14, 9 July 2025 (UTC)
== Two additions ==
I use these templates pretty often and have had [[Talk:European rabbit#broken footnotes|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'} -- [[User:Reconrabbit|<span style="color:#4E8321">Recon</span>]][[User talk:Reconrabbit|<span class="skin-invert" style="color:#073131">rabbit</span>]] 17:24, 10 July 2025 (UTC)
:[[File:Lionhead rabbit Dobby.jpg|frameless|x50px|alt=Rabbit indicating done]] — [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 03:41, 11 July 2025 (UTC)
::Thank you! I'll be back in a long while once I'm done with the lagomorphs, since by that point I'll be using Volume 7 for the rodents. -- [[User:Reconrabbit|<span style="color:#4E8321">Recon</span>]][[User talk:Reconrabbit|<span class="skin-invert" style="color:#073131">rabbit</span>]] 12:02, 11 July 2025 (UTC)
== Template:Efloras and Template:BONAP ==
The [[:Template:Efloras|first template]] is sort of whitelisted, but it isn't working correctly. There are 4 lines dedicated to it in the whitelist variable, but this template handles citations to a number of floras published on efloras.org. The most-cited are ''Flora of North America'' and ''Flora of China'', published in many volumes with different authors and dates for each. It seems like it needs an entry in wrapper_templates to get it working properly. The [[:Template:BONAP|second template]] is simpler; it should always produce 'CITEREFKartesz2014'. (In theory the year could change in the future but it should be stable in practice.) [[User:Choess|Choess]] ([[User talk:Choess|talk]]) 20:14, 12 July 2025 (UTC)
:And as long as I'm requesting whitelisting of botany wrapper templates, [[:Template:Jepson eFlora]] can also take many different authors and will probably need to be handled in wrapper_templates. [[User:Choess|Choess]] ([[User talk:Choess|talk]]) 21:30, 12 July 2025 (UTC)
::{{ping|Choess}} I fixed {{tl|BONAP}}, but when I search for [https://petscan.wmcloud.org/?psid=38011880 harv errors] caused either by {{tl|Efloras}} or {{tl|Jepson eFlora}}, I find no errors caused by either template <s>(the one error returned by PetScan is caused by other templates)</s>. Is there a particular article you are concerned about? — [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 01:59, 20 August 2025 (UTC)
== Pair skating ==
Hello,
I keep getting false positive errors for a source in [[Pair skating]]. It's for just one source, even though the code looks exactly like other sources that use the snfp template.
Looks like this: [[Pair skating#CITEREFKestnbaum2003|Kestnbaum (2003)]], p. 218. sfnp error: multiple targets (2×): CITEREFKestnbaum2003 ([[:Category:Harv and Sfn template errors|help]]) Harv error: CITEREFKestnbaum2003 has multiple targets (2×).
Hopefully, someone will assist. I've tried to resolve the problem myself, but so far have been unsuccessful. It's very frustrating! [[User:Figureskatingfan|Christine (Figureskatingfan)]] ([[User talk:Figureskatingfan|talk]]) 00:34, 17 August 2025 (UTC)
:You might want to replace [[Special:Permalink/1306289786#cite_note-94|ref 86 (permalink)]] with an appropriate {{tlx|sfnp}} template because Kestnbaum 2003 is also listed under [[Special:Permalink/1306289786#Works cited|§Works cited (permalink)]].
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 00:46, 17 August 2025 (UTC)
::@[[User:Trappist the monk|Trappist the monk]], that did it! It was a simple solution all along, I guess I just needed a second pair of eyes to see it. Thanks so much, especially for your quick response. You're a gem! [[User:Figureskatingfan|Christine (Figureskatingfan)]] ([[User talk:Figureskatingfan|talk]]) 04:45, 17 August 2025 (UTC)
== Yet another Tolkien to whitelist ==
['CITEREFTolkien2024'] = template_names['ME-ref']
Thanks,
[[User:Andy02124|Andy02124]] ([[User talk:Andy02124|talk]]) 18:25, 19 August 2025 (UTC)
:{{Done}} — [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 01:51, 20 August 2025 (UTC)
|