Content deleted Content added
→Interfering note lists: Maybe add that to the doc. |
m Archiving 1 discussion(s) to Help talk:Footnotes/Archive 2) (bot |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 37:
* [[Wikipedia talk:Manual of Style (footnotes)/Mixed citations and footnotes|Mixed citations and footnotes]]}}
}}
== Interfering note lists ==
Line 66 ⟶ 58:
:::::[https://en.wikipedia.org/w/index.php?title=Template:Infobox_U.S._college_admissions/sandbox&oldid=1220806953 Custom anchors] should work, or the [https://en.wikipedia.org/w/index.php?title=Template:Infobox_U.S._college_admissions/sandbox&direction=next&oldid=1220806953 listref/relist template] which is so rarely used outside of lists and glossaries that it is unlikely to ever conflict with this college admissions template? [[User:Rjjiii|<span style="font-variant:small-caps;">Rjj<sup>iii</sup></span>]] ([[User talk:Rjjiii|talk]]) 00:51, 9 April 2025 (UTC)
::::: 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)
::::::::@[[User:Sdkb|Sdkb]] & [[User:Mathglot|Mathglot]]: Changes are done in all 5 template sandboxes. I think [https://en.wikipedia.org/w/index.php?title=Template:Infobox_U.S._college_admissions/sandbox&oldid=1285405725 this version] will just work, and will just work for *box templates in general. If conflicts linking ever do pop up, one template can just use a more specific {{para|tm-id}}. [[User:Rjjiii|<span style="font-variant:small-caps;">Rjj<sup>iii</sup></span>]] ([[User talk:Rjjiii|talk]]) 14:47, 13 April 2025 (UTC)
:::::::::I pushed the changes live to {{tl|rma}}, {{tl|ran}}, {{tl|listref}}, and {{tl|listref/reflist}}. Some brief explanation is now at [[Template:Listref#Within templates]]. I can update the initial template that started this thread soon if there are no objections, questions, or concerns. [[User:Rjjiii|<span style="font-variant:small-caps;">Rjj<sup>iii</sup></span>]] ([[User talk:Rjjiii|talk]]) 17:45, 23 April 2025 (UTC)
::::::::::I've been meaning to look over the fixes, and haven't had a chance but trust your work. Much thanks for taking this on! <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> 18:04, 23 April 2025 (UTC)
== "Unique" vs. "distinct ==
Line 76 ⟶ 82:
:This has been requested before, but not on this page. It's not been done because the amount of work that would be needed simply isn't worth it: cases like this are rare, and are also dependent on factors such as browser, device width, font size etc. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 21:33, 15 July 2024 (UTC)
::Thanks for the explanation. It doesn't bother me as long as it doesn't affect the unwashed masses. (And thanks for pointing out in your edit summary that <ref> tags don't belong in headers.) <small> — [[User talk:AjaxSmack|<span style="border:1px solid #004705;background:#168c1d;padding:2px;color:#e9ede9;text-shadow:black 0.2em 0.2em 0.3em; font-family: Georgia;"> '''AjaxSmack''' </span>]] 22:00, 15 July 2024 (UTC)</small>
==Discussion at [[:Wikipedia talk:Citing sources#New proposal: deprecate {{reflist|refs= in favor of <references>?|Wikipedia talk:Citing sources § New proposal: deprecate {{reflist|refs= in favor of <references>?]]==
[[File:Symbol watching blue lashes high contrast.svg|25px|link=|alt=]] You are invited to join the discussion at [[:Wikipedia talk:Citing sources#New proposal: deprecate {{reflist|refs= in favor of <references>?|Wikipedia talk:Citing sources § New proposal: deprecate {{reflist|refs= in favor of <references>?]]. <span title="Signature of Dan Leonard">[[User:Dan Leonard|Dan Leonard]] ([[User talk:Dan Leonard|talk]] • [[Special:Contributions/Dan Leonard|contribs]])</span> 03:02, 30 April 2025 (UTC)<!-- [[Template:Please see]] -->
|