Module talk:Biota infobox

Disambiguation
@Jts1882 This module apparently (the documentation is, shall we say, less than complete) allows for a parameter 'species_link' that allows one to override the default link to an article titled "Genus species"; so if "Genus species" is a disambiguation page we can link to the title of the actual article about the particular species. Great! But this doesn't work for subspecies -- example: Puma concolor couguar is a disambiguation page. It is desired that the link in the infobox on Florida panther, for example, should point to North American cougar, but there is no module parameter that allows doing this. Hope this is clear. --R'n'B (call me Russ) 16:27, 27 March 2024 (UTC)


 * Support for subspecies_link add for Population taxobox. —  Jts1882 &#124; talk 17:22, 27 March 2024 (UTC)

Extraneous blank line
at the top of Monkey -- could it be a bug in the present module? fgnievinski (talk) 02:37, 5 June 2024 (UTC)


 * Thanks for pointing this out. It looks like a reemergence of parser bug after recent changes to the Wikimedia software. This introduces the empty paragraph before the taxobox. The workaround was to precede the taxobox with   or a   element. However now they produce an empty paragraph or a paragraph with the templatestyles output. This seems to affect all the taxobox templates, including automatic taxobox and speciesbox, which don't use this module.  have you seen this?
 * On mobile, the taxoboxes (as well as other the infoboxes) are now pushed down below the first paragraph. The spurious empty paragraph precedes the first paragraph of the lede. On a related note the appearance of the taxoboxes in mobile is horrible after the recent changes. At least this should be something that can be fixed with CSS.   —  Jts1882  &#124; talk 08:13, 5 June 2024 (UTC)
 * yes, I saw this. It does look like a bug (re)introduced during recent changes. Sigh... Peter coxhead (talk) 15:58, 5 June 2024 (UTC)
 * It looks like the empty paragraph can be removed by wrapping the table in taxobox/core in  tags. I fortuitously stumbled on this solution as the clade template isn't getting those empty paragraphs (it also needed the nowiki trick). The reason is because I recently wrapped the clade template in   tags, so that I could add an overflow element in mobile view and Vector 2022, where wide cladograms were overlapping the right hand menus. The Vector 2022 upgrade has broken a lot of stuff.  —  Jts1882  &#124; talk 16:17, 5 June 2024 (UTC)
 * great workaround! (But it shouldn't have been necessary.) Peter coxhead (talk) 06:37, 6 June 2024 (UTC)
 * I've made the change in taxobox/core/sandbox. The testcases look fine (i.e. doesn't break anything), but I can't test the alignment as the  tag in the testcase comparison also removed the empty paragraph. Making the change in the live taxobox/core and using preview with various pages gives inconsistent results. It works (removes the empty paragraph) with Neoaves, which I tested yesterday, but doesn't work with lion or ocelot. It's not an automatic taxobox/speciesbox difference, as it doesn't work with Felidae or Panthera and does work with Siberian stonechat. Looks like it is an interaction with some of the hatnote type templates as putting them all on the same line as automatic taxobox in Felidae removes the empty paragraph. I'm thinking of making the change live (it doesn't seem to break anything) and then I can test for the culprit templates.  —  Jts1882  &#124; talk 10:16, 6 June 2024 (UTC)
 * I did some tests with an article with hatnote templates, and found what you have, i.e. newlines after them seem to be transferred to the page. It used to be the case that you had to put them all on the same line as the taxobox template, but this went away some years ago. Sigh again...
 * Actually just now, at least with preview, it makes no difference at Monkey. Peter coxhead (talk) 15:08, 6 June 2024 (UTC)
 * Monkey uses Module:Biota infobox/core and I hadn't made any changes there. I've now added  and checked the problem templates.
 * For monkey the culprit is
 * For algae the culprit is
 * The templates Short description, Other uses, For and hatgrp don't cause the empty paragraph even when on separate lines. —  Jts1882  &#124; talk 16:27, 6 June 2024 (UTC)
 * I think the problem is the initial  before the wikitext table. Other infoboxes don't have the issue as they are built in Lua using the HTML functions. [edit: not the cases as it depends on preceding templates]  —  Jts1882  &#124; talk 16:27, 6 June 2024 (UTC)