Template talk:Unbulleted list citebundle
Index
|
||
This page has archives. Sections older than 90 days may be automatically archived by ClueBot III when more than 6 sections are present. |
Psiĥedelisto, Tamzin, Anon423, and SnowFire: could this template and template:multiref be merged?
Multiref rendered weird in mobile, very weird on screen readers, and slightly weird on desktop Vector 2022. I fixed this by borrowing the styles from this template. Right now they render pretty much the same, and I think they have the same purpose. That raised the question for me of why are these separate. If this template is faster or has some other benefit, shouldn't it just be an update to multiref? (Template:multiref2 is different in that uses different spacing, possibly for full citations.) Rjjiii (talk) 03:25, 5 July 2023 (UTC)
- @Rjjiii: Why is {{multiref}} limited to fifteen items? Psiĥedelisto (talk • contribs) please always ping! 14:42, 5 July 2023 (UTC)
- @Psiĥedelisto: Not sure. It was increased from 10 to 15 a couple years ago: https://wiki.riteme.site/w/index.php?title=Template%3AMultiref&diff=1043070245&oldid=1039060911 Rjjiii (talk) 14:54, 5 July 2023 (UTC)
- @Rjjiii: I think if we're going to merge the templates we should based it off of this one and not its current code. This one is newer and uses newer MediaWiki Lua syntax to call the parent template. Psiĥedelisto (talk • contribs) please always ping! 14:57, 5 July 2023 (UTC)
- @Psiĥedelisto: After pointing multiref here, an editor asked about the indentation in {{Unbulleted list citebundle}}. Here is the test page he made to demonstrate: User:Grorp/sandbox3. I think this is the expected behavior, but since he framed it as a bug, I thought I would pass it along. Regards, Rjjiii (talk) 03:02, 12 July 2023 (UTC)
- Oh, also, the only difference, and what's causing a change in indentation is that the first parameter in multriref2 and previously in multiref(1) would be just be put before the list. That could easily be done here so that each use of the ULC has the same level of indentation, but it seems a little wonky. Rjjiii (talk) 03:28, 12 July 2023 (UTC)
- @Rjjiii: I think if we're going to merge the templates we should based it off of this one and not its current code. This one is newer and uses newer MediaWiki Lua syntax to call the parent template. Psiĥedelisto (talk • contribs) please always ping! 14:57, 5 July 2023 (UTC)
- @Psiĥedelisto: Not sure. It was increased from 10 to 15 a couple years ago: https://wiki.riteme.site/w/index.php?title=Template%3AMultiref&diff=1043070245&oldid=1039060911 Rjjiii (talk) 14:54, 5 July 2023 (UTC)
- Multiref now points here. I've updated the documentation to add it as a shortcut, and to carry over the table of examples from the old documentation. Archive 1 of the talk page are the old discussions from that talk page. Template:multiref2 was terrible on screen readers and had some quirks with rendering, so I've made it into a wrapper for this template. Thanks Psiĥedelisto & SnowFire, Rjjiii (talk) 20:25, 9 July 2023 (UTC)
Tooltips on short footnotes too narrow
[edit]The way the template shrinks the div works in most situations. For short footnotes, the tooltip is by default made more narrow to fit the citation's width. So for bundled short footnotes, the tooltip will shrink down even further and push the "p ##" onto the next line. I was tinkering in the sandbox, but didn't find a good solution yet. Rjjiii (talk) 06:00, 19 July 2023 (UTC)
- I'll test more first, but I think the sandbox version works. I'll also add comments and condense the CSS before pushing it live. Rjjiii (talk) 05:48, 21 July 2023 (UTC)
Undesirable linewrapping
[edit]![](http://upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/20px-Yes_check.svg.png)
This example usage in the /doc subpage shows output that looks like:
For the sun's size, see Miller, Edward (2005). The Sun. Academic Press. p. 1.
For the moon's size, see Brown, Rebecca (2007). "Size of the Moon". Scientific American. 51 (78): 46.
For the sun's heat, see Yamada, Hanako [山田花子] (2005). Taiyō no netsu 太陽の熱 [The Sun's Heat]. Gakujutsu shuppansha (学術出版社) [Academic Press]. p. 2.
Used at Wikipedia:Citing sources (see this version of the page in case the attempt to use this template there has been reverted), it looks like the following (with simplified example data), which is definitely not the desired output, and wouldn't be the desired output in an article unless the refs were put into columns:
For the sun's size, see Miller, Edward. The Sun.
Academic Press, 2005, p. 1.For the moon's size, see Brown, Rebecca. "Size of the
Moon", Scientific American, 51 (78): 46.For the sun's heat, see Smith, John. The Sun's Heat.
Academic Press, 2005, p. 2.
— SMcCandlish ☏ ¢ 😼 10:13, 28 July 2023 (UTC)
- @SMcCandlish: I've caused this here: Template:Unbulleted list citebundle/styles.css Previously the template would make bundled short citations too narrow. I didn't see a way to target the popup via CSS, so I set the default width as the popup width and targeted the reference list. Rjjiii (talk) 18:14, 28 July 2023 (UTC)
- Well, one of your tweaks clearly needs to be undone.
Previously the template would make bundled short citations too narrow
– which it is still doing, just now in more circumstances. So, which circumstance (testcase) were you targeting, and shouldn't this be solveable with a min-width instead of a max-width (at a guess)? PS: Width should generally not be set in px anyway, only in em or some other relative unit, since content size varies radically between users, especially those with vision problems. But maybe you were targeting a container case that was itself inappropriately set in px. — SMcCandlish ☏ ¢ 😼 22:31, 28 July 2023 (UTC)- I've tried a different solution. I had time to respond earlier, but not time to test or troubleshoot. You said
which it is still doing
which makes me realize that I must not have been clear enough. I was talking specifically about the reference popup on desktop themes. Rjjiii (talk) 01:48, 29 July 2023 (UTC)- Thanks. Whatever you did it worked like magic. The diplay over at WP:CITE is fixed. I just got up from a nap and was wondering why when I tried sandboxing I couldn't get the linewrapping happen again, and I reloaded the CITE page and the linewrapping went away because you fixed it. :-) — SMcCandlish ☏ ¢ 😼 01:55, 29 July 2023 (UTC)
- I've tried a different solution. I had time to respond earlier, but not time to test or troubleshoot. You said
- Well, one of your tweaks clearly needs to be undone.
Copy-pasteabilty problem
[edit]![](http://upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/20px-Yes_check.svg.png)
For the above post, when I tried to copy-paste the formatted examples from the /doc page, this is the paste I got:
For the sun's size, see
For the moon's size, see
For the sun's heat, see
The only way to copy the "Miller, Edward (2005). The Sun. Academic Press. p. 1." material was to indivdually select and copy-paste just that part of the line. This is clearly undesirable behavior.
PS: This was using Chrome under Windows 10.
PPS: It did not happen when I copy-pasted the entire example block from the other page mentioned above. I have no explanation for this.
— SMcCandlish ☏ ¢ 😼 10:17, 28 July 2023 (UTC)
- For whatever reason, the fix to the problem reported in the thread above also fixed this issue. — SMcCandlish ☏ ¢ 😼 02:03, 29 July 2023 (UTC)
- @SMcCandlish: Thanks for all the feedback. Your issues with copy and paste prompted me to clean up the documentation, but I was never able to duplicate that bug. The template itself should now work in nearly all cases. The edge case it doesn't (yet) cover is when an editor has manually narrowed the references list down to something like {{reflist|10em}} for very tiny citations. Rjjiii (talk) 02:47, 29 July 2023 (UTC)
Named bundles
[edit]Is there any way to name a bundle so that an inline reference can be anchored to it? In the same vein as Template:SfnRef and other similar templates. Krisgabwoosh (talk) 18:33, 10 November 2023 (UTC)
@Krisgabwoosh: you just use a named reference. For example this[1] and this[1] are both cited to the example from the documentation. Edit the source to see how.
- ^ a b
- For the sun's size, see Miller, Edward (2005). The Sun. Academic Press. p. 1.
- For the moon's size, see Brown, Rebecca (2007). "Size of the Moon". Scientific American. 51 (78): 46.
- For the sun's heat, see Yamada, Hanako [山田花子] (2005). Taiyō no netsu 太陽の熱 [The Sun's Heat]. Gakujutsu shuppansha (学術出版社) [Academic Press]. p. 2.
Indent
[edit]Normally, citations are not indented, but this template does. This leads to a) an inconsistent appearance; b) less text per line.
Using manual multiple references:[1]
References
- ^ Miller-Smith, Edward John (2005). The Sun and Its Properties. Academic Press Consolidated. p. 1.
Brown-Johnson, Rebecca Miranda (June 2007). "Size of the Moon – New Insights". Scientific American. 51 (78). London: 46–52.
Using this template:[1]
References
- ^
- Miller-Smith, Edward John (2005). The Sun and Its Properties. Academic Press Consolidated. p. 1.
- Brown-Johnson, Rebecca Miranda (June 2007). "Size of the Moon – New Insights". Scientific American. 51 (78). London: 46–52.
I see five lines in the first References, and seven in the second. Can this be fixed? -- Michael Bednarek (talk) 06:50, 18 June 2024 (UTC)
- I personally don't think it's a big deal and just a harmless quirk... except... I recently discovered this plays very badly with re-used named references. The indent keeps piling up and makes it very apparent with even two uses of the reference, and a blatant amount of "wasted" space with three references. Just as an additional comment. Example:
References
- ^ a b c
- Miller-Smith, Edward John (2005). The Sun and Its Properties. Academic Press Consolidated. p. 1.
- Brown-Johnson, Rebecca Miranda (June 2007). "Size of the Moon – New Insights". Scientific American. 51 (78). London: 46–52.
- ^ Chetwood, Digby (2024). The Sun: Real or Fake?. Reveal The Truth. p. 1.
{{multiref2}} uses no indent and white space between citations:
References
- ^ a b c
- Miller-Smith, Edward John (2005). The Sun and Its Properties. Academic Press Consolidated. p. 1.
- Brown-Johnson, Rebecca Miranda (June 2007). "Size of the Moon – New Insights". Scientific American. 51 (78). London: 46–52.
- ^ Chetwood, Digby (2024). The Sun: Real or Fake?. Reveal The Truth. p. 1.
Regards, Rjjiii (talk) 01:45, 20 June 2024 (UTC)
- Wow. I propose to redirect this template to
{{multiref2}}
or, better, move (leaving a redirect) that template here. Their talk pages then ought to be merged manually. -- Michael Bednarek (talk) 03:12, 20 June 2024 (UTC)- Let's not move too quickly here. Multiref2 has |item_style=margin-bottom:.5em; which makes it take up a bit more space. Worst comes to worst, we can have this template use the same code as multiref2 but with a smaller margin, perhaps.
- @Psiĥedelisto: Any ideas on the above? Is the current style basically "working as intended" for the indent bump, or is there a feasible way to get around it? SnowFire (talk) 05:23, 20 June 2024 (UTC)
- That small margin is a good thing. -- Michael Bednarek (talk) 07:35, 20 June 2024 (UTC)
- Sure, then use Multiref2? I'm just arguing that there should be an option that either doesn't have it, or has a much smaller margin (say 0.1em). SnowFire (talk) 07:51, 20 June 2024 (UTC)
- Forgot to reply to this. ".5em" was to keep the appearance the same. The template originally used blank lines and html line breaks. You can experiment in the sandbox with other spaces by changing the two ".5em"s to whatever. Good luck, Rjjiii (talk) 00:27, 2 August 2024 (UTC)
- Sure, then use Multiref2? I'm just arguing that there should be an option that either doesn't have it, or has a much smaller margin (say 0.1em). SnowFire (talk) 07:51, 20 June 2024 (UTC)
- That small margin is a good thing. -- Michael Bednarek (talk) 07:35, 20 June 2024 (UTC)