Template talk:Infobox organization/Wikidata

Can't get this Template to work

edit

If I include this template on Naturschutzbund_Deutschland somehow only Chair Person is visible. The Wikidata-Entry is well-tended. --Newt713 (talk) 10:59, 22 September 2019 (UTC)Reply

@Newt713: The Wikidata item needs more references. If you use {{infobox organization/Wikidata | fetchwikidata=ALL|onlysourced=no}} you'll see it retrieves much more, but most of those statements are unreferenced/only referenced to Wikipedia. Thanks. Mike Peel (talk) 15:08, 22 September 2019 (UTC)Reply
@Mike Peel:   Done Thank you! --Newt713 (talk) 15:32, 22 September 2019 (UTC)Reply

Lists for Budget, Members, Employees...

edit

A lot of fields are designed as lists, even though this does not make sense. I.e. the field for employees lists the amount of employees for the last unlimited years if they are listed in Wikidata. --Newt713 (talk) 12:50, 30 September 2019 (UTC)Reply

  Done Fixed it. Infobox is now showing the preferred rank, or, if not existing the last entry by point in time (P585). --Newt713 (talk) 15:47, 30 December 2021 (UTC)Reply

Bug for official websites in multiple languages

edit

See e.g. High National Election Commission: instead of the script picking out just the English version of the website, instead I see: Website https://hnec.ly hnec.ly/en/, https://hnec.ly in the rendered infobox. Boud (talk) 22:18, 4 February 2020 (UTC)Reply

I played around at Template:Infobox organization/Wikidata/sandbox and Template:Infobox organization/Wikidata/testcases while modifying d:Q84364211 appropriately. It seems to me that getValueByLang does not choose a most-preferred language for a property among a priority list of those that are known, it only chooses the property if that exists with a single preferred language. For example, if no website is labelled as being available in English, then no website at all will be selected. This forces multilingual users to make extra efforts to find out if the subject has a website in a familiar language.
So I chose a hack for this particular case: ignore the hnec.ly/en website (deprecate it on wikidata), and pretend that hnec.ly is automatically in both en and ar. So the reader who clicks and then doesn't realise that s/he has to select en specifically will think that there's an error. It would be better if we could take the reader directly to hnec.ly/en if such as site exists (as in this case). Boud (talk) 23:20, 4 February 2020 (UTC)Reply
This i18n bug remains active. Boud (talk) 01:11, 17 November 2020 (UTC)Reply

Affiliations?

edit

The original Template:Infobox organization has an 'affiliations' field, but this Wikidata version does not import such a field from Wikidata. It seems like P1416 (affiliation) should be a good fit for this. An example of this issue appears on the page WinRed, where I've been playing with the template. Jlevi (talk) 19:29, 28 June 2020 (UTC)Reply

@Jlevi:   Done I added the affiliations like in the mother Infobox. It should work with WinRed now. --Newt713 (talk) 20:39, 30 December 2021 (UTC)Reply

unsupported parameters

edit

I love this template but had to revert my edit on https://en.wikipedia.org/wiki/Rainbow_Railroad as it as it reported it didn't know how to handle parameters that are in the main template: "tax_id", "website", "leader_name", "status", "leader_title" and "founded" Back ache (talk) 11:15, 20 September 2020 (UTC)Reply

@Back ache: I added tax_id. status should work as well. The other parameters are already there (except for leader title), but using different names website = url, founded = established, leader = ceo, director or chairperson. But I included website, founded and leader_name as optional replacements even though they will prompt a short warning. Best --Newt713 (talk) 20:44, 30 December 2021 (UTC)Reply

Date format

edit

Does this implementation need special programming to read the article's stated date format? E.g., The 19th displays dmy in the infobox despite the article being tagged as mdy. czar 01:17, 28 March 2021 (UTC)Reply

@Czar:   Done By default it is using dmy. I'm not sure it can read the article's stated date format, but I included an optional parameter dateformat. You can see the usage on The 19th. Best --Newt713 (talk) 21:16, 30 December 2021 (UTC)Reply

Only current data

edit

Is it possible to restrict the shown data only to up to date data. Like chairpersons. I only what to show the ones still living/running with no end date. --Newt713 (talk) 15:32, 3 December 2021 (UTC)Reply

alt property gives warning but still works

edit

I receive a warning when previewing a page if I use the alt property Page using Template:Infobox organization/Wikidata with unknown parameter "alt" However the field still populates the alt image properly. TheBooleanOne (talk) 14:37, 20 July 2022 (UTC)Reply

infobox organization/Wikidata ... |url=?

edit
Pregnancy Justice
Typesnonprofit organization
Legal status501(c)(3) organization
HeadquartersNew York City
CountryUnited States
Revenue2,593,376 United States dollar (2019)
Website[// ] 

How can I get {{infobox organization/Wikidata ... to display the URL?

After some guessing in w:Pregnancy Justice, I found that {{infobox organization/Wikidata ... | noicon=on would display, "Website [// ]". That seems better than an error message, but it's still not what I wanted:

Suggestion? Thanks, DavidMCEddy (talk) 11:10, 3 June 2023 (UTC)Reply

Problems with infobox/Wikidata

edit
Pregnancy Justice
Typesnonprofit organization
Legal status501(c)(3) organization
HeadquartersNew York City
CountryUnited States
Revenue2,593,376 United States dollar (2019)
Websitewww.pregnancyjusticeus.org 

As of 2023-06-12 the infobox for this article does NOT specify the year with Revenue, while the article for Pregnancy Justice does. I cannot see what to change to fix this.  ???

See the two example infoboxes. The first is mislabeled, claiming it's for Cross-Lines, when the numbers are actually from the Wikidata entry for Pregnancy Justice. Evidently, the MediaWiki software takes the name from the current article, NOT from Wikidata.

Cross-Lines Community Outreach
Established1963 (61 years ago)
Legal status501(c)(3) organization
HeadquartersKansas City
CountryUnited States
Revenue2,660,889 United States dollar (2022)
Websitewww.cross-lines.org 

How can I fix this?

Thanks, DavidMCEddy (talk) 14:51, 12 June 2023 (UTC)Reply

I found how to get the infobox to display the year: Each entry in the Wikidata item for "Cross-Lines Community Outreach" for "Total Revenue" has options to add both a "qualifier" and a "reference". Enter a date for "Point in time" as a "qualifier", NOT as something as a "reference".
The problem with mislabeling the infobox still remains.
Another problem is that I cannot get it to properly display the URL. Both Wikidata entries include "official website", but I don't know how to make it display. I believe it can be done: I just don't know how.
Also, the first of these two infoboxes displays more information than the second, e.g., "Legal status", "Headquarters" and "Country" that are not displayed in the second example, even though the required data seems to be available for the second.
The second infobox includes "Established", which is not present in the first. That's probably because the Wikidata item for the second has "Inception", not present in the first.
I'd be pleased if someone could help me with these problems. Thanks, DavidMCEddy (talk) 13:21, 18 June 2023 (UTC)Reply
I have fixed the problem with the title. I will look at the website field shortly. — Martin (MSGJ · talk) 07:13, 19 June 2023 (UTC)Reply
The issue with the website was the syntax |url=on you were using. This parameter is to manually define the website, but obviously "on" is not a valid website so the template was a bit confused. If you leave off this parameter then it will look at official website (P856) in Wikidata and display it automatically. The reason that no website is displayed in the Pregnancy Justice infobox is that you have the |onlysourced=on setting. There is no source for the website on Wikidata so this field is omitted. You can eithewr add a reference on Wikidata or you can change the |onlysourced= setting — Martin (MSGJ · talk) 07:29, 19 June 2023 (UTC)Reply
Wow. That's great. I think I now know what to fix. Thanks very much. DavidMCEddy (talk) 12:07, 19 June 2023 (UTC)Reply
No problem. Let me know if you need any other help. Did you get the year display working? — Martin (MSGJ · talk) 12:33, 19 June 2023 (UTC)Reply