Module talk:Infobox gene

Human UniProt search error
I am not sure if this is a problem in Infobox gene or Wikidata, but the rendering of the Human UniProt search link in Mucin-1 is not right. Does anyone have any idea how to fix this? Thanks. Boghog (talk) 06:43, 26 April 2023 (UTC)


 * ✅ The problem was in Wikidata. Only one UniProt ID should be associated with the human protein, not two. Fixed in this edit. Boghog (talk) 06:50, 26 April 2023 (UTC)

Modify Bgee links
The Bgee links changed. To avoid redirections, please include "www" in the URLs as shown below. Thank you very much for your help. Diff:

Tarsmf (talk) 16:21, 15 January 2024 (UTC)
 * ✅. Tested at FOXS1. – Jonesey95 (talk) 00:27, 16 January 2024 (UTC)

Edit request 22 May 2024
Description of suggested change:

Improve External IDs readability. In the 'Identifiers tab, external IDs are difficult to read because there is no semicolon separating them. The code below adds semicolons between IDs. In addition, it also adds another external ID of the OMA database that is complementary to HomoloGene with richer information about homologous genes. It was tested here: Module_talk:Infobox_gene/testcases. Thank you very much for your help!

Diff: (Line numbers below are just an approximation)

Suggestion to add this trim function (to remove empty spaces) in line 23 or in any place on top of the code:

Line 196

Line 399

Line 433

Line 446

Line 463

Line 478

Line 528

Tarsmf (talk) 11:39, 24 May 2024 (UTC)


 * @Tarsmf if I may suggest, you could use  to add the semi-colons is a more efficient manner &mdash; Martin (MSGJ · talk) 21:41, 23 May 2024 (UTC)
 * Thanks a lot @MSGJ for the suggestion! I have implemented your suggestion in the Module:Infobox gene/sandbox and updated my request above, tested here Module talk:Infobox gene/testcases. However, note that we cannot simply add a ';' for each item of the table since some of them are empty strings depending on the gene wikipedia article. Therefore, we still need to filter out the empty string before implementing the concatenation. Tarsmf (talk) 11:40, 24 May 2024 (UTC)
 * Looks good, ✅ &mdash; Martin (MSGJ · talk) 12:02, 24 May 2024 (UTC)

Could you double-check your recent edit to Module:Infobox gene? It appears to have caused a nonsense redlinked category for, which is currently showing up on about 487 pages alongside the expected "Genes on human chromosome XX" categories. Thanks. Bearcat (talk) 13:32, 25 May 2024 (UTC)


 * @Tarsmf please can you comment on this? &mdash; Martin (MSGJ · talk) 18:24, 25 May 2024 (UTC)
 * Yes, sorry for this, I am checking it now. @MSGJ may you also confirm that the code changed was only the suggested above? I am asking it because I worked in a sandbox version that might have some other changes that were not done by me. Thanks! Tarsmf (talk) 07:12, 27 May 2024 (UTC)
 * I found this Categories for discussion/Log/2023 August 15. Actually, the "Category:Genes on human chromosome" was merged to Category:Human genes, and it should not exist anymore. What do you think, @MSGJ and @Bearcat? Tarsmf (talk) 07:26, 27 May 2024 (UTC)
 * Given that the subcategories of are all named "Genes on human chromosome XX", I would guess that most likely what's happening here is that the template is somehow accidentally generating this without a number, at the same time as it's generating the proper categories with numbers, because the "blank" iteration of the category is failing to correctly pull the chromosome number variable from each infobox. (The same run of WantedCategories also featured a whole bunch of categories of the form, due to that kind of problem: a template was coded to pull a year and a sport from the title of each page it was used on, but due to a typo in the template it was failing to pull the sport and just generating "year in nothing".) Bearcat (talk) 16:16, 27 May 2024 (UTC)
 * @MSGJ, I think I see the issue now, there are some lines in the code that were changed but none of them were requested by me last week. See the comparison at [code change history](https://en.wikipedia.org/w/index.php?title=Module%3AInfobox_gene&diff=1225430113&oldid=1219546506). Then to solve this issue and possibly others, please revert to the previous version (18th April 2024 by Ruslik0) the following changes in the history above assigned in your @MSGJ last commit in Line 138, Line 409, Line 1,124, Line 1,138, Line 1,422. Note that the code change that is making the issue reported by @Bearcat is mainly Line 1,422 change. Line 1,124 and Line 1,138 are also very important changes to modify back to the previous version. Tarsmf (talk) 07:58, 27 May 2024 (UTC)
 * Would you mind raising an edit request because I am on my mobile at the moment? &mdash; Martin (MSGJ · talk) 20:54, 27 May 2024 (UTC)
 * No problem, I've just done it below. Thanks! Tarsmf (talk) 08:07, 28 May 2024 (UTC)

Edit request 28 May 2024
Description of suggested change: Solving unexpected issues due to changes on Latest revision as of 12:01, 24 May 2024 by @MSGJ. Then to solve the issues reported in the above request (Edit request 22 May 2024), I would like to suggest to revert back some code lines as they were on the 18th April 2024 by Ruslik0 version. Notably, to revert the following changes in the code history assigned in your @MSGJ last commit: Line 138; Line 409; Line 1,124; Line 1,138; and Line 1,422. Note that the code change that is making the issue reported by Bearcat is mainly Line 1,422 change. Line 1,124 and Line 1,138 are also very important changes to modify back to the Ruslik0 version.

Thanks for your time! Tarsmf (talk) 08:06, 28 May 2024 (UTC)
 * ✅ * Pppery * it has begun... 19:59, 28 May 2024 (UTC)