It appears that a blank space in a ref name, as in <ref name="Mar Narty">, is not accepted. Should this be stated in the article? Zaslav (talk) 23:39, 27 April 2024 (UTC)
- @Zaslav: Spaces are permitted. Where are you seeing this as a problem? --Redrose64 🌹 (talk) 23:53, 27 April 2024 (UTC)
- I was editing Euler's constant to move what is now Ref. 13 in the Footnotes section from the References section, by converting the citation "r|Ram MurtySaradha2010" to "sfn|Ram MurtySaradha2010", but the WP compiler kept giving me an error message that it could not find the content of "Ram MurtySaradha2010". When I removed the space, the problem disappeared. Is this enough information? The edit history of Euler's constant will show some of this process. Zaslav (talk) 05:07, 28 April 2024 (UTC)
- I've been through the last few edits at that article, and don't see any error messages. --Redrose64 🌹 (talk) 12:46, 28 April 2024 (UTC)
- I suspect that in the LDR you did
<ref name=Ram MurtySaradha2010>
with no quotes, rather than <ref name="Ram MurtySaradha2010">
or <ref name='Ram MurtySaradha2010'>
as is required when a space is in the name. It seems that making that mistake in an LDR doesn't produce a visible error message, the broken ref is just ignored (and then the references intended to use it generate the "was invoked but never defined" error). Anomie⚔ 20:06, 28 April 2024 (UTC)
- Values of
|name=
in ref tags and the value of the CITEREF used by {{sfn}} are different. One is generated manually, and the other is generated automatically. They can be the same by coincidence, but they are typically different. – Jonesey95 (talk) 13:02, 29 April 2024 (UTC)