Template talk:Taxobox

Template-protected edit request on 1 May 2024
Move  from the top of the template to the bottom, immediately after , with no intervening characters.

This will prevent taxoboxes from adding an empty paragraph tag that contains an empty style tag which is visible as extra space before the lede. The ExpandTemplates link in demonstrates that the placement right after the close of the table works. — Eru·tuon 23:08, 1 May 2024 (UTC)
 * ✅. The effect can be seen both in Blue petrel and in the testcases. For previewing the sandbox version in Blue petrel, a change in Template:Speciesbox/sandbox was required. —⁠andrybak (talk) 23:45, 1 May 2024 (UTC)
 * Iirc, placing the templatestyles before the taxobox would allow us to remove the  due parser bug .—  Jts1882 &#124; talk 06:06, 2 May 2024 (UTC)

Conversion of this template to use infobox
I converted the sandbox version of this template to use infobox to the best of my abilities, but I couldn't figure out how to make taxobox/species and taxonomy look and function exactly the same on the sandbox version of this template as on the original version. PK2 (talk) 05:50, 10 June 2024 (UTC)

Template-protected edit request on 29 June 2024
Can someone please convert taxobox/core to use infobox, like on the majority of other infobox templates? I converted the sandbox version of that template to use infobox to the best of my abilities three weeks ago, but I couldn't figure out how to make taxobox/species and taxonomy look and function exactly the same on the sandbox version of that template as on the original version. PK2 (talk; contributions) 11:02, 29 June 2024 (UTC)
 * What advantage is there in converting to using infobox? The taxobox template predates the infobox system and works effectively. —  Jts1882  &#124; talk 12:20, 29 June 2024 (UTC)
 * One potential DISadvantage is that text in infoboxes is smaller than text in the body of the article. Most text in taxoboxes is the same size as text in the body of the article, but authorities are usually rendered in smaller text (either via code in the taxobox template for parameters such as binomial_authority, code in other templates such as Species list, or HTML &lt;small&gt; tags). If taxoboxes used the default smaller text of infoboxes, the authorities would be "double smalled", a size which violates accessibility guidelines. Plantdrew (talk) 14:27, 29 June 2024 (UTC)


 * Red information icon with gradient background.svg Not done for now: Your work in the sandbox is appreciated and looks very challenging. For now, it appears that a consensus needs to be established for this major change. Please garner the needed consensus before using the template again. Thank you very much for your work!  P.I. Ellsworth &thinsp;,  ed.  put'er there 14:27, 29 June 2024 (UTC)

Why is there no header above the second conservation status?
I don't mean there should be one, but I can't understand why the code doesn't produce one.

If you look at taxobox/species, it generates the code for the header cell on line 2.

This is not conditional (the #if statement in line 1 wraps the whole template), so you'd expect the header each time the template is called.

If you look taxobox/core, the calls of  taxobox/species are on lines 22 and 23:

The wikitext for the header in taxobox/species is placed on a new line, but I don't think that new line is output in the wikitext, as if it was the header would appear on the second conservation status. It seems that line 23 generates the following wikitext: The header doesn't appear as its wikitext doesn't start on a new line and is ignored. Two tests in edit preview (test with lion) seems to confirm this:
 * Combining lines 1 and 2 of taxobox/species makes no difference:


 * But adding a new line after |- in line 23 of taxobox/core produces a header for the second conservation status.

Does this matter? Possibly not if it works. I only discovered this because I added a second conservation status to Ungava brown bear, which uses population taxobox that uses Module:Biota infobox, and I was surprised to see the second header. In that code I'd added the newlines to generate the proper table wikitext. The fix was to remove the new line so the header doesn't appear, which isn't entirely satisfactory. —  Jts1882 &#124; talk 13:14, 13 July 2024 (UTC)