Template talk:Infobox person/Wikidata

Another possible improvement

edit

In cases where we are using a "native name" parameter, the Wikidata generated version displays the native language text in boldface (see Mitsuko Tottori or Stefanos Sinos), whereas the non-Wikidata version does not (see Shōjirō Ishibashi). Also, the non-Wikidata template places the text above the photograph, underneath the English title, whereas the Wikidata version displays the text below the photo. Ideally, these inconsistencies should be eliminated. -- Cl3phact0 (talk) 14:49, 22 April 2025 (UTC)Reply
PS:The pencil icon is also displayed next to the native text in spite of the "noicon" parameter being set to "on" (obviously not top priority, but an annoying bug nonetheless). -- Cl3phact0 (talk) 15:12, 22 April 2025 (UTC)Reply

Displaying the native name in bold is a MOS:NOBOLD violation. Japanese should not be in boldface. The native name at Mitsuko Tottori also does not have the correct {{lang}} attributes applied. The Wikidata infoboxes seem rather unprofessional and should be replaced by infoboxes that do not violate the MOS. —Kusma (talk) 10:57, 23 April 2025 (UTC)Reply
Thanks, that's exactly why I brought the matter here! Do you have the coding skills to make the improvements to the Template? Unfortunately, I do not, or I would just do so (per WP:1Q). Cheers, Cl3phact0 (talk) 11:04, 23 April 2025 (UTC)Reply
I have neither the coding skills nor sufficient understanding of Wikidata to mess with this template. (I don't know what Wikidata properties we'd need or how to access them). —Kusma (talk) 12:52, 23 April 2025 (UTC)Reply
I made a change to the template to remove the bold on native name. [1] Changing the lang attributes is trickier, I think. Andre🚐 17:57, 23 April 2025 (UTC)Reply
This seems like it works (looking at Stefanos Sinos example used above). -- Cl3phact0 (talk) 19:35, 23 April 2025 (UTC)Reply
Tried adding that [2] but I cannot tell if it worked. Andre🚐 18:04, 23 April 2025 (UTC)Reply
I think it did not work, I have to figure out how to get the native_name_lang. Andre🚐 18:10, 23 April 2025 (UTC)Reply
I'm not sure I understand what exactly the second modification is trying to achieve. -- Cl3phact0 (talk) 19:36, 23 April 2025 (UTC)Reply
If it worked it will add a <span tag with a lang="ja". However, on my machine, that does not actually affect the display at all. There also seems to be a span tag with the title "Japanese language text." That might be useful for a screen reader for accessibility use cases. Andre🚐 00:44, 24 April 2025 (UTC)Reply
I'm not seeing anything (although I might not be looking for the right thing or simply looking in the wrong place). -- Cl3phact0 (talk) 15:17, 25 April 2025 (UTC)Reply
I updated {{Infobox person/Wikidata}} so |native_name= is now displayed in the same position as {{Infobox person}} (where it was moved to a subheader in late 2019, after a discussion at Template talk:Infobox person/Archive 34#native_name pointer). Note that |native_name_lang= works as a parameter in the infobox, such as |native_name_lang=ja (see examples at Template:Infobox person/Wikidata/testcases § native name), but the language code is not yet extracted from Wikidata automatically (I am looking into the best way to extract it from the Wikidata property name in native language (P1559)). I also fixed the problem where an icon was displayed next to that and some other fields when the infobox contained |noicon=true or similar. -- Zyxw (talk) 22:29, 26 April 2025 (UTC)Reply
Good work, thanks Andre🚐 23:59, 26 April 2025 (UTC)Reply
Excellent, thank you. The display of the Mitsuko Tottori infobox is now much improved. In this example, another detail that the infobox isn't picking up is her employer and position (Japan Airlines, President and CEO), which, given that it's a women's first , seems crucial. -- Cl3phact0 (talk) 05:50, 27 April 2025 (UTC)Reply

Duplicate display of information

edit

In a case such as Francine M. Benes or Stefanos Sinos, where a person has more than one degree from the same university, how should this be displayed in the "Alma matter" field (i.e., do we supress the duplicate entry or add extra detail so that both degrees are listed)? -- Cl3phact0 (talk) 15:12, 25 April 2025 (UTC)Reply

I updated {{Infobox person/Wikidata/sandbox}} to show all qualifiers for each entry in Wikidata property educated at (P69). Here is an example of what Stefanos Sinos would look like if extra details were displayed.
Infobox person/Wikidata/sandbox Infobox person/Wikidata
Stefanos Sinos
Στέφανος Σίνος
Bornc. 1937
Education
OccupationArchitect, civil engineer, professor, university teacher
WorksThe Late Byzantine Palace of Mystras and its Restoration
Stefanos Sinos
Στέφανος Σίνος
Bornc. 1937
Alma mater
OccupationArchitect, civil engineer, professor, university teacher
WorksThe Late Byzantine Palace of Mystras and its Restoration
Output will vary depending on the qualifiers used and the order entered in Wikidata, see this example for Francine M. Benes.
Infobox person/Wikidata/sandbox Infobox person/Wikidata
Francine M. Benes
Born8 May 1946
Education
OccupationNeuroscientist, psychiatrist, professor
Employer
Awards
  • Lieber Prize (2002)
  • William Silen Lifetime Achievement in Mentoring Award (2005)
  • Society of Biological Psychiatry Gold Medal Award (2015)
Francine M. Benes
Born8 May 1946
Alma mater
OccupationNeuroscientist, psychiatrist, professor
Employer
Awards
  • Lieber Prize (2002)
  • William Silen Lifetime Achievement in Mentoring Award (2005)
  • Society of Biological Psychiatry Gold Medal Award (2015)
If there is a consensus to show these details in the infobox, then {{Infobox person/Wikidata}} can be updated. -- Zyxw (talk) 07:21, 27 April 2025 (UTC)Reply
To my eye, this looks like an improvement, absolutely. Your help improving these templates is greatly appreciated (I might even learn enough to make future improvements myself by watching your work). @Nikkimaria: as the editor who made this edit (which flagged the problem), does this satisfy your needs concerning this particular issue (leaving aside, for the time being, any broader discussion of the merits of Wikidata infoboxes)? Cheers, Cl3phact0 (talk) 07:46, 27 April 2025 (UTC)Reply
PS: The second example is a bit less convincing than the first. Let me go see if I clean-up the Wikidata side (which is a bit of a test case as is). -- Cl3phact0 (talk) 08:57, 27 April 2025 (UTC)   Partly doneReply
This looks like you're turning |alma_mater= into |education=; per MOS:INFOEDU, the former should be much more concise. (FYI there's also a current discussion at the main template which may impact this design). Nikkimaria (talk) 12:59, 27 April 2025 (UTC)Reply
Thank you, very helpful. Obviously, whatever the consensus is for non-Wikidata infobox templates regarding the display of specific fields ("Alma mater" or otherwise), that is what the Wikidata versions should seek to achieve too. -- Cl3phact0 (talk) 16:25, 27 April 2025 (UTC)Reply
Both of the above are reasons why I only implemented this at {{Infobox person/Wikidata/sandbox}} as a test. For educated at (P69), I added |qual=ALL to {{#invoke:WikidataIB|GetValue}}, which is what was already done with award received (P166). There are other options, like selecting specific qualifiers to display or not displaying qualifiers at all and figuring out how to remove any duplicate entries. According to the comment above, I can see where educated at (P69) might be better used with |education= instead of |alma_mater= and this template should follow whatever guidelines are established for {{Infobox person}}. -- Zyxw (talk) 15:32, 27 April 2025 (UTC)Reply
I reviewed the links provided by Nikkimaria and MOS:INFOEDU says "The |alma mater= parameter is a more concise alternative to (not addition to) the |education= parameter, and will often consist of the linked name of the last-attended institution of higher education." Therefore, I think that might be the solution for |alma mater= here, rather than listing them all and trying to remove duplicates. Also, |education= here is currently using academic degree (P512), so that might be something else to reconsider after the current discussion at the main template. -- Zyxw (talk) 16:41, 27 April 2025 (UTC)Reply
I updated the sandbox to move educated at (P69) to |education= and only list the qualifier academic degree (P512), which makes it closer to the format being discussed at the main template (I tried to display abbreviations for the degrees, since {{#invoke:WikidataIB|GetValue}} has a |shortname= parameter to enable that, but it seems not to work on qualifier names). I think the best solution might be to leave this infobox as is and update Wikidata to give the most recent educated at (P69) a preferred rank. I did that for the above two examples, which makes the output for |alma_mater= match what MOS:INFOEDU says is often used there. -- Zyxw (talk) 17:47, 27 April 2025 (UTC)Reply
Cleaner, closer to what seems to be the desired standard practice (per Alma mater discussion). There's probably some way we could improve this on the Wikidata side too (i.e., the addition of abbreviated nomenclature for degrees). It also makes me think that hiding in plain sight here is another example of how we could be using Wikidata to solve problems. If all of this were semi-automated using an elegantly designed "Info-matic Magic Box" tool to help fill in the blanks (giving the editor final say, of course), and the data were coming from a centralised source, then it might help establish the sort of uniform format and nomenclature that's being proposed in the discussion that Nikkimaria linked above. -- Cl3phact0 (talk) 19:51, 27 April 2025 (UTC)Reply

Another recent usage example in need of a small code tweak

edit

Please see Talk:Karim Rashid. In this case, minor improvement to the way that the website displays is needed (i.e., short form URL without "www"). -- Cl3phact0 (talk) 17:10, 4 May 2025 (UTC)Reply
  Fixed (simple solution – changed on Wikidata side). -- Cl3phact0 (talk) 17:33, 4 May 2025 (UTC)Reply

Secondary vs. tertiary education

edit

Another edit to the code on the Wikipedia side may be needed in order to resolve this issue (please see discussion on Wikidata): Secondary vs. tertiary education --> Wikidata infoboxes -- Cl3phact0 (talk) 17:24, 19 May 2025 (UTC)Reply

Two signatures

edit

If a person has two images for signature (P109), of equal rank, the template attempts to include both values in a single image transclusion, creating an error.

A work-around is to mark one image as preferred, but this creates a false statement at Wikidata. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:51, 31 August 2025 (UTC)Reply

Please link to an example page. I have added |maxvals=1, which might fix the problem. – Jonesey95 (talk) 14:55, 31 August 2025 (UTC)Reply
d:Q55946820 has two, but for obvious reasons I have used the work-around described above. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:06, 31 August 2025 (UTC)Reply
I'm not seeing any errors at Norman Hickin. Please post a link to a broken page if you can find one. – Jonesey95 (talk) 15:51, 31 August 2025 (UTC)Reply
You won't; "for obvious reasons I have used the work-around described above". Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:58, 31 August 2025 (UTC)Reply