Help talk:Footnotes: Difference between revisions

Content deleted Content added
Line 67:
::::: Sdkb, I tried a bunch of things, but couldn't find an alternative, but looks like Rjjiii did, and that solution ought to be added to the doc of a few templates so it can be discovered more easily. If you want to follow up at another venue, I would say [[Module talk:Footnotes]], but anyone monitoring there is probably looking here as well, so not sure if practically speaking that will gain anything, but maybe it's worth adding a discussion advisory/feedback request there linking this discussion. [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 02:04, 9 April 2025 (UTC)
::::::Ooh, thanks both! I'll look into those options, Rjiii. <span style="border:3px outset;border-radius:8pt 0;padding:1px 5px;background:linear-gradient(6rad,#86c,#2b9)">[[User:Sdkb|<span style="color:#FFF;text-decoration:inherit;font:1em Lucida Sans">Sdkb</span>]]</span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 04:35, 9 April 2025 (UTC)
:::::::@[[User:Sdkb|Sdkb]] Posting some more stuff to clarify. So, the ref tags and templates that invoke them like {{tl|efn}} do several things:
:::::::# Create an anchor link from the superscript callout down the correct footnote.
:::::::# Highlight the footnote when the superscript callout link is clicked.
:::::::# Display the footnote in mouseover popup on desktop.
:::::::# On mobile: replace the above the 3 behaviors with a popup at the bottom of the screen containing the footnote when the superscript callout is clicked.
:::::::# Automatically create a list of the references with backlinks to the superscript callouts.
:::::::The solutions I mentioned above, do the '''first 3''' and not the second two. On mobile, they work like anchor links and there is no mouse-over popup because there is no mouse. It's probably not realistic to try to recreate the mobile behavior. Older versions of those templates used the reference class that ref tags and {{tl|efn}} use. This worked on desktop, but the JavaScript for mobile would just break the links. I tried reporting this, but the solution was just to take out the reference class.
:::::::The {{tl|ran}}/{{tl|rma}} and {{tl|listref}}/{{tl|listref/reflist}} template pairs were both created for sort of the same reason. They are meant to avoid creating backlinks. If you cite a couple biographies a hundred times or cite the same directory hundreds of times, then the software goes buckwild and gives [[Template:Rma#Back_links|so many links they become useless]]. There is another template {{tl|citeref}} that also does something similar and could be used. (It was made to create links between footnotes, which sounds very useful for the ''[[House of Leaves]]'' article. While [https://en.wikipedia.org/w/index.php?title=Template:Infobox_U.S._college_admissions/sandbox&oldid=1285181020 trying out citeref], I started thinking that maybe the best solution isn't actually available right now.
:::::::Ran & listref both work, but say you have a navbox and infobox that both use them. In that case, you could end up with duplicate anchor links which are invalid HTML and could make the links point to the wrong target. This is less an issue with {{tl|ran}}, because each template would be picking a letter or handful of letters. So the odds go down pretty low pretty quickly (1/26, 1/676, 1/17576). That said, I think the correct solution is to add something into the callout template and footnote template that is meant just for use in other templates. Call the parameter {{para|tm-id}} or whatever is easy to remember. Then when you invoke {{tl|rma}} (or {{tl|listref}} which is just a wrapper for it), you would use the same {{para|tm-id}} throughout a single template. This way, it wouldn't matter if you had six navboxes all using the template with <sup style="color:blue;">[i]</sup> because their links would each be using an anchor that is inherently unique: <code>#CITEREFtm-uscollegedamissions-i</code> instead of <code>#CITEREFi</code>
:::::::If there is interest, I can try an example in one of the sandboxes, [[User:Rjjiii|<span style="font-variant:small-caps;">Rjj<sup>iii</sup></span>]] ([[User talk:Rjjiii|talk]]) 20:46, 12 April 2025 (UTC)
 
== "Unique" vs. "distinct ==