Template talk:Dizionario Biografico degli Italiani
Appearance
sfn error
[edit]Articles using {{sfn}}
with this template throw errors that have to be whitelisted. Using the undocumented parameter |ref=
can manually set the ref target but doesn't spare the sfn error. czar 16:31, 28 December 2024 (UTC)
- @Czar: Would it be possible to fix the error or modify the template to prevent it to be thrown? Constantine ✍ 20:34, 28 December 2024 (UTC)
- Paging @Trappist the monk: Would you know the answer to this? To avoid [1] czar 23:43, 28 December 2024 (UTC)
- This is an example of the false positive error messaging described at :Category:Harv and Sfn template errors § Current limitations and false-positive errors. In this particular case, Module:Footnotes doesn't know that
{{DBI}}
is a citation template so when the module attempts to match targetCITEREF
anchor ID for:{{sfn|Gullino|2016}}
→CITEREFGullino2016
- there is no match because the module ignored the
{{DBI}}
template that it knows nothing about. We can spoof the module a bit by using template names that begin with{{cite ...
so{{cite DBI
. But, that still won't work in this case because the necessary year portion of theCITEREF
anchor ID is hidden inside{{DBI}}
as a function of|volume=
. - This is why we invented
{{sfn whitelist}}
. For cases where a source is used across many, many articles, there is also Module:Footnotes/whitelist. - For Tiepolo conspiracy, you don't need multiple individual
{{sfn whitelist}}
templates; one will suffice:{{sfn whitelist|CITEREFGullino2016|CITEREFLane1973|CITEREFPozza2019|CITEREFRossi2002}}
- —Trappist the monk (talk) 01:09, 29 December 2024 (UTC)
- @Trappist the monk, is there a way to transclude the whitelist so it doesn't have to be specified each time DBI is called? czar 15:58, 29 December 2024 (UTC)
- DBI is a biographical dictionary of 100 volumes and who-knows-how-many entries and authors. Do you really expect to cite exactly the same DBI entries in multiple articles? I think that
{{sfn whitelist}}
is the convenience-toll you must pay so that you don't have to construct individual{{cite encyclopedia}}
templates for each DBI reference. - —Trappist the monk (talk) 16:54, 29 December 2024 (UTC)
- With DBI I'd expect it to be easy to generate the whitelist content based on the author last name and year but my main obstacle was whether it's possible to transclude the whitelist. Since that's more about the whitelist, I'll move to the template talk page: Template talk:Sfn whitelist#Possible to transclude in specific-source template. czar 18:45, 29 December 2024 (UTC)
- DBI can have more entries with same author and year. Year-suffix letter may be needed but this depends case by case: it is impossible to manage as a general rule. I suggest to add in {{cite DBI}} documentation's page an explanation about the trick of using {{sfn whitelist}}.A ntv (talk) 19:49, 29 December 2024 (UTC)
- DBI is a biographical dictionary of 100 volumes and who-knows-how-many entries and authors. Do you really expect to cite exactly the same DBI entries in multiple articles? I think that
- @Trappist the monk, is there a way to transclude the whitelist so it doesn't have to be specified each time DBI is called? czar 15:58, 29 December 2024 (UTC)
- This is an example of the false positive error messaging described at :Category:Harv and Sfn template errors § Current limitations and false-positive errors. In this particular case, Module:Footnotes doesn't know that
- Paging @Trappist the monk: Would you know the answer to this? To avoid [1] czar 23:43, 28 December 2024 (UTC)